mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
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:
parent
efadeb3269
commit
0e3f2e6321
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue