From 8980ac041167fb5a80be76e2f912b96117afa2cf Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Oct 2016 12:43:07 +1000 Subject: anv/wsi: fix apps that acquire multiple images up front This fix was found in the radv codebase when running dota2, no idea if anyone has reported it on anv, but the same problem occurs. Once an image is acquired we need to mark it busy. Acked-by: Edward O'Callaghan Cc: "12.0" Signed-off-by: Dave Airlie --- src/intel/vulkan/anv_wsi_x11.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/vulkan/anv_wsi_x11.c') diff --git a/src/intel/vulkan/anv_wsi_x11.c b/src/intel/vulkan/anv_wsi_x11.c index 010c86c4f2..5748506032 100644 --- a/src/intel/vulkan/anv_wsi_x11.c +++ b/src/intel/vulkan/anv_wsi_x11.c @@ -574,6 +574,7 @@ x11_acquire_next_image(struct anv_swapchain *anv_chain, /* We found a non-busy image */ xshmfence_await(chain->images[i].shm_fence); *image_index = i; + chain->images[i].busy = true; return VK_SUCCESS; } } -- cgit v1.2.3