From: Tapani Pälli Date: Thu, 22 Nov 2018 07:41:31 +0000 (+0200) Subject: anv: allow exporting an imported SYNC_FD semaphore type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09adaa4b89d57224af988ef7c98846b0f8bf1abf;p=mesa.git anv: allow exporting an imported SYNC_FD semaphore type Fixes issues with following SkQP tests: unitTest_VulkanHardwareBuffer_Vulkan_EGL_Syncs unitTest_VulkanHardwareBuffer_Vulkan_Vulkan_Syncs Signed-off-by: Tapani Pälli Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index 2a8ed2eb4ed..7887fbcb937 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -1056,7 +1056,8 @@ void anv_GetPhysicalDeviceExternalSemaphoreProperties( case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT: if (device->has_exec_fence) { - pExternalSemaphoreProperties->exportFromImportedHandleTypes = 0; + pExternalSemaphoreProperties->exportFromImportedHandleTypes = + VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT; pExternalSemaphoreProperties->compatibleHandleTypes = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT; pExternalSemaphoreProperties->externalSemaphoreFeatures =