summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-16 00:08:27 -0400
committerMarek Olšák <[email protected]>2019-07-19 20:16:37 -0400
commita57f0f8a6baa118603a0241c38b9c26024da6049 (patch)
treeb1255a31643c93abc117d7dd10512944474662d9 /src/gallium/drivers
parent98377d345002e8db5bce396241f5e61d9f3bd32a (diff)
radeonsi: fix leaked compute shader NIR
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Acked-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 07b1293049f..5e2d3cae7cf 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -997,6 +997,7 @@ static void si_delete_compute_state(struct pipe_context *ctx, void* state){
if (program == sctx->cs_shader_state.emitted_program)
sctx->cs_shader_state.emitted_program = NULL;
+ ralloc_free(program->sel.nir);
si_compute_reference(&program, NULL);
}