zink: reset batch states on destroy
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

these may otherwise have been in the reset queue and thus contain
resource refs

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37379>
This commit is contained in:
Mike Blumenkrantz 2025-09-15 13:05:23 -04:00
parent 2330839641
commit c85168160e

View file

@ -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);