drm/i915: Serialise presentation with imported dmabufs
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 07:28:47 +0000 (08:28 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 09:32:26 +0000 (10:32 +0100)
commitc37efb9997a5dfdd536a53b736f3b2082054068f
treee7a7c074da5997116f7cb4911211afa6bce8f304
parentee042aa40b66d18d465206845b0752c6a617ba3f
drm/i915: Serialise presentation with imported dmabufs

obj->base.dma_buf represents a dma-buf exported from this object (for
use by others). On the contrary, obj->base.import_attach represents the
source dma-buf that was used to create this object (if any). When
serialising with third parties, we need to wait on their rendering via
the import attachment as well as their rendering on our exported
dma-buf.

v2: Wait on both import and export.
v3: Rebase

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Alex Goins <agoins@nvidia.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Alex Goins <agoins@nvidia.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466148527-10891-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_dmabuf.h [new file with mode: 0644]
drivers/gpu/drm/i915/intel_display.c