mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
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:
parent
98377d3450
commit
a57f0f8a6b
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue