zink: call the reset callback not only during a status check

Fixes: 95b9fc41 ("zink: implement pipe_device_reset_callback")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7404>
This commit is contained in:
Hoe Hao Cheng 2020-11-03 01:05:28 +08:00 committed by Marge Bot
parent efadeb3269
commit 0e3f2e6321

View file

@ -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);
}
}
}