mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 12:30:33 +01: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>
This commit is contained in:
parent
35dad4a1e2
commit
4c6ac9e614
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