radeonsi: fix leaked compute shader NIR

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
Marek Olšák 2019-07-16 00:08:27 -04:00
parent 98377d3450
commit a57f0f8a6b
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}