Commit 2baf7ece authored by Committed by Chris Wilson
lib: Move __gem_context_create to common ioctl wrapper library.
This patch adds a context creation ioctl wrapper that returns the error for the caller to consume. Multiple tests that implemented this already, have been changed to use the new library function. v2: - Add gem_require_contexts() to check for contexts support (Chris) v3: - Add gem_has_contexts to check for contexts support and change gem_require_contexts to skip if contests support is not available. (Chris) v4: - Cosmetic changes and use lib function in gem_ctx_create where possible. (Michal) v5: - Use gem_contexts_require() in tests and fixtures. (Chris) Signed-off-by: Antonio Argenziano <firstname.lastname@example.org> Cc: Chris Wilson <email@example.com> Cc: Michał Winiarski <firstname.lastname@example.org> Reviewed-by: Michał Winiarski <email@example.com> Signed-off-by: Chris Wilson <firstname.lastname@example.org>
Showing with 133 additions and 148 deletions