From 16520cfdf1842e7d3f798f8aef532490a0cc1707 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 14 Aug 2025 17:31:14 -0400 Subject: [PATCH] vulkan/wsi: Stop setting wsi_memory_signal_submit_info There are no longer any drivers implementing the back-end hooks for this so there's no point in setting it from WSI. Reviewed-by: Yiwei Zhang Acked-by: Daniel Stone Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/wsi/wsi_common.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index e3a57ba4b59..cf83ca42da0 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -1485,7 +1485,6 @@ wsi_common_queue_present(const struct wsi_device *wsi, VkFence fence = swapchain->fences[image_index]; - struct wsi_memory_signal_submit_info mem_signal; bool has_signal_dma_buf = false; bool explicit_sync = swapchain->image_info.explicit_sync; if (explicit_sync) { @@ -1516,20 +1515,6 @@ wsi_common_queue_present(const struct wsi_device *wsi, goto fail_present; } #endif - - if (!has_signal_dma_buf) { - /* If we don't have dma-buf signaling, signal the memory object by - * chaining wsi_memory_signal_submit_info into VkSubmitInfo. - */ - result = VK_SUCCESS; - has_signal_dma_buf = false; - mem_signal = (struct wsi_memory_signal_submit_info) { - .sType = VK_STRUCTURE_TYPE_WSI_MEMORY_SIGNAL_SUBMIT_INFO_MESA, - .memory = swapchain->blit.type == WSI_SWAPCHAIN_NO_BLIT ? - image->memory : image->blit.memory, - }; - __vk_append_struct(&submit_info, &mem_signal); - } } result = wsi->QueueSubmit(submit_queue, 1, &submit_info, fence);