summarylogtreecommitdiffstats
path: root/ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch')
-rw-r--r--ac-nir-Fix-include-for-LLVMAddPromoteMemoryToRegisterPass.patch42
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,