Mesa (main): zink: be consistent about waiting on context queue on context destroy

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 19 19:17:04 UTC 2021


Module: Mesa
Branch: main
Commit: 81cc94b8f0ff05649b85a681c1a2bf6b9f932315
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81cc94b8f0ff05649b85a681c1a2bf6b9f932315

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Nov 19 13:41:22 2021 -0500

zink: be consistent about waiting on context queue on context destroy

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13885>

---

 src/gallium/drivers/zink/zink_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 0b3c472f79b..0dd4ed017e7 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -85,7 +85,7 @@ zink_context_destroy(struct pipe_context *pctx)
 
    if (util_queue_is_initialized(&screen->flush_queue))
       util_queue_finish(&screen->flush_queue);
-   if (screen->queue && !screen->device_lost && VKSCR(QueueWaitIdle)(screen->queue) != VK_SUCCESS)
+   if (ctx->batch.state && !screen->device_lost && VKSCR(QueueWaitIdle)(ctx->batch.state->queue) != VK_SUCCESS)
       debug_printf("vkQueueWaitIdle failed\n");
 
    util_blitter_destroy(ctx->blitter);



More information about the mesa-commit mailing list