[Mesa-dev] [PATCH 2/3] radeonsi: Fix LLVM context leak.
Michel Dänzer
michel at daenzer.net
Wed Aug 15 09:37:07 PDT 2012
From: Michel Dänzer <michel.daenzer at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/drivers/radeonsi/radeonsi_shader.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index ae8c9a9..8e3e9ae 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -680,6 +680,7 @@ int si_pipe_shader_create(
shader->num_vgprs = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 4));
shader->spi_ps_input_ena = util_le32_to_cpu(*(uint32_t*)(inst_bytes + 8));
+ radeon_llvm_dispose(&si_shader_ctx.radeon_bld);
tgsi_parse_free(&si_shader_ctx.parse);
/* copy new shader */
--
1.7.10.4
More information about the mesa-dev
mailing list