mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
cec2b1327b
commit
6dd081ab1b
1 changed files with 3 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue