diff options
author | Aaron Watry <[email protected]> | 2013-11-06 16:49:23 -0600 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-11-15 09:16:49 -0800 |
commit | 4c6ac9e61452ffc49f8e360fc879deec8e04bbb5 (patch) | |
tree | eef35bbcf19cb48a2e0e2f77ac04dc317851181d /src/gallium/drivers | |
parent | 35dad4a1e235b2bf7fb3ecdb82aed0214db69a35 (diff) |
radeonsi/compute: Dispose of LLVM module after compiling kernels
v2: Fix indentation
Reviewed-by: Tom Stellard <[email protected]>
CC: "10.0" <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-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; |