projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98377d3
)
radeonsi: fix leaked compute shader NIR
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 16 Jul 2019 04:08:27 +0000
(
00:08
-0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Sat, 20 Jul 2019 00:16:37 +0000
(20:16 -0400)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/radeonsi/si_compute.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_compute.c
b/src/gallium/drivers/radeonsi/si_compute.c
index 07b1293049f72bf11ea8e2223d33e293ce9eb1c2..5e2d3cae7cfea9c2394dd79f89a26a6480c7d029 100644
(file)
--- 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);
}