From c85168160e2504c7e83d8ab8496d7d019b3dc946 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 15 Sep 2025 13:05:23 -0400 Subject: [PATCH] zink: reset batch states on destroy these may otherwise have been in the reset queue and thus contain resource refs Part-of: --- src/gallium/drivers/zink/zink_batch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_batch.c b/src/gallium/drivers/zink/zink_batch.c index d6c2a8d84a5..26dc8029c3f 100644 --- a/src/gallium/drivers/zink/zink_batch.c +++ b/src/gallium/drivers/zink/zink_batch.c @@ -229,6 +229,8 @@ zink_batch_state_destroy(struct zink_screen *screen, struct zink_batch_state *bs if (!bs) return; + reset_batch_state_internal(screen, bs); + util_queue_fence_destroy(&bs->flush_completed); cnd_destroy(&bs->usage.flush);