mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
Disable compatible handle types for semaphore timeline
Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
66d9bf1a8c
commit
c5a8e9bee4
2 changed files with 13 additions and 1 deletions
|
|
@ -6434,7 +6434,18 @@ void ResourceTracker::on_vkGetPhysicalDeviceExternalSemaphoreProperties(
|
|||
VK_EXTERNAL_SEMAPHORE_FEATURE_IMPORTABLE_BIT;
|
||||
}
|
||||
#else
|
||||
if (pExternalSemaphoreInfo->handleType == VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT) {
|
||||
const VkSemaphoreTypeCreateInfo* semaphoreTypeCi =
|
||||
vk_find_struct<VkSemaphoreTypeCreateInfo>(pExternalSemaphoreInfo);
|
||||
bool isSemaphoreTimeline =
|
||||
semaphoreTypeCi != nullptr && semaphoreTypeCi->semaphoreType == VK_SEMAPHORE_TYPE_TIMELINE;
|
||||
if (isSemaphoreTimeline) {
|
||||
// b/304373623
|
||||
// dEQP-VK.api.external.semaphore.sync_fd#info_timeline
|
||||
pExternalSemaphoreProperties->compatibleHandleTypes = 0;
|
||||
pExternalSemaphoreProperties->exportFromImportedHandleTypes = 0;
|
||||
pExternalSemaphoreProperties->externalSemaphoreFeatures = 0;
|
||||
} else if (pExternalSemaphoreInfo->handleType ==
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT) {
|
||||
pExternalSemaphoreProperties->compatibleHandleTypes |=
|
||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT;
|
||||
pExternalSemaphoreProperties->exportFromImportedHandleTypes |=
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ REGISTER_VK_STRUCT_ID(VkBufferOpaqueCaptureAddressCreateInfo, VK_STRUCTURE_TYPE_
|
|||
REGISTER_VK_STRUCT_ID(VkBufferDeviceAddressCreateInfoEXT, VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT);
|
||||
REGISTER_VK_STRUCT_ID(VkGraphicsPipelineCreateInfo, VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO);
|
||||
REGISTER_VK_STRUCT_ID(VkPipelineRenderingCreateInfo, VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO);
|
||||
REGISTER_VK_STRUCT_ID(VkPhysicalDeviceExternalSemaphoreInfo, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO);
|
||||
|
||||
#undef REGISTER_VK_STRUCT_ID
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue