mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
llvmpipe: Centralize LLVM initialization.
This commit is contained in:
parent
a9e6da7b4c
commit
9f9b44222f
2 changed files with 3 additions and 4 deletions
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
#include "util/u_memory.h"
|
||||
#include "util/u_cpu_detect.h"
|
||||
#include "gallivm/lp_bld_init.h"
|
||||
#include "lp_debug.h"
|
||||
#include "lp_screen.h"
|
||||
#include "gallivm/lp_bld_intr.h"
|
||||
|
|
@ -148,8 +149,7 @@ lp_jit_screen_init(struct llvmpipe_screen *screen)
|
|||
util_cpu_caps.has_sse4_1 = 0;
|
||||
#endif
|
||||
|
||||
LLVMLinkInJIT();
|
||||
LLVMInitializeNativeTarget();
|
||||
lp_build_init();
|
||||
|
||||
screen->module = LLVMModuleCreateWithName("llvmpipe");
|
||||
|
||||
|
|
|
|||
|
|
@ -380,8 +380,7 @@ int main(int argc, char **argv)
|
|||
n = atoi(argv[i]);
|
||||
}
|
||||
|
||||
LLVMLinkInJIT();
|
||||
LLVMInitializeNativeTarget();
|
||||
lp_build_init();
|
||||
|
||||
util_cpu_detect();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue