mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-25 15:40:46 +02:00
vulkan/wsi: Signal buffer memory object when blitting
When we're using the PRIME path and using vkCmdCopyImageToBuffer to copy to a linear image, the buffer memory is what's shared with the window system. For legacy drivers that depend on memory signaling via wsi_memory_signal_submit_info, we need to tell the driver to signal the buffer memory, not the image memory or else the window system may wait on a driver-internal buffer and not wait for the copy to complete. Cc: mesa-stable Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34218>
This commit is contained in:
parent
8b0271050a
commit
cf23ffcbae
1 changed files with 2 additions and 1 deletions
|
|
@ -1535,7 +1535,8 @@ wsi_common_queue_present(const struct wsi_device *wsi,
|
|||
has_signal_dma_buf = false;
|
||||
mem_signal = (struct wsi_memory_signal_submit_info) {
|
||||
.sType = VK_STRUCTURE_TYPE_WSI_MEMORY_SIGNAL_SUBMIT_INFO_MESA,
|
||||
.memory = image->memory,
|
||||
.memory = swapchain->blit.type == WSI_SWAPCHAIN_NO_BLIT ?
|
||||
image->memory : image->blit.memory,
|
||||
};
|
||||
__vk_append_struct(&submit_info, &mem_signal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue