anv: Use DRM sync objects to back fences whenever possible
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 4 Aug 2017 20:08:35 +0000 (13:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Aug 2017 02:33:43 +0000 (19:33 -0700)
commit5f372d93a9088afdbd97c0668f9684f369bc33a2
tree24ac55a035bcd05cdafc1ea7cedb448842f81bf9
parentd21c1510918bdfe64e89834aafe6f49ac4dfc13d
anv: Use DRM sync objects to back fences whenever possible

In order to implement VK_KHR_external_fence, we need to back our fences
with something that's shareable.  Since the kernel wait interface for
sync objects already supports waiting for multiple fences in one go, it
makes anv_WaitForFences much simpler if we only have one type of fence.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/anv_queue.c