diff options
author | Tapani Pälli <[email protected]> | 2018-11-22 09:41:31 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-11-23 07:49:46 +0200 |
commit | 09adaa4b89d57224af988ef7c98846b0f8bf1abf (patch) | |
tree | 2f0f6caa5e90f3f4d4c4f8deb923d496073814d2 /src/intel/vulkan | |
parent | 896c59d690e38e92682f9bc509b5e3658aba5670 (diff) |
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 <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 = |