summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-04 01:28:17 -0400
committerMarek Olšák <[email protected]>2018-07-04 15:48:18 -0400
commitff330055e989803fa05c2d5c8e1a4c08b52a55fd (patch)
tree2ad1c4d99d18d4caff755b8d8e84b53f5df50463 /src/gallium/drivers/radeonsi/si_pipe.c
parent0075e5fed8ae0e33b29a7b99bcdb0f480846d8b1 (diff)
radeonsi: use ac_compile_module_to_binary to reduce compile times
Compile times of simple shaders are reduced by ~20%. Compile times of prologs and epilogs are reduced by up to 40%. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 35ddb114d04..86a95a0da01 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -116,10 +116,12 @@ static void si_init_compiler(struct si_screen *sscreen,
ac_init_llvm_once();
ac_init_llvm_compiler(compiler, true, sscreen->info.family, tm_options);
+ compiler->passes = ac_create_llvm_passes(compiler->tm);
}
static void si_destroy_compiler(struct ac_llvm_compiler *compiler)
{
+ ac_destroy_llvm_passes(compiler->passes);
ac_destroy_llvm_compiler(compiler);
}