Module: Mesa
Branch: main
Commit: fec24a2fa412dfe97bd0943efde7941211d08089
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fec24a2fa412dfe97bd0943efde7941211d08089

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri May  7 08:21:30 2021 -0400

zink: unset program batch usage on state reset

Reviewed-by: Dave Airlie <[email protected]>
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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to