anv: fix the wayland wsi busy flag setting

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2016-10-14 05:08:56 +10:00
parent 5c66d46d6a
commit a3834ebaf9
1 changed files with 1 additions and 1 deletions

View 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;
}
}