Mesa (master): anv: fix the wayland wsi busy flag setting

Dave Airlie airlied at kemper.freedesktop.org
Thu Oct 13 19:10:11 UTC 2016


Module: Mesa
Branch: master
Commit: a3834ebaf9ea8ff6826651392978cdb73b7fab96
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3834ebaf9ea8ff6826651392978cdb73b7fab96

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Oct 14 05:08:56 2016 +1000

anv: fix the wayland wsi busy flag setting

Cc: "12.0" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/intel/vulkan/anv_wsi_wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_wsi_wayland.c b/src/intel/vulkan/anv_wsi_wayland.c
index e6cc09f..71527d3 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;
          }
       }




More information about the mesa-commit mailing list