]> 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)
commitfbfbb45007d3ce69526d7c443858aa53a8396096
treee7a7c074da5997116f7cb4911211afa6bce8f304
parent957f6f9362f7cc011342b060e8097c9bb27c3d0b
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