diff options
author | LW-archlinux | 2018-04-01 12:32:22 +0200 |
---|---|---|
committer | LW-archlinux | 2018-04-01 12:32:22 +0200 |
commit | 05a3d109a8b9b879d5c5d2f2116fa163fb575b2a (patch) | |
tree | 5ecbeea045f17f444f5f0e8185c6f9a9e8cb3945 /ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch | |
parent | 888da532ed415babf8a4c8fb32187f39ec0bf207 (diff) | |
download | aur-05a3d109a8b9b879d5c5d2f2116fa163fb575b2a.tar.gz |
patch added to solve build failure
Diffstat (limited to 'ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch')
-rw-r--r-- | ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch b/ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch new file mode 100644 index 000000000000..fa72a6225271 --- /dev/null +++ b/ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch @@ -0,0 +1,42 @@ +diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c +index c6b4e8b532..2f0864da46 100644 +--- a/src/amd/vulkan/radv_nir_to_llvm.c ++++ b/src/amd/vulkan/radv_nir_to_llvm.c +@@ -32,6 +32,9 @@ + #include <llvm-c/Core.h> + #include <llvm-c/TargetMachine.h> + #include <llvm-c/Transforms/Scalar.h> ++#if HAVE_LLVM >= 0x0700 ++#include <llvm-c/Transforms/Utils.h> ++#endif + + #include "sid.h" + #include "gfx9d.h" +diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c +index 6ddc509a81..dae9d01552 100644 +--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c ++++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c +@@ -40,6 +40,9 @@ + + #include <llvm-c/Analysis.h> + #include <llvm-c/Transforms/Scalar.h> ++#if HAVE_LLVM >= 0x0700 ++#include <llvm-c/Transforms/Utils.h> ++#endif + #include <llvm-c/BitWriter.h> + + +diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +index 79fdebe838..622fd26950 100644 +--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c ++++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +@@ -40,6 +40,9 @@ + #include <stdio.h> + #include <llvm-c/Transforms/IPO.h> + #include <llvm-c/Transforms/Scalar.h> ++#if HAVE_LLVM >= 0x0700 ++#include <llvm-c/Transforms/Utils.h> ++#endif + + enum si_llvm_calling_convention { + RADEON_LLVM_AMDGPU_VS = 87, |