Mesa (main): zink: unset program batch usage on state reset
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 16 02:58:42 UTC 2021
Module: Mesa
Branch: main
Commit: fec24a2fa412dfe97bd0943efde7941211d08089
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fec24a2fa412dfe97bd0943efde7941211d08089
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri May 7 08:21:30 2021 -0400
zink: unset program batch usage on state reset
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11399>
---
src/gallium/drivers/zink/zink_batch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c
index 16ab2444aee..7362a26495e 100644
--- a/src/gallium/drivers/zink/zink_batch.c
+++ b/src/gallium/drivers/zink/zink_batch.c
@@ -61,6 +61,7 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
set_foreach_remove(bs->programs, entry) {
struct zink_program *pg = (struct zink_program*)entry->key;
+ zink_batch_usage_unset(&pg->batch_uses, bs);
if (pg->is_compute) {
struct zink_compute_program *comp = (struct zink_compute_program*)pg;
bool in_use = comp == ctx->curr_compute;
More information about the mesa-commit
mailing list