Mesa (master): zink: call the reset callback not only during a status check
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 2 21:00:47 UTC 2020
Module: Mesa
Branch: master
Commit: 0e3f2e632154d003cc582468dfcb758d9e8cf100
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e3f2e632154d003cc582468dfcb758d9e8cf100
Author: Hoe Hao Cheng <haochengho12907 at gmail.com>
Date: Tue Nov 3 01:05:28 2020 +0800
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 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7404>
---
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);
+ }
}
}
More information about the mesa-commit
mailing list