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>