[Mesa-dev] [PATCH 0/8] anv: Implement VK_KHR_external_semaphore

Jason Ekstrand jason at jlekstrand.net
Thu Jul 13 22:55:45 UTC 2017


This series adds back in the VK_KHR_external_semaphore extensions and
re-ups my userspace patches to use the new kernel API I proposed on top of
DRM syncobj.  For the KHR version, I'd like to wait on advertising the
extension until the syncobj kernel bits land.  That way we never have to
worry about Vulkan driver version mismatches for semaphores.  The only bit
of "negotiation" to determine what kind of semaphores to use is to query
the kernel for FENCE_ARRAY support.

Jason Ekstrand (8):
  anv: Add a basic implementation of VK_KHX_external_semaphore
  anv: Submit a dummy batch when only semaphores are provided.
  anv/gem: Use EXECBUFFER2_WR when the FENCE_OUT flag is set
  anv: Implement support for exporting semaphores as FENCE_FD
  intel/drm: Pull in the i916 fence array API
  anv/gem: Add a drm syncobj support
  anv: Use DRM sync objects for external semaphores when available
  anv: Advertise VK_KHR_external_semaphore

 include/drm-uapi/i915_drm.h             |  30 ++++-
 src/intel/vulkan/anv_batch_chain.c      | 152 ++++++++++++++++++++-
 src/intel/vulkan/anv_device.c           |  40 ++++++
 src/intel/vulkan/anv_entrypoints_gen.py |   6 +
 src/intel/vulkan/anv_gem.c              |  93 ++++++++++++-
 src/intel/vulkan/anv_gem_stubs.c        |  24 ++++
 src/intel/vulkan/anv_private.h          |  36 ++++-
 src/intel/vulkan/anv_queue.c            | 228 +++++++++++++++++++++++++++++++-
 8 files changed, 590 insertions(+), 19 deletions(-)

-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list