mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
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 4c6ac9e614)
This commit is contained in:
parent
3a98fc6abe
commit
713966c82f
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue