From: Dave Airlie Date: Thu, 13 Oct 2016 19:08:56 +0000 (+1000) Subject: anv: fix the wayland wsi busy flag setting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3834ebaf9ea8ff6826651392978cdb73b7fab96;p=mesa.git anv: fix the wayland wsi busy flag setting Cc: "12.0" Signed-off-by: Dave Airlie --- diff --git a/src/intel/vulkan/anv_wsi_wayland.c b/src/intel/vulkan/anv_wsi_wayland.c index e6cc09ff216..71527d36d5f 100644 --- a/src/intel/vulkan/anv_wsi_wayland.c +++ b/src/intel/vulkan/anv_wsi_wayland.c @@ -523,7 +523,7 @@ wsi_wl_swapchain_acquire_next_image(struct anv_swapchain *anv_chain, if (!chain->images[i].busy) { /* We found a non-busy image */ *image_index = i; - chain->images[image_index].busy = true; + chain->images[i].busy = true; return VK_SUCCESS; } }