radv: fix the wayland wsi busy bit
authorDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 19:09:39 +0000 (05:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 13 Oct 2016 19:10:02 +0000 (05:10 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_wsi_wayland.c

index 5ce2e9e7915bdbf87878f02e285535b4e04525b3..739e0e32580efb8ccbe424ba356b30312e647e5e 100644 (file)
@@ -521,7 +521,7 @@ wsi_wl_swapchain_acquire_next_image(struct radv_swapchain *radv_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;
                        }
                }