mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +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>
(cherry picked from commit 98db7c4841)
This commit is contained in:
parent
25bc222815
commit
e8b625bc96
2 changed files with 2 additions and 1 deletions
|
|
@ -589,7 +589,7 @@
|
|||
"description": "etnaviv: free tgsi tokens when shader state is deleted",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -445,6 +445,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