zink: null out zink_batch_state::next when reusing a batch state

this is harmless at present

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
This commit is contained in:
Mike Blumenkrantz 2025-08-22 13:04:46 -04:00 committed by Marge Bot
parent cec2b1327b
commit 6dd081ab1b

View file

@ -475,7 +475,9 @@ get_batch_state(struct zink_context *ctx)
if (!bs)
bs = find_completed_batch_state(ctx);
if (!bs) {
if (bs) {
bs->next = NULL;
} else {
if (!ctx->bs) {
/* this is batch init, so create a few more states for later use */
for (int i = 0; i < 3; i++) {