diff options
author | Aaron Watry <awatry@gmail.com> | 2013-11-06 16:49:23 -0600 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-11-15 13:39:41 -0800 |
commit | 713966c82f8051575d53c8da918ec9365b087dda (patch) | |
tree | ed698d23e09e02e589479fa61cd8a9a74b176ec0 /src/gallium | |
parent | 3a98fc6abecc7bce02b3de4861f49db38daff775 (diff) |
radeonsi/compute: Dispose of LLVM module after compiling kernels
v2: Fix indentation
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 4c6ac9e61452ffc49f8e360fc879deec8e04bbb5)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_compute.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |