diff options
author | Markus Volk <f_l_k@t-online.de> | 2023-10-01 19:24:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-04 23:55:12 +0100 |
commit | e86612dc31aaab24da45042d44a7c087a2af6058 (patch) | |
tree | 601f8e630350123e6ece167def16b704204a4c40 /meta/recipes-graphics/mesa | |
parent | 4c0ce132a53ec55075b9df1e9a2d63f350cd8a53 (diff) | |
download | poky-e86612dc31aaab24da45042d44a7c087a2af6058.tar.gz |
mesa: Upgrade 23.1.8 -> 23.2.1
- update 0001-gallium-Fix-build-with-llvm-17.patch
- remove as added upstream:
0001-intel-Allow-using-intel_clc-from-the-system.patch
- intel clc build is currently broken with llvm 17, but that issue is also
present
with mesa 23.1.8
https://gitlab.freedesktop.org/mesa/mesa/-/issues/9701
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24879
https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/2153
(From OE-Core rev: d95beb63b3cb8b8e53109304ab88b3938b137035)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa')
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-gallium-Fix-build-with-llvm-17.patch | 19 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/files/0001-intel-Allow-using-intel_clc-from-the-system.patch | 99 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb (renamed from meta/recipes-graphics/mesa/mesa-gl_23.1.8.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 5 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa_23.2.1.bb (renamed from meta/recipes-graphics/mesa/mesa_23.1.8.bb) | 0 |
5 files changed, 12 insertions, 111 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 |
diff --git a/meta/recipes-graphics/mesa/files/0001-intel-Allow-using-intel_clc-from-the-system.patch b/meta/recipes-graphics/mesa/files/0001-intel-Allow-using-intel_clc-from-the-system.patch deleted file mode 100644 index 5eefd02068..0000000000 --- a/meta/recipes-graphics/mesa/files/0001-intel-Allow-using-intel_clc-from-the-system.patch +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | From ac503f5d7bf36f021c576029a64ac1a3199f6b5a Mon Sep 17 00:00:00 2001 | ||
2 | From: Matt Turner <mattst88@gmail.com> | ||
3 | Date: Thu, 31 Aug 2023 13:16:29 -0400 | ||
4 | Subject: [PATCH] intel: Allow using intel_clc from the system | ||
5 | |||
6 | With -Dintel-clc=system, the build system will search for an `intel_clc` | ||
7 | binary and use it instead of building `intel_clc` itself. | ||
8 | |||
9 | This allows Intel Vulkan ray tracing support to be built when cross | ||
10 | compiling without terrible hacks (that would otherwise be necessary due | ||
11 | to `intel_clc`'s dependence on SPIRV-LLVM-Translator, libclc, clang, and | ||
12 | LLVM). | ||
13 | |||
14 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24983> | ||
15 | |||
16 | Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/28c1053c07c177854520f6283fa665f17618adb5] | ||
17 | |||
18 | --- | ||
19 | meson.build | 6 +++--- | ||
20 | meson_options.txt | 5 ++++- | ||
21 | src/intel/compiler/meson.build | 6 +++++- | ||
22 | src/intel/vulkan/grl/meson.build | 2 +- | ||
23 | 4 files changed, 13 insertions(+), 6 deletions(-) | ||
24 | |||
25 | diff --git a/meson.build b/meson.build | ||
26 | index 16e86ec..00a6953 100644 | ||
27 | --- a/meson.build | ||
28 | +++ b/meson.build | ||
29 | @@ -259,12 +259,12 @@ endif | ||
30 | |||
31 | with_microsoft_clc = get_option('microsoft-clc').enabled() | ||
32 | if ['x86_64'].contains(host_machine.cpu_family()) | ||
33 | - with_intel_clc = get_option('intel-clc').enabled() | ||
34 | - with_intel_vk_rt = with_intel_vk and with_intel_clc | ||
35 | + with_intel_clc = get_option('intel-clc') == 'enabled' | ||
36 | else | ||
37 | with_intel_clc = false | ||
38 | - with_intel_vk_rt = false | ||
39 | endif | ||
40 | +with_intel_vk_rt = with_intel_vk and get_option('intel-clc') != 'disabled' | ||
41 | + | ||
42 | with_clc = with_microsoft_clc or with_intel_clc | ||
43 | with_libclc = with_clc | ||
44 | with_spirv_to_dxil = get_option('spirv-to-dxil') | ||
45 | diff --git a/meson_options.txt b/meson_options.txt | ||
46 | index 379aea3..9800531 100644 | ||
47 | --- a/meson_options.txt | ||
48 | +++ b/meson_options.txt | ||
49 | @@ -607,9 +607,12 @@ option( | ||
50 | |||
51 | option( | ||
52 | 'intel-clc', | ||
53 | - type : 'feature', | ||
54 | + type : 'combo', | ||
55 | deprecated: {'true': 'enabled', 'false': 'disabled'}, | ||
56 | value : 'disabled', | ||
57 | + choices : [ | ||
58 | + 'enabled', 'disabled', 'system', | ||
59 | + ], | ||
60 | description : 'Build the intel-clc compiler (enables Vulkan Intel ' + | ||
61 | 'Ray Tracing on supported hardware).' | ||
62 | ) | ||
63 | diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build | ||
64 | index 9a03d37..774e955 100644 | ||
65 | --- a/src/intel/compiler/meson.build | ||
66 | +++ b/src/intel/compiler/meson.build | ||
67 | @@ -168,7 +168,10 @@ libintel_compiler = static_library( | ||
68 | ) | ||
69 | |||
70 | # For now this tool is only going to be used by Anv | ||
71 | -if with_intel_clc | ||
72 | +if get_option('intel-clc') == 'system' | ||
73 | + prog_intel_clc = find_program('intel_clc', native : true) | ||
74 | + dep_prog_intel_clc = [] | ||
75 | +elif with_intel_clc | ||
76 | prog_intel_clc = executable( | ||
77 | 'intel_clc', | ||
78 | ['intel_clc.c'], | ||
79 | @@ -181,6 +184,7 @@ if with_intel_clc | ||
80 | dependencies : [idep_nir, idep_clc, idep_mesautil, idep_intel_dev], | ||
81 | native : true, | ||
82 | ) | ||
83 | + dep_prog_intel_clc = [prog_intel_clc] | ||
84 | endif | ||
85 | |||
86 | if with_tests | ||
87 | diff --git a/src/intel/vulkan/grl/meson.build b/src/intel/vulkan/grl/meson.build | ||
88 | index c0056b3..02a72f5 100644 | ||
89 | --- a/src/intel/vulkan/grl/meson.build | ||
90 | +++ b/src/intel/vulkan/grl/meson.build | ||
91 | @@ -143,7 +143,7 @@ foreach t : [['125', 'gfx125', 'dg2']] | ||
92 | # if fixed there | ||
93 | ], | ||
94 | env: ['MESA_SHADER_CACHE_DISABLE=true'], | ||
95 | - depends : [prog_intel_clc] | ||
96 | + depends : dep_prog_intel_clc | ||
97 | ) | ||
98 | endforeach | ||
99 | |||
diff --git a/meta/recipes-graphics/mesa/mesa-gl_23.1.8.bb b/meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb index ca160f1bfc..ca160f1bfc 100644 --- a/meta/recipes-graphics/mesa/mesa-gl_23.1.8.bb +++ b/meta/recipes-graphics/mesa/mesa-gl_23.2.1.bb | |||
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 4e824500dd..e5c405a972 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -18,11 +18,10 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \ | |||
18 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ | 18 | file://0001-meson.build-check-for-all-linux-host_os-combinations.patch \ |
19 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ | 19 | file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ |
20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ | 20 | file://0001-gallium-Fix-build-with-llvm-17.patch \ |
21 | file://0001-intel-Allow-using-intel_clc-from-the-system.patch \ | ||
22 | file://0001-meson-Disable-cmake-dependency-detector-for-llvm.patch \ | 21 | file://0001-meson-Disable-cmake-dependency-detector-for-llvm.patch \ |
23 | " | 22 | " |
24 | 23 | ||
25 | SRC_URI[sha256sum] = "45434ff91a709844130a3174d9c0ef39c6b50725b2bb0c13e736f36134db14ad" | 24 | SRC_URI[sha256sum] = "64de0616fc2d801f929ab1ac2a4f16b3e2783c4309a724c8a259b20df8bbc1cc" |
26 | 25 | ||
27 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" | 26 | UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" |
28 | 27 | ||
diff --git a/meta/recipes-graphics/mesa/mesa_23.1.8.bb b/meta/recipes-graphics/mesa/mesa_23.2.1.bb index 96e8aa38d6..96e8aa38d6 100644 --- a/meta/recipes-graphics/mesa/mesa_23.1.8.bb +++ b/meta/recipes-graphics/mesa/mesa_23.2.1.bb | |||