diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-11-22 03:18:18 -0500 |
---|---|---|
committer | Dylan Baker <dylan.c.baker@intel.com> | 2020-12-03 10:49:05 -0800 |
commit | 2f493068ecf9d28dee4155ae2223deb0a83201a6 (patch) | |
tree | 81323572ee1c3de546b861ddaa978dd32ba074f8 | |
parent | a9f4a65402c1ce073da658a0e2abcb155dacb6e1 (diff) | |
download | mesa-2f493068ecf9d28dee4155ae2223deb0a83201a6.tar.gz |
radeonsi: fix a memory leak in si_create_dcc_retile_cs
Fixes: 1f21396431a - 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 e64d5cc4d6c0b950883be0882f9b7ad3401965c1)
-rw-r--r-- | .pick_status.json | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json index 25d4a9ef33c..5d31550846c 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1039,7 +1039,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" }, diff --git a/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c b/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c index c1a150d6ab3..e27a94a2e25 100644 --- a/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c +++ b/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c @@ -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; } |