summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-08-09 01:05:17 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-11 18:04:25 +0100
commitb96f7ed4be5d2403ef531727ba41b0b2f5d3ab3f (patch)
tree6f8fe4fdece8f74c2107807da840793d5ce8c6bc
parent23340e61cdb922860747d9a0b779ffd942c94be4 (diff)
downloadpoky-b96f7ed4be5d2403ef531727ba41b0b2f5d3ab3f.tar.gz
mesa: upgrade 25.1.6 -> 25.2.0
Upgrade Mesa to the latest release. Refresh remaining patches and drop ones applied upstream. (From OE-Core rev: 4000f9ec48d87e0ac765205c1b8096c352d2a301) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/files/0001-dont-build-clover-frontend.patch29
-rw-r--r--meta/recipes-graphics/mesa/files/0001-fix-FTBFS-clc-switch-to-new-non-owned-TargetOptions-.patch39
-rw-r--r--meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch12
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc6
4 files changed, 8 insertions, 78 deletions
diff --git a/meta/recipes-graphics/mesa/files/0001-dont-build-clover-frontend.patch b/meta/recipes-graphics/mesa/files/0001-dont-build-clover-frontend.patch
deleted file mode 100644
index 5f45f94fea..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-dont-build-clover-frontend.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From: Markus Volk <f_l_k@t-online.de>
2Date: Sun, 19 Mai 2025 15:34:46 +0100
3Subject: [PATCH] dont build clover frontend
4
5The clover frontend is deprecated and is always built with opencl, even if
6using rusticl. Additionally it adds a reproducibility issue.
7
8Upstream-Status: Inappropriate [oe-specific]
9Signed-off-by: Markus Volk <f_l_k@t-online.de>
10
11--- a/src/gallium/meson.build 2025-05-07 18:35:10.000000000 +0200
12+++ b/src/gallium/meson.build 2025-05-18 17:05:23.677694272 +0200
13@@ -195,15 +195,11 @@
14 else
15 driver_d3d12 = declare_dependency()
16 endif
17-if with_gallium_clover or with_tests
18+if with_tests
19 # At the moment, clover and gallium/tests are the only two consumers
20 # for pipe-loader
21 subdir('targets/pipe-loader')
22 endif
23-if with_gallium_clover
24- subdir('frontends/clover')
25- subdir('targets/opencl')
26-endif
27 if with_gallium_rusticl
28 subdir('frontends/rusticl')
29 subdir('targets/rusticl')
diff --git a/meta/recipes-graphics/mesa/files/0001-fix-FTBFS-clc-switch-to-new-non-owned-TargetOptions-.patch b/meta/recipes-graphics/mesa/files/0001-fix-FTBFS-clc-switch-to-new-non-owned-TargetOptions-.patch
deleted file mode 100644
index 2633869625..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-fix-FTBFS-clc-switch-to-new-non-owned-TargetOptions-.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 531c6696d42953cd642dea7bf70153285c7949ae Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= <kai@dev.carbon-project.org>
3Date: Tue, 6 May 2025 14:36:57 +0200
4Subject: [PATCH] fix(FTBFS): clc: switch to new non-owned `TargetOptions` for
5 LLVM 21
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Upstream hid the `TargetOptions` in commit 985410f87f2d19910a8d327527fd30062b042b63
11
12Use the new `getTargetOpts()` to obtain the `TargetOptions` for
13`setTarget()`.
14
15Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34835]
16
17Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
18Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13079
19Reference: https://github.com/llvm/llvm-project/commit/985410f87f2d19910a8d327527fd30062b042b63
20Reviewed-by: Karol Herbst <kherbst@redhat.com>
21Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34835>
22---
23 src/compiler/clc/clc_helpers.cpp | 4 ++++
24 1 file changed, 4 insertions(+)
25
26--- a/src/compiler/clc/clc_helpers.cpp
27+++ b/src/compiler/clc/clc_helpers.cpp
28@@ -874,7 +874,11 @@ clc_compile_to_llvm_module(LLVMContext &
29 diag_opts));
30
31 c->setTarget(clang::TargetInfo::CreateTargetInfo(
32+#if LLVM_VERSION_MAJOR >= 21
33+ c->getDiagnostics(), c->getInvocation().getTargetOpts()));
34+#else
35 c->getDiagnostics(), c->getInvocation().TargetOpts));
36+#endif
37
38 c->getFrontendOpts().ProgramAction = clang::frontend::EmitLLVMOnly;
39
diff --git a/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch b/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch
index 953a724dc0..136ed8623b 100644
--- a/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch
+++ b/meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch
@@ -25,12 +25,12 @@ index bb7cebf5a748..351cc31ef2de 100644
25@@ -56,10 +56,12 @@ if with_tests 25@@ -56,10 +56,12 @@ if with_tests
26 asm_fw = custom_target('afuc_test.fw', 26 asm_fw = custom_target('afuc_test.fw',
27 output: 'afuc_test.fw', 27 output: 'afuc_test.fw',
28 command: [asm, files('../.gitlab-ci/traces/afuc_test.asm'), '@OUTPUT@'], 28 command: [asm, files('../tests/traces/afuc_test.asm'), '@OUTPUT@'],
29+ env: {'RNN_PATH': rnn_src_path}, 29+ env: {'RNN_PATH': rnn_src_path},
30 ) 30 )
31 asm_fw_a7xx = custom_target('afuc_test_a7xx.fw', 31 asm_fw_a7xx = custom_target('afuc_test_a7xx.fw',
32 output: 'afuc_test_a7xx.fw', 32 output: 'afuc_test_a7xx.fw',
33 command: [asm, files('../.gitlab-ci/traces/afuc_test_a7xx.asm'), '@OUTPUT@'], 33 command: [asm, files('../tests/traces/afuc_test_a7xx.asm'), '@OUTPUT@'],
34+ env: {'RNN_PATH': rnn_src_path}, 34+ env: {'RNN_PATH': rnn_src_path},
35 ) 35 )
36 test('afuc-asm', 36 test('afuc-asm',
@@ -38,13 +38,13 @@ index bb7cebf5a748..351cc31ef2de 100644
38@@ -120,11 +122,13 @@ if cc.sizeof('size_t') > 4 38@@ -120,11 +122,13 @@ if cc.sizeof('size_t') > 4
39 disasm_fw = custom_target('afuc_test.asm', 39 disasm_fw = custom_target('afuc_test.asm',
40 output: 'afuc_test.asm', 40 output: 'afuc_test.asm',
41 command: [disasm, '-u', files('../.gitlab-ci/reference/afuc_test.fw')], 41 command: [disasm, '-u', files('../tests/reference/afuc_test.fw')],
42+ env: {'RNN_PATH': rnn_src_path}, 42+ env: {'RNN_PATH': rnn_src_path},
43 capture: true 43 capture: true
44 ) 44 )
45 disasm_fw_a7xx = custom_target('afuc_test_a7xx.asm', 45 disasm_fw_a7xx = custom_target('afuc_test_a7xx.asm',
46 output: 'afuc_test_a7xx.asm', 46 output: 'afuc_test_a7xx.asm',
47 command: [disasm, '-u', files('../.gitlab-ci/reference/afuc_test_a7xx.fw')], 47 command: [disasm, '-u', files('../tests/reference/afuc_test_a7xx.fw')],
48+ env: {'RNN_PATH': rnn_src_path}, 48+ env: {'RNN_PATH': rnn_src_path},
49 capture: true 49 capture: true
50 ) 50 )
@@ -56,14 +56,14 @@ index 469eeb4eb597..dfa1c12d0d9f 100644
56@@ -194,6 +194,7 @@ if dep_lua.found() and dep_libarchive.found() 56@@ -194,6 +194,7 @@ if dep_lua.found() and dep_libarchive.found()
57 log = custom_target(name + '.log', 57 log = custom_target(name + '.log',
58 output: name + '.log', 58 output: name + '.log',
59 command: [cffdump, '--unit-test', args, files('../.gitlab-ci/traces/' + name + '.rd.gz')], 59 command: [cffdump, '--unit-test', args, files('../tests/traces/' + name + '.rd.gz')],
60+ env: {'RNN_PATH': rnn_src_path}, 60+ env: {'RNN_PATH': rnn_src_path},
61 capture: true, 61 capture: true,
62 ) 62 )
63 test('cffdump-' + name, 63 test('cffdump-' + name,
64@@ -247,7 +248,8 @@ if with_tests 64@@ -247,7 +248,8 @@ if with_tests
65 output: name + '.log', 65 output: name + '.log',
66 command: [crashdec, args, files('../.gitlab-ci/traces/' + name + '.devcore')], 66 command: [crashdec, args, files('../tests/traces/' + name + '.devcore')],
67 capture: true, 67 capture: true,
68- env: {'GALLIUM_DUMP_CPU': 'false'}, 68- env: {'GALLIUM_DUMP_CPU': 'false'},
69+ env: {'GALLIUM_DUMP_CPU': 'false', 69+ env: {'GALLIUM_DUMP_CPU': 'false',
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 0d6f013ae1..a848a2ad8c 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -17,12 +17,10 @@ PE = "2"
17SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \ 17SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \
18 file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \ 18 file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
19 file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \ 19 file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \
20 file://0001-dont-build-clover-frontend.patch \
21 file://0001-fix-FTBFS-clc-switch-to-new-non-owned-TargetOptions-.patch \
22" 20"
23 21
24SRC_URI[sha256sum] = "9f2b69eb39d2d8717d30a9868fdda3e0c0d3708ba32778bbac8ddb044538ce84" 22SRC_URI[sha256sum] = "7c726b21c074d14d31d253d638b741422f3c0a497ce7f1b4aaaa917d10bd8d4f"
25PV = "25.1.6" 23PV = "25.2.0"
26 24
27UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)" 25UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
28 26