mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
etnaviv: free tgsi tokens when shader state is deleted
The tokens are allocated using tgsi_dup_tokens when the shader state is created, so we need to free them explicitly when deleting the shader state. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7367>
This commit is contained in:
parent
3fd512440b
commit
98db7c4841
1 changed files with 1 additions and 0 deletions
|
|
@ -450,6 +450,7 @@ etna_delete_shader_state(struct pipe_context *pctx, void *ss)
|
|||
etna_destroy_shader(t);
|
||||
}
|
||||
|
||||
tgsi_free_tokens(shader->tokens);
|
||||
ralloc_free(shader->nir);
|
||||
FREE(shader);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue