anv: fix the wayland wsi busy flag setting
authorDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 19:08:56 +0000 (05:08 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 19:10:02 +0000 (05:10 +1000)
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/intel/vulkan/anv_wsi_wayland.c

index e6cc09ff216f8b797f4967f929360c16eca0c1d4..71527d36d5fe2a532de0d7c4c51a0b54d9a4f069 100644 (file)
@@ -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;
          }
       }