radeonsi: fix a memory leak in si_create_dcc_retile_cs

Fixes: 1f21396431 - radeonsi: add support for displayable DCC for multi-RB chips

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7721>
(cherry picked from commit e64d5cc4d6)
This commit is contained in:
Marek Olšák 2020-11-22 03:18:18 -05:00 committed by Dylan Baker
parent 4e39cdaa50
commit b7659c5ed7
2 changed files with 2 additions and 1 deletions

View file

@ -814,7 +814,7 @@
"description": "radeonsi: fix a memory leak in si_create_dcc_retile_cs",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "1f21396431a03dc4e5a542628d7d8370973c967f"
},

View file

@ -278,6 +278,7 @@ void *si_create_dcc_retile_cs(struct pipe_context *ctx)
void *cs = ctx->create_compute_state(ctx, &state);
ureg_destroy(ureg);
ureg_free_tokens(state.prog);
return cs;
}