diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2021-11-19 13:41:22 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2021-11-19 18:56:10 +0000 |
commit | 81cc94b8f0ff05649b85a681c1a2bf6b9f932315 (patch) | |
tree | dbd56fb0e397ed1f611e3d93ade5b84157619eb8 /src | |
parent | e92b8956c7923b5261dbf8218d87b7dd3c79ae4f (diff) | |
download | mesa-81cc94b8f0ff05649b85a681c1a2bf6b9f932315.tar.gz |
zink: be consistent about waiting on context queue on context destroy
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13885>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/zink/zink_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |