diff options
author | Daniel Stone <[email protected]> | 2016-01-19 16:53:16 +0000 |
---|---|---|
committer | Daniel Stone <[email protected]> | 2016-01-19 16:54:55 +0000 |
commit | f9ca780ea4fa1b11639a880be501171017585f2c (patch) | |
tree | 4e3d3e44c73516d6730283b2c3be7e7ea97702a0 | |
parent | ba5ef49dcbf9e001231658ad8c6588649a2dbd57 (diff) |
anv/wsi: Mark Wayland buffers as busy
We were diligently setting Wayland buffers as non-busy, but nowhere in
the code did we set them to busy when submitted to the server. This
meant that acquire_next_image would only ever find the same buffer in
a loop, over and over.
Signed-off-by: Daniel Stone <[email protected]>
-rw-r--r-- | src/vulkan/anv_wsi_wayland.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/anv_wsi_wayland.c b/src/vulkan/anv_wsi_wayland.c index c8f9cf27ab3..28f0ed834df 100644 --- a/src/vulkan/anv_wsi_wayland.c +++ b/src/vulkan/anv_wsi_wayland.c @@ -584,6 +584,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); |