drm/i915: Support explicit fencing for execbuf
Now that the user can opt-out of implicit fencing, we need to give them back control over the fencing. We employ sync_file to wrap our drm_i915_gem_request and provide an fd that userspace can merge with other sync_file fds and pass back to the kernel to wait upon before future execution. Testcase: igt/gem_exec_fence Signed-off-by:Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Acked-by:
Chad Versace <chadversary@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/20170127094008.27489-2-chris@chris-wilson.co.uk
Showing
- drivers/gpu/drm/i915/Kconfig 1 addition, 0 deletionsdrivers/gpu/drm/i915/Kconfig
- drivers/gpu/drm/i915/i915_drv.c 2 additions, 1 deletiondrivers/gpu/drm/i915/i915_drv.c
- drivers/gpu/drm/i915/i915_gem_execbuffer.c 49 additions, 5 deletionsdrivers/gpu/drm/i915/i915_gem_execbuffer.c
- include/uapi/drm/i915_drm.h 35 additions, 1 deletioninclude/uapi/drm/i915_drm.h
Loading
Please register or sign in to comment