mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 11:00:37 +02:00
zink: fix the fix for separate shader program refcounting
the previous fix fixed the initial refcount but then left a dangling
ref when doing the optimized program replacement
Fixes: 4e38061643 ("zink: fix separate shader program refcounting")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24255>
This commit is contained in:
parent
70eff58767
commit
318d0316dd
1 changed files with 1 additions and 1 deletions
|
|
@ -703,7 +703,7 @@ replace_separable_prog(struct zink_screen *screen, struct hash_entry *entry, str
|
|||
entry->data = real;
|
||||
entry->key = real->shaders;
|
||||
real->base.removed = false;
|
||||
prog->full_prog = NULL;
|
||||
zink_gfx_program_reference(screen, &prog->full_prog, NULL);
|
||||
prog->base.removed = true;
|
||||
return real;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue