mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
freedreno: Break out of "should we free the entry" loop once we've freed.
Fixes a use-after-free of the state on the next iteration when it was
probably just destroyed.
Fixes: 6de01faac5 ("freedreno/a6xx: invalidate tex state cache entries on rebind")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7695>
This commit is contained in:
parent
daaf5f1d18
commit
d3c67d7e7e
1 changed files with 1 additions and 0 deletions
|
|
@ -512,6 +512,7 @@ fd6_rebind_resource(struct fd_context *ctx, struct fd_resource *rsc)
|
|||
for (unsigned i = 0; i < ARRAY_SIZE(state->key.view); i++) {
|
||||
if (rsc->seqno == state->key.view[i].rsc_seqno) {
|
||||
remove_tex_entry(fd6_ctx, entry);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue