mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
panfrost: Free NIR when deleting shader state
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12376>
This commit is contained in:
parent
d349448717
commit
10a344a857
1 changed files with 3 additions and 0 deletions
|
|
@ -327,6 +327,9 @@ panfrost_delete_shader_state(
|
|||
{
|
||||
struct panfrost_shader_variants *cso = (struct panfrost_shader_variants *) so;
|
||||
|
||||
if (!cso->is_compute && cso->base.type == PIPE_SHADER_IR_NIR)
|
||||
ralloc_free(cso->base.ir.nir);
|
||||
|
||||
if (cso->base.type == PIPE_SHADER_IR_TGSI)
|
||||
tgsi_free_tokens(cso->base.tokens);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue