summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_wsi_x11.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-10-13 12:43:07 +1000
committerDave Airlie <airlied@redhat.com>2016-10-14 04:45:11 +1000
commit8980ac041167fb5a80be76e2f912b96117afa2cf (patch)
tree58971c0b7e204b8d8c1d87391431bbca14a31f0a /src/intel/vulkan/anv_wsi_x11.c
parent8bdac874e667179bd2682f0111cd7db58b858e5b (diff)
downloadexternal_mesa3d-8980ac041167fb5a80be76e2f912b96117afa2cf.tar.gz
external_mesa3d-8980ac041167fb5a80be76e2f912b96117afa2cf.tar.bz2
external_mesa3d-8980ac041167fb5a80be76e2f912b96117afa2cf.zip
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 <funfunctor@folklore1984.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/intel/vulkan/anv_wsi_x11.c')
-rw-r--r--src/intel/vulkan/anv_wsi_x11.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}