mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
zink: assert that the found program matches the expected one in shader_free
avoid bugs Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21246>
This commit is contained in:
parent
66f2a1c526
commit
f70b1732da
1 changed files with 1 additions and 1 deletions
|
|
@ -4496,7 +4496,7 @@ zink_shader_free(struct zink_screen *screen, struct zink_shader *shader)
|
|||
struct hash_table *ht = &prog->ctx->program_cache[idx];
|
||||
simple_mtx_lock(&prog->ctx->program_lock[idx]);
|
||||
struct hash_entry *he = _mesa_hash_table_search(ht, prog->shaders);
|
||||
assert(he);
|
||||
assert(he && he->data == prog);
|
||||
_mesa_hash_table_remove(ht, he);
|
||||
prog->base.removed = true;
|
||||
simple_mtx_unlock(&prog->ctx->program_lock[idx]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue