mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
anv/wsi: Avoid stuck Wayland connection
In acquire_next_image, we are waiting for a wl_buffer::release to arrive and release one of the buffers in our swapchain. Most compositors don't explicitly flush release events, so we may need to perform a roundtrip instead, to ensure the event arrives. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
3276610ea6
commit
ba5ef49dcb
1 changed files with 2 additions and 2 deletions
|
|
@ -536,8 +536,8 @@ wsi_wl_swapchain_acquire_next_image(struct anv_swapchain *anv_chain,
|
|||
/* This time we do a blocking dispatch because we can't go
|
||||
* anywhere until we get an event.
|
||||
*/
|
||||
int ret = wl_display_dispatch_queue(chain->display->display,
|
||||
chain->queue);
|
||||
int ret = wl_display_roundtrip_queue(chain->display->display,
|
||||
chain->queue);
|
||||
if (ret < 0)
|
||||
return vk_error(VK_ERROR_OUT_OF_DATE_KHR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue