panfrost: Free NIR when deleting shader state
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12376>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user