From: Aaron Watry Date: Wed, 6 Nov 2013 22:49:23 +0000 (-0600) Subject: radeonsi/compute: Dispose of LLVM module after compiling kernels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c6ac9e61452ffc49f8e360fc879deec8e04bbb5;p=mesa.git radeonsi/compute: Dispose of LLVM module after compiling kernels v2: Fix indentation Reviewed-by: Tom Stellard CC: "10.0" --- diff --git a/src/gallium/drivers/radeonsi/radeonsi_compute.c b/src/gallium/drivers/radeonsi/radeonsi_compute.c index e7bf5a4a597..5df972fb20f 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_compute.c +++ b/src/gallium/drivers/radeonsi/radeonsi_compute.c @@ -49,6 +49,7 @@ static void *radeonsi_create_compute_state( LLVMModuleRef mod = radeon_llvm_get_kernel_module(i, code, header->num_bytes); si_compile_llvm(rctx, &program->kernels[i], mod); + LLVMDisposeModule(mod); } return program;