panfrost: Free TGSI tokens

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12376>
This commit is contained in:
Icecream95 2021-08-14 23:11:10 +12:00 committed by Marge Bot
parent 98165aa9f2
commit d349448717
1 changed files with 2 additions and 3 deletions

View File

@ -327,9 +327,8 @@ panfrost_delete_shader_state(
{
struct panfrost_shader_variants *cso = (struct panfrost_shader_variants *) so;
if (cso->base.type == PIPE_SHADER_IR_TGSI) {
/* TODO: leaks TGSI tokens! */
}
if (cso->base.type == PIPE_SHADER_IR_TGSI)
tgsi_free_tokens(cso->base.tokens);
for (unsigned i = 0; i < cso->variant_count; ++i) {
struct panfrost_shader_state *shader_state = &cso->variants[i];