From: Marek Olšák Date: Tue, 16 Jul 2019 04:08:27 +0000 (-0400) Subject: radeonsi: fix leaked compute shader NIR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a57f0f8a6baa118603a0241c38b9c26024da6049;p=mesa.git radeonsi: fix leaked compute shader NIR Reviewed-by: Pierre-Eric Pelloux-Prayer Acked-by: Samuel Pitoiset --- 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); }