summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-09-22 09:37:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-26 10:25:42 +0100
commitbfc5f9f80874c431d28511b6ad3e253c51945cc4 (patch)
tree7c9c274c45a931dbbc130af90175416d778b49b5
parentf15f38065023f3c375df96ca9773354cd54337ca (diff)
downloadpoky-bfc5f9f80874c431d28511b6ad3e253c51945cc4.tar.gz
mesa: Update clang-17 patch to upstream v2
(From OE-Core rev: 1172774088a81dfa0447cf7d39caf115bd6c6a7c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch27
1 files changed, 18 insertions, 9 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch b/meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch
index 3631a918b0..0ca7a22b45 100644
--- a/meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch
+++ b/meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch
@@ -1,4 +1,4 @@
1From 865762e0a767a121206d818bdd58301afbf30104 Mon Sep 17 00:00:00 2001 1From c8e9776abc3dfd3f2411797a90a03e7fa16263ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 23 Jun 2023 01:20:38 -0700 3Date: Fri, 23 Jun 2023 01:20:38 -0700
4Subject: [PATCH] gallium: Fix build with llvm 17 4Subject: [PATCH] gallium: Fix build with llvm 17
@@ -10,14 +10,12 @@ so add conditions to exclude them for llvm >= 17
10Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827] 10Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827]
11Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12--- 12---
13 src/gallium/auxiliary/gallivm/lp_bld_init.c | 4 +++- 13 src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 ++++--
14 1 file changed, 3 insertions(+), 1 deletion(-) 14 1 file changed, 4 insertions(+), 2 deletions(-)
15 15
16diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c
17index 24d0823..3d4573e 100644
18--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c 16--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
19+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c 17+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
20@@ -42,8 +42,10 @@ 18@@ -42,19 +42,23 @@
21 19
22 #include <llvm/Config/llvm-config.h> 20 #include <llvm/Config/llvm-config.h>
23 #include <llvm-c/Analysis.h> 21 #include <llvm-c/Analysis.h>
@@ -29,6 +27,17 @@ index 24d0823..3d4573e 100644
29 #include <llvm-c/Transforms/Utils.h> 27 #include <llvm-c/Transforms/Utils.h>
30 #endif 28 #endif
31 #include <llvm-c/BitWriter.h> 29 #include <llvm-c/BitWriter.h>
32-- 30 #if GALLIVM_USE_NEW_PASS == 1
332.41.0 31 #include <llvm-c/Transforms/PassBuilder.h>
34 32-#elif GALLIVM_HAVE_CORO == 1
33+#elif GALLIVM_HAVE_CORO == 1 && LLVM_VERSION_MAJOR < 17
34 #if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64)
35 #include <llvm-c/Transforms/IPO.h>
36 #endif
37+#if LLVM_VERSION_MAJOR < 17
38 #include <llvm-c/Transforms/Coroutines.h>
39 #endif
40+#endif
41
42 unsigned gallivm_perf = 0;
43