From 0e3f2e632154d003cc582468dfcb758d9e8cf100 Mon Sep 17 00:00:00 2001 From: Hoe Hao Cheng Date: Tue, 3 Nov 2020 01:05:28 +0800 Subject: [PATCH] zink: call the reset callback not only during a status check Fixes: 95b9fc41 ("zink: implement pipe_device_reset_callback") Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_batch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index 88c547cbb90..33e69b5665d 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -101,6 +101,10 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch) if (vkQueueSubmit(ctx->queue, 1, &si, batch->fence->fence) != VK_SUCCESS) { debug_printf("ZINK: vkQueueSubmit() failed\n"); ctx->is_device_lost = true; + + if (ctx->reset.reset) { + ctx->reset.reset(ctx->reset.data, PIPE_GUILTY_CONTEXT_RESET); + } } }