drm/i915: Export our request as a dma-buf fence on the reservation object
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 15:32:42 +0000 (16:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Aug 2016 19:20:06 +0000 (20:20 +0100)
commitad778f8967ea2f0bfda02701f918bcfcd495b721
treebe8ab4cf23133b97782d69d6a1744b1956a66312
parent0eafec6d3244802d469712682b0f513963c23eff
drm/i915: Export our request as a dma-buf fence on the reservation object

If the GEM objects being rendered with in this request have been
exported via dma-buf to a third party, hook ourselves into the dma-buf
reservation object so that the third party can serialise with our
rendering via the dma-buf fences.

Testcase: igt/prime_busy
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470324762-2545-26-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_dmabuf.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c