anv/wsi: Mark Wayland buffers as busy
authorDaniel Stone <daniels@collabora.com>
Tue, 19 Jan 2016 16:53:16 +0000 (16:53 +0000)
committerDaniel Stone <daniels@collabora.com>
Tue, 19 Jan 2016 16:54:55 +0000 (16:54 +0000)
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 <daniels@collabora.com>
src/vulkan/anv_wsi_wayland.c

index c8f9cf27ab343ac1e5924eaf84dd6922114f6f34..28f0ed834df056b7aa5b0b562648019df75b4cb2 100644 (file)
@@ -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);