diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch')
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch | 19 |
1 files changed, 10 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 165708145a..237f940f0b 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 @@ | |||
1 | From c8e9776abc3dfd3f2411797a90a03e7fa16263ef Mon Sep 17 00:00:00 2001 | 1 | From 6d07f6aa7f92f40d78a2db645f16f0f3e7d3c2e8 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 23 Jun 2023 01:20:38 -0700 | 3 | Date: Fri, 23 Jun 2023 01:20:38 -0700 |
4 | Subject: [PATCH] gallium: Fix build with llvm 17 | 4 | Subject: [PATCH] gallium: Fix build with llvm 17 |
@@ -9,16 +9,19 @@ so add conditions to exclude them for llvm >= 17 | |||
9 | 9 | ||
10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827] | 10 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23827] |
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | |||
12 | --- | 13 | --- |
13 | src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 ++++-- | 14 | src/gallium/auxiliary/gallivm/lp_bld_init.c | 6 +++++- |
14 | 1 file changed, 4 insertions(+), 2 deletions(-) | 15 | 1 file changed, 5 insertions(+), 1 deletion(-) |
15 | 16 | ||
17 | diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c | ||
18 | index cd2108f..b1a4d03 100644 | ||
16 | --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c | 19 | --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c |
17 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c | 20 | +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c |
18 | @@ -42,8 +42,10 @@ | 21 | @@ -46,15 +46,19 @@ |
19 | 22 | #if GALLIVM_USE_NEW_PASS == 1 | |
20 | #include <llvm/Config/llvm-config.h> | 23 | #include <llvm-c/Transforms/PassBuilder.h> |
21 | #include <llvm-c/Analysis.h> | 24 | #elif GALLIVM_HAVE_CORO == 1 |
22 | +#if LLVM_VERSION_MAJOR < 17 | 25 | +#if LLVM_VERSION_MAJOR < 17 |
23 | #include <llvm-c/Transforms/Scalar.h> | 26 | #include <llvm-c/Transforms/Scalar.h> |
24 | -#if LLVM_VERSION_MAJOR >= 7 | 27 | -#if LLVM_VERSION_MAJOR >= 7 |
@@ -26,8 +29,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
26 | +#if LLVM_VERSION_MAJOR >= 7 && LLVM_VERSION_MAJOR < 17 | 29 | +#if LLVM_VERSION_MAJOR >= 7 && LLVM_VERSION_MAJOR < 17 |
27 | #include <llvm-c/Transforms/Utils.h> | 30 | #include <llvm-c/Transforms/Utils.h> |
28 | #endif | 31 | #endif |
29 | #include <llvm-c/BitWriter.h> | ||
30 | @@ -53,8 +55,10 @@ | ||
31 | #if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64) | 32 | #if LLVM_VERSION_MAJOR <= 8 && (DETECT_ARCH_AARCH64 || DETECT_ARCH_ARM || DETECT_ARCH_S390 || DETECT_ARCH_MIPS64) |
32 | #include <llvm-c/Transforms/IPO.h> | 33 | #include <llvm-c/Transforms/IPO.h> |
33 | #endif | 34 | #endif |