radeonsi: fix compiler breakage
authorMarek Olšák <marek.olsak@amd.com>
Wed, 4 Jul 2018 04:13:04 +0000 (00:13 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 4 Jul 2018 04:13:38 +0000 (00:13 -0400)
Broken by d853d3a59bd5f8720a5b021bcd64a193d370b623.

src/gallium/drivers/radeonsi/si_pipe.c

index d047807dd20ff1cb4fb5417aac0c805eb196dee9..35ddb114d043a1125533e1606a04fee822eb1f31 100644 (file)
@@ -114,6 +114,7 @@ static void si_init_compiler(struct si_screen *sscreen,
                (!sscreen->llvm_has_working_vgpr_indexing ? AC_TM_PROMOTE_ALLOCA_TO_SCRATCH : 0) |
                (sscreen->debug_flags & DBG(CHECK_IR) ? AC_TM_CHECK_IR : 0);
 
+       ac_init_llvm_once();
        ac_init_llvm_compiler(compiler, true, sscreen->info.family, tm_options);
 }