wsi: Fix the flagging of dma_buf_sync_file for the amdgpu workaround.

In my regression fix, I covered one of the two paths that had stopped
setting the implicit_sync flag and thus triggered the amdgpu behavior we
don't want, but probably the less common one.

Fixes: f7cbc7b1c5 ("radv: Allocate BOs as implicit sync even if the WSI is doing implicit sync.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13942
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37874>
This commit is contained in:
Emma Anholt
2025-10-14 12:08:30 -07:00
committed by Marge Bot
parent e2b271d7b1
commit aa96444149
+1
View File
@@ -757,6 +757,7 @@ wsi_create_native_image_mem(const struct wsi_swapchain *chain,
* handling implict sync ourselves.
*/
.implicit_sync = !info->explicit_sync && !chain->dma_buf_semaphore,
.dma_buf_sync_file = chain->dma_buf_semaphore,
};
const VkExportMemoryAllocateInfo memory_export_info = {
.sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO,