summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vulkan/anv_wsi_wayland.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c
index feecf22782e..815218ecc69 100644
--- a/src/vulkan/anv_wsi_wayland.c
+++ b/src/vulkan/anv_wsi_wayland.c
@@ -521,8 +521,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);
}
@@ -569,6 +569,7 @@ wsi_wl_swapchain_queue_present(struct anv_swapchain *anv_chain,
chain->fifo_ready = false;
}
+ chain->images[image_index].busy = true;
wl_surface_commit(chain->surface);
wl_display_flush(chain->display->display);