]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit199c2557a08f1f3d1a9f085d65a0d22ee4d83703
treee7a7c074da5997116f7cb4911211afa6bce8f304
parent294ad7a198ea6b6935a378a5511b543221b42e2d
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