aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_queue.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-02-15 16:06:42 -0800
committerJason Ekstrand <[email protected]>2017-05-03 15:09:46 -0700
commit975c0f339f1122c578a33d36afedd0f7fef59fc4 (patch)
treeeab2ea632497d129668442cd0089c95e165bf00f /src/intel/vulkan/anv_queue.c
parent298e054d0cfa7cac9e19bbdb5f64f0109dbcd8dc (diff)
anv: Implement VK_KHX_external_semaphore
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_queue.c')
-rw-r--r--src/intel/vulkan/anv_queue.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c
index 906eb25af0d..64c59006ca8 100644
--- a/src/intel/vulkan/anv_queue.c
+++ b/src/intel/vulkan/anv_queue.c
@@ -508,6 +508,14 @@ VkResult anv_CreateSemaphore(
if (semaphore == NULL)
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
+ const VkExportSemaphoreCreateInfoKHX *export =
+ vk_find_struct_const(pCreateInfo->pNext, EXPORT_SEMAPHORE_CREATE_INFO_KHX);
+ VkExternalSemaphoreHandleTypeFlagsKHX handleTypes =
+ export ? export->handleTypes : 0;
+
+ /* External semaphores are not yet supported */
+ assert(handleTypes == 0);
+
/* The DRM execbuffer ioctl always execute in-oder, even between
* different rings. As such, a dummy no-op semaphore is a perfectly
* valid implementation.