anv: Rework fences
[mesa.git] / src / intel / vulkan / anv_wsi.c
index 61d5db079798007b05ea7c32252feb3c1452cee9..b95e965a31750821db2119ae71a2cf1c05847c7b 100644 (file)
@@ -334,7 +334,7 @@ VkResult anv_AcquireNextImageKHR(
 
    /* Thanks to implicit sync, the image is ready immediately. */
    if (fence)
-      fence->ready = true;
+      fence->state = ANV_FENCE_STATE_SIGNALED;
 
    return result;
 }