mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
Merge branch 'vulkan' into 'vulkan'
Vulkan WSI Wayland fixes Two small fixes to make mailbox mode actually work again. See merge request !4
This commit is contained in:
commit
1a442a7923
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue