[Mesa-dev] [PATCH 03/10] radeonsi: don't call gallivm_init_llvm_targets
Marek Olšák
maraeo at gmail.com
Sat Jul 8 00:42:12 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
It's for initializing the native (x86) target.
---
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
index d5e988e..3f20cd1 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -61,21 +61,20 @@ enum si_llvm_calling_convention {
void si_llvm_add_attribute(LLVMValueRef F, const char *name, int value)
{
char str[16];
snprintf(str, sizeof(str), "%i", value);
LLVMAddTargetDependentFunctionAttr(F, name, str);
}
static void init_amdgpu_target()
{
- gallivm_init_llvm_targets();
LLVMInitializeAMDGPUTargetInfo();
LLVMInitializeAMDGPUTarget();
LLVMInitializeAMDGPUTargetMC();
LLVMInitializeAMDGPUAsmPrinter();
/* For inline assembly. */
LLVMInitializeAMDGPUAsmParser();
if (HAVE_LLVM >= 0x0400) {
/*
--
2.7.4
More information about the mesa-dev
mailing list