mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 04:30:25 +01:00
zink: free local shader nirs on program free
leak--
Fixes: 61f2667cf5 ("zink: remove gfx program slot mapping")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12630>
This commit is contained in:
parent
a8d0c0af86
commit
441018a173
1 changed files with 1 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ zink_destroy_gfx_program(struct zink_screen *screen,
|
|||
prog->shaders[i] = NULL;
|
||||
destroy_shader_cache(screen, &prog->base.shader_cache[i]);
|
||||
}
|
||||
ralloc_free(prog->nir[i]);
|
||||
}
|
||||
|
||||
unsigned max_idx = ARRAY_SIZE(prog->pipelines);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue