radeonsi: Fix LLVM context leak.
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 15 Aug 2012 16:22:46 +0000 (18:22 +0200)
committerMichel Dänzer <michel@daenzer.net>
Thu, 16 Aug 2012 09:58:24 +0000 (11:58 +0200)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 4f762245b2bbb705dd3e9097c3af924f3fa1ebc3..0f2aaef8175b52e68776e1ad0ac23a0baa2e1b89 100644 (file)
@@ -681,6 +681,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 */