]> git.baikalelectronics.ru Git - kernel.git/commit
drm/syncobj: Add a CREATE_SIGNALED flag
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 25 Aug 2017 17:52:25 +0000 (10:52 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 28 Aug 2017 20:27:41 +0000 (06:27 +1000)
commit6e637fe881dd2342bf690e6d7f13e8ba7a09c3a1
treed143951efc18fe4669a2944916d07204e9460f4b
parentcc77d1ed5ea78f79e473bc6ee74d3223932652e4
drm/syncobj: Add a CREATE_SIGNALED flag

This requests that the driver create the sync object such that it
already has a signaled dma_fence attached.  Because we don't need
anything in particular (just something signaled), we use a dummy null
fence.  This is useful for Vulkan which has a similar flag that can be
passed to vkCreateFence.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_syncobj.c
include/uapi/drm/drm.h