radeonsi/compute: Dispose of LLVM module after compiling kernels
authorAaron Watry <awatry@gmail.com>
Wed, 6 Nov 2013 22:49:23 +0000 (16:49 -0600)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:16:49 +0000 (09:16 -0800)
v2: Fix indentation

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeonsi/radeonsi_compute.c

index e7bf5a4a597cd37b9347c429254e5c20b3e65024..5df972fb20f23cb4d633bc3412c7f66f3968d2c3 100644 (file)
@@ -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;