* [PATCH v3 1/3] mesa: Upgrade to 26.2.0
@ 2026-08-06 5:14 Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa Zoltán Böszörményi
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Zoltán Böszörményi @ 2026-08-06 5:14 UTC (permalink / raw)
To: openembedded-core
Cc: Mathieu Dubois-Briand, Quentin Schulz,
Zoltán Böszörményi
Release notes:
https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
Removed upstream 0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
Adapted 0001-freedreno-don-t-encode-build-path-into-binaries.patch
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
...on-t-encode-build-path-into-binaries.patch | 17 +++++++-----
...livm-Fix-armhf-build-against-LLVM-22.patch | 27 -------------------
meta/recipes-graphics/mesa/mesa.inc | 5 ++--
3 files changed, 13 insertions(+), 36 deletions(-)
delete mode 100644 meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
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 9aa598b2cf..a5e6570af8 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
@@ -1,4 +1,4 @@
-From 266f7047df67d500223b66f7eb9d8779be4f4ad1 Mon Sep 17 00:00:00 2001
+From 1ae1feb55885c8ec26ed2ef148fa75c6240d9804 Mon Sep 17 00:00:00 2001
From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Date: Wed, 10 Dec 2025 02:27:16 +0200
Subject: [PATCH] freedreno: don't encode build path into binaries
@@ -25,7 +25,7 @@ Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/freedreno/meson.build b/src/freedreno/meson.build
-index e8f01b8..8144a75 100644
+index e8f01b880bc..8144a75bd1c 100644
--- a/src/freedreno/meson.build
+++ b/src/freedreno/meson.build
@@ -4,9 +4,10 @@
@@ -42,13 +42,18 @@ index e8f01b8..8144a75 100644
dep_libarchive = dependency('libarchive', allow_fallback: true, required: false, disabler : true)
dep_libxml2 = dependency('libxml-2.0', allow_fallback: true, required: false)
diff --git a/src/freedreno/registers/meson.build b/src/freedreno/registers/meson.build
-index f4be681..cd0caaf 100644
+index 9318ce48fe5..8d2b305d202 100644
--- a/src/freedreno/registers/meson.build
+++ b/src/freedreno/registers/meson.build
-@@ -43,4 +43,6 @@ if install_fd_decode_tools
- endforeach
- endif
+@@ -16,6 +16,8 @@ freedreno_copyright = files(copyright_file)
+
+ freedreno_xml_header_files = []
+devenv.set('RNN_PATH', meson.current_source_dir())
+
subdir('adreno')
+
+ foreach f : xml_adreno_files
+--
+2.55.0
+
diff --git a/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch b/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
deleted file mode 100644
index 32fac20d94..0000000000
--- a/meta/recipes-graphics/mesa/files/0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 8db6e909c3a540d31a73b79a0792e927cc2c6e83 Mon Sep 17 00:00:00 2001
-From: Alessandro Astone <ales.astone@gmail.com>
-Date: Sun, 1 Mar 2026 18:14:09 +0100
-Subject: [PATCH] gallivm: Fix armhf build against LLVM 22
-
-StringMapIterator<bool> became StringMapIterBase<bool, false /* IsConst */>;
-Use `auto` to handle either case.
-
-Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40161]
-Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
----
- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-index ce8ca02..86779f0 100644
---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-@@ -331,7 +331,7 @@ lp_build_fill_mattrs(std::vector<std::string> &MAttrs)
- llvm::sys::getHostCPUFeatures(features);
- #endif
-
-- for (llvm::StringMapIterator<bool> f = features.begin();
-+ for (auto f = features.begin();
- f != features.end();
- ++f) {
- MAttrs.push_back(((*f).second ? "+" : "-") + (*f).first().str());
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index cbf67e50ce..a50b900cf2 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -17,14 +17,13 @@ PE = "2"
SRC_URI = "https://archive.mesa3d.org/mesa-${PV}.tar.xz \
file://0001-meson-misdetects-64bit-atomics-on-mips-clang.patch \
file://0001-freedreno-don-t-encode-build-path-into-binaries.patch \
- file://0001-gallivm-Fix-armhf-build-against-LLVM-22.patch \
file://0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch \
file://0001-src-intel-compiler-jay-fix-GCC-10-case-label-declara.patch \
file://0001-src-util-u_math.c-do-not-use-arm-fpu-instructions-if.patch \
"
-SRC_URI[sha256sum] = "5296b88a0f1e012e2cb9ada150a2bbadf728ca81e5a4fb2ab43c83a4d2158606"
-PV = "26.1.6"
+SRC_URI[sha256sum] = "efd4bb08cdb7c365a812cd4e6c9202ab55b2f22cdcd13c7d6c4f9647b799a4ef"
+PV = "26.2.0"
UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH v3 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa
2026-08-06 5:14 [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Zoltán Böszörményi
@ 2026-08-06 5:14 ` Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc Zoltán Böszörményi
2026-08-07 5:02 ` [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Mathieu Dubois-Briand
2 siblings, 0 replies; 8+ messages in thread
From: Zoltán Böszörményi @ 2026-08-06 5:14 UTC (permalink / raw)
To: openembedded-core
Cc: Mathieu Dubois-Briand, Quentin Schulz,
Zoltán Böszörményi
See the reasoning and discussion at
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/43020
which was merged and backported to 26.2.0.
TL;DR: LLVM constantly introduces breaking changes that cause
regressions for running OpenCL CTS with Rusticl and finally
Karol Herbst had enough.
This fork is from the LLVM 22 version of libclc and contains the
necessary fixes to make Rusticl pass OpenCL CTS.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/conf/distro/include/maintainers.inc | 1 +
.../mesa/mesa-libclc_22.1.8.3.bb | 26 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb
diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index c5b701c244..feccf29ce4 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -524,6 +524,7 @@ RECIPE_MAINTAINER:pn-menu-cache = "Ross Burton <ross.burton@arm.com>"
RECIPE_MAINTAINER:pn-mesa = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-mesa-demos = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-mesa-gl = "Unassigned <unassigned@yoctoproject.org>"
+RECIPE_MAINTAINER:pn-mesa-libclc = "Zoltán Böszörményi <zboszor@gmail.com>"
RECIPE_MAINTAINER:pn-mesa-tools-native = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-meson = "Trevor Gamblin <tgamblin@baylibre.com>"
RECIPE_MAINTAINER:pn-meta-environment-${MACHINE} = "Richard Purdie <richard.purdie@linuxfoundation.org>"
diff --git a/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb b/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb
new file mode 100644
index 0000000000..c93b5b9d9d
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa-libclc_22.1.8.3.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Mesa fork of libclc: Implementation of the library requirements of the OpenCL C programming language."
+HOMEPAGE = "https://gitlab.freedesktop.org/karolherbst/mesa-libclc/"
+SECTION = "devel"
+LICENSE = "Apache-2.0-with-LLVM-exception"
+LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=7cc795f6cbb2d801d84336b83c8017db"
+
+SRC_URI = "git://gitlab.freedesktop.org/karolherbst/mesa-libclc.git;protocol=https;branch=llvm_22"
+
+SRCREV = "87f66007242ff10e9e84bf32be84f9057f6abc75"
+
+inherit cmake pkgconfig
+
+# Depend explicitly on clang-native instead of using TOOLCHAIN as the build
+# objects from this recipe are build explicitly using clang for GPU targets.
+# We could INHIBIT_DEFAULT_DEPS to avoid any other toolchain but then we need
+# to wrestle CMake to configure without a toolchain.
+DEPENDS += "clang-native spirv-llvm-translator-native"
+
+# Semicolon-separated list of targets to build
+LIBCLC_TARGETS ?= "all"
+
+EXTRA_OECMAKE += "-DLIBCLC_TARGETS_TO_BUILD='${LIBCLC_TARGETS}'"
+
+FILES:${PN} += "${datadir}/mesa-clc"
+
+BBCLASSEXTEND = "native nativesdk"
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc
2026-08-06 5:14 [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa Zoltán Böszörményi
@ 2026-08-06 5:14 ` Zoltán Böszörményi
2026-08-06 9:10 ` [OE-core] " Jose Quaresma
2026-08-07 5:02 ` [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Mathieu Dubois-Briand
2 siblings, 1 reply; 8+ messages in thread
From: Zoltán Böszörményi @ 2026-08-06 5:14 UTC (permalink / raw)
To: openembedded-core
Cc: Mathieu Dubois-Briand, Quentin Schulz,
Zoltán Böszörményi
According to the release notes at
https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
| One important note for packagers is that there is now a Mesa community
| maintained libclc fork that is verified to pass the OpenCL CTS with
| Mesa/Rusticl, and will fix bugs after an upstream libclc major release
| branch goes EoL. The Mesa build system will pick it up when available,
| and fall back to upstream libclc if not. This libclc fork is not
| verified for any other usages or users of libclc outside of Mesa.
Rusticl would complain if about not this libclc fork is used due to
OpenCL CTS compliance.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +-
meta/recipes-graphics/mesa/mesa.inc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/recipes-graphics/mesa/mesa-tools-native.bb
index 20207450bf..c495d2e8a8 100644
--- a/meta/recipes-graphics/mesa/mesa-tools-native.bb
+++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb
@@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm"
# to PACKAGECONFIG like in mesa.inc
PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}"
-DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
+DEPENDS += "mesa-libclc-native spirv-tools-native spirv-llvm-translator-native"
EXTRA_OEMESON += " \
-Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dmesa-clc-bundle-headers=enabled \
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index a50b900cf2..fa51d62bfc 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -109,7 +109,7 @@ PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false"
# "opencl" also requires libclc and gallium-llvm to be present in PACKAGECONFIG!
# Be sure to enable them both for the target and for the native build.
-PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang libclc spirv-tools spirv-llvm-translator"
+PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang mesa-libclc spirv-tools spirv-llvm-translator"
X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr xorgproto libxshmfence"
# "x11" requires "opengl"
@@ -253,7 +253,7 @@ RPROVIDES:libopencl-mesa += "virtual-opencl-icd"
RPROVIDES:libgles2-mesa += "libgles3-mesa"
RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev"
-RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc', '', d)}"
+RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'mesa-libclc', '', d)}"
PACKAGES =+ "libegl-mesa libegl-mesa-dev \
libgallium \
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [OE-core] [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc
2026-08-06 5:14 ` [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc Zoltán Böszörményi
@ 2026-08-06 9:10 ` Jose Quaresma
2026-08-07 4:24 ` Zoltan Boszormenyi
0 siblings, 1 reply; 8+ messages in thread
From: Jose Quaresma @ 2026-08-06 9:10 UTC (permalink / raw)
To: zboszor; +Cc: openembedded-core, Mathieu Dubois-Briand, Quentin Schulz
[-- Attachment #1: Type: text/plain, Size: 3891 bytes --]
On Thu, Aug 6, 2026 at 6:15 AM Zoltan Boszormenyi via lists.openembedded.org
<zboszor=gmail.com@lists.openembedded.org> wrote:
> According to the release notes at
> https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
>
> | One important note for packagers is that there is now a Mesa community
> | maintained libclc fork that is verified to pass the OpenCL CTS with
> | Mesa/Rusticl, and will fix bugs after an upstream libclc major release
> | branch goes EoL. The Mesa build system will pick it up when available,
> | and fall back to upstream libclc if not. This libclc fork is not
> | verified for any other usages or users of libclc outside of Mesa.
>
> Rusticl would complain if about not this libclc fork is used due to
> OpenCL CTS compliance.
>
> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
> ---
> meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +-
> meta/recipes-graphics/mesa/mesa.inc | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb
> b/meta/recipes-graphics/mesa/mesa-tools-native.bb
> index 20207450bf..c495d2e8a8 100644
> --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb
> +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb
> @@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm"
> # to PACKAGECONFIG like in mesa.inc
> PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland',
> d)}"
>
> -DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
> +DEPENDS += "mesa-libclc-native spirv-tools-native
> spirv-llvm-translator-native"
>
> EXTRA_OEMESON += " \
> -Dmesa-clc=enabled -Dinstall-mesa-clc=true
> -Dmesa-clc-bundle-headers=enabled \
> diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> index a50b900cf2..fa51d62bfc 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -109,7 +109,7 @@ PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false"
>
> # "opencl" also requires libclc and gallium-llvm to be present in
> PACKAGECONFIG!
> # Be sure to enable them both for the target and for the native build.
> -PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true
> -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false,
> bindgen-cli-native clang libclc spirv-tools spirv-llvm-translator"
> +PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true
> -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false,
> bindgen-cli-native clang mesa-libclc spirv-tools spirv-llvm-translator"
>
> X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage
> libxfixes xrandr xorgproto libxshmfence"
> # "x11" requires "opengl"
> @@ -253,7 +253,7 @@ RPROVIDES:libopencl-mesa += "virtual-opencl-icd"
> RPROVIDES:libgles2-mesa += "libgles3-mesa"
> RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev"
>
> -RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG',
> 'opencl', 'libclc', '', d)}"
> +RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG',
> 'opencl', 'mesa-libclc', '', d)}"
>
Is it possible to have both versions installed side-by-side on the target?
I'm asking this because there might be a collision between the fork and the
original.
Jose
>
> PACKAGES =+ "libegl-mesa libegl-mesa-dev \
> libgallium \
> --
> 2.55.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#242898):
> https://lists.openembedded.org/g/openembedded-core/message/242898
> Mute This Topic: https://lists.openembedded.org/mt/120622539/10043485
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> jose.quaresma@oss.qualcomm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 5865 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [OE-core] [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc
2026-08-06 9:10 ` [OE-core] " Jose Quaresma
@ 2026-08-07 4:24 ` Zoltan Boszormenyi
2026-08-07 10:09 ` Jose Quaresma
0 siblings, 1 reply; 8+ messages in thread
From: Zoltan Boszormenyi @ 2026-08-07 4:24 UTC (permalink / raw)
To: Jose Quaresma; +Cc: openembedded-core, Mathieu Dubois-Briand, Quentin Schulz
On Thu, Aug 6, 2026 at 11:16 AM Jose Quaresma
<jose.quaresma@oss.qualcomm.com> wrote:
>
>
>
> On Thu, Aug 6, 2026 at 6:15 AM Zoltan Boszormenyi via lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org> wrote:
>>
>> According to the release notes at
>> https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
>>
>> | One important note for packagers is that there is now a Mesa community
>> | maintained libclc fork that is verified to pass the OpenCL CTS with
>> | Mesa/Rusticl, and will fix bugs after an upstream libclc major release
>> | branch goes EoL. The Mesa build system will pick it up when available,
>> | and fall back to upstream libclc if not. This libclc fork is not
>> | verified for any other usages or users of libclc outside of Mesa.
>>
>> Rusticl would complain if about not this libclc fork is used due to
>> OpenCL CTS compliance.
>>
>> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
>> ---
>> meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +-
>> meta/recipes-graphics/mesa/mesa.inc | 4 ++--
>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb b/meta/recipes-graphics/mesa/mesa-tools-native.bb
>> index 20207450bf..c495d2e8a8 100644
>> --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb
>> +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb
>> @@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm"
>> # to PACKAGECONFIG like in mesa.inc
>> PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d)}"
>>
>> -DEPENDS += "libclc-native spirv-tools-native spirv-llvm-translator-native"
>> +DEPENDS += "mesa-libclc-native spirv-tools-native spirv-llvm-translator-native"
>>
>> EXTRA_OEMESON += " \
>> -Dmesa-clc=enabled -Dinstall-mesa-clc=true -Dmesa-clc-bundle-headers=enabled \
>> diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
>> index a50b900cf2..fa51d62bfc 100644
>> --- a/meta/recipes-graphics/mesa/mesa.inc
>> +++ b/meta/recipes-graphics/mesa/mesa.inc
>> @@ -109,7 +109,7 @@ PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false"
>>
>> # "opencl" also requires libclc and gallium-llvm to be present in PACKAGECONFIG!
>> # Be sure to enable them both for the target and for the native build.
>> -PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang libclc spirv-tools spirv-llvm-translator"
>> +PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false, bindgen-cli-native clang mesa-libclc spirv-tools spirv-llvm-translator"
>>
>> X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage libxfixes xrandr xorgproto libxshmfence"
>> # "x11" requires "opengl"
>> @@ -253,7 +253,7 @@ RPROVIDES:libopencl-mesa += "virtual-opencl-icd"
>> RPROVIDES:libgles2-mesa += "libgles3-mesa"
>> RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev"
>>
>> -RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc', '', d)}"
>> +RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'mesa-libclc', '', d)}"
>
>
> Is it possible to have both versions installed side-by-side on the target?
Yes. libclc and mesa-libclc can be installed side-by-side.
Only meta-libclc will be used by mesa, if built with that, though.
> I'm asking this because there might be a collision between the fork and the original.
There is none.
The installation directory and the pkg-config file are renamed in the fork.
>
> Jose
>
>>
>>
>> PACKAGES =+ "libegl-mesa libegl-mesa-dev \
>> libgallium \
>> --
>> 2.55.0
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#242898): https://lists.openembedded.org/g/openembedded-core/message/242898
>> Mute This Topic: https://lists.openembedded.org/mt/120622539/10043485
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [jose.quaresma@oss.qualcomm.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [OE-core] [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc
2026-08-07 4:24 ` Zoltan Boszormenyi
@ 2026-08-07 10:09 ` Jose Quaresma
0 siblings, 0 replies; 8+ messages in thread
From: Jose Quaresma @ 2026-08-07 10:09 UTC (permalink / raw)
To: Zoltan Boszormenyi
Cc: openembedded-core, Mathieu Dubois-Briand, Quentin Schulz
[-- Attachment #1: Type: text/plain, Size: 4592 bytes --]
On Fri, Aug 7, 2026 at 5:24 AM Zoltan Boszormenyi <zboszor@gmail.com> wrote:
> On Thu, Aug 6, 2026 at 11:16 AM Jose Quaresma
> <jose.quaresma@oss.qualcomm.com> wrote:
> >
> >
> >
> > On Thu, Aug 6, 2026 at 6:15 AM Zoltan Boszormenyi via
> lists.openembedded.org <zboszor=gmail.com@lists.openembedded.org> wrote:
> >>
> >> According to the release notes at
> >> https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
> >>
> >> | One important note for packagers is that there is now a Mesa community
> >> | maintained libclc fork that is verified to pass the OpenCL CTS with
> >> | Mesa/Rusticl, and will fix bugs after an upstream libclc major release
> >> | branch goes EoL. The Mesa build system will pick it up when available,
> >> | and fall back to upstream libclc if not. This libclc fork is not
> >> | verified for any other usages or users of libclc outside of Mesa.
> >>
> >> Rusticl would complain if about not this libclc fork is used due to
> >> OpenCL CTS compliance.
> >>
> >> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
> >> ---
> >> meta/recipes-graphics/mesa/mesa-tools-native.bb | 2 +-
> >> meta/recipes-graphics/mesa/mesa.inc | 4 ++--
> >> 2 files changed, 3 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/meta/recipes-graphics/mesa/mesa-tools-native.bb
> b/meta/recipes-graphics/mesa/mesa-tools-native.bb
> >> index 20207450bf..c495d2e8a8 100644
> >> --- a/meta/recipes-graphics/mesa/mesa-tools-native.bb
> >> +++ b/meta/recipes-graphics/mesa/mesa-tools-native.bb
> >> @@ -11,7 +11,7 @@ PACKAGECONFIG += "gallium-llvm"
> >> # to PACKAGECONFIG like in mesa.inc
> >> PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland',
> d)}"
> >>
> >> -DEPENDS += "libclc-native spirv-tools-native
> spirv-llvm-translator-native"
> >> +DEPENDS += "mesa-libclc-native spirv-tools-native
> spirv-llvm-translator-native"
> >>
> >> EXTRA_OEMESON += " \
> >> -Dmesa-clc=enabled -Dinstall-mesa-clc=true
> -Dmesa-clc-bundle-headers=enabled \
> >> diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> >> index a50b900cf2..fa51d62bfc 100644
> >> --- a/meta/recipes-graphics/mesa/mesa.inc
> >> +++ b/meta/recipes-graphics/mesa/mesa.inc
> >> @@ -109,7 +109,7 @@ PACKAGECONFIG[opengl] = "-Dopengl=true,
> -Dopengl=false"
> >>
> >> # "opencl" also requires libclc and gallium-llvm to be present in
> PACKAGECONFIG!
> >> # Be sure to enable them both for the target and for the native build.
> >> -PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true
> -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false,
> bindgen-cli-native clang libclc spirv-tools spirv-llvm-translator"
> >> +PACKAGECONFIG[opencl] = "-Dgallium-rusticl=true
> -Dmesa-clc-bundle-headers=enabled, -Dgallium-rusticl=false,
> bindgen-cli-native clang mesa-libclc spirv-tools spirv-llvm-translator"
> >>
> >> X11_DEPS = "xorgproto virtual/libx11 libxext libxxf86vm libxdamage
> libxfixes xrandr xorgproto libxshmfence"
> >> # "x11" requires "opengl"
> >> @@ -253,7 +253,7 @@ RPROVIDES:libopencl-mesa += "virtual-opencl-icd"
> >> RPROVIDES:libgles2-mesa += "libgles3-mesa"
> >> RPROVIDES:libgles2-mesa-dev += "libgles3-mesa-dev"
> >>
> >> -RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG',
> 'opencl', 'libclc', '', d)}"
> >> +RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG',
> 'opencl', 'mesa-libclc', '', d)}"
> >
> >
> > Is it possible to have both versions installed side-by-side on the
> target?
>
> Yes. libclc and mesa-libclc can be installed side-by-side.
> Only meta-libclc will be used by mesa, if built with that, though.
>
> > I'm asking this because there might be a collision between the fork and
> the original.
>
> There is none.
> The installation directory and the pkg-config file are renamed in the fork.
>
Nice! Thanks
>
> >
> > Jose
> >
> >>
> >>
> >> PACKAGES =+ "libegl-mesa libegl-mesa-dev \
> >> libgallium \
> >> --
> >> 2.55.0
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >> View/Reply Online (#242898):
> https://lists.openembedded.org/g/openembedded-core/message/242898
> >> Mute This Topic: https://lists.openembedded.org/mt/120622539/10043485
> >> Group Owner: openembedded-core+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> jose.quaresma@oss.qualcomm.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
>
[-- Attachment #2: Type: text/html, Size: 7175 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0
2026-08-06 5:14 [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc Zoltán Böszörményi
@ 2026-08-07 5:02 ` Mathieu Dubois-Briand
2026-08-07 9:37 ` Böszörményi Zoltán
2 siblings, 1 reply; 8+ messages in thread
From: Mathieu Dubois-Briand @ 2026-08-07 5:02 UTC (permalink / raw)
To: zboszor, openembedded-core; +Cc: Quentin Schulz
On Thu Aug 6, 2026 at 7:14 AM CEST, Zoltan Boszormenyi via lists.openembedded.org wrote:
> Release notes:
> https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
>
> Removed upstream 0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
> Adapted 0001-freedreno-don-t-encode-build-path-into-binaries.patch
>
> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
> ---
Hi Zoltán,
I believe you need to remove or refresh another patch:
ERROR: mesa-2_26.2.0-r0 do_patch: Applying patch '/srv/pokybuild/yocto-worker/genericx86-64/build/layers/openembedded-core/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch' on target directory '/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/core2-64-poky-linux/mesa/26.2.0/sources/mesa-26.2.0'
CmdError('quilt --quiltrc /srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/core2-64-poky-linux/mesa/26.2.0/recipe-sysroot-native/etc/quiltrc push', 1, 'stdout: Applying patch 0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch
patching file src/intel/compiler/jay/jay_ir.h
https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/4342
This happens in virtually all configurations. Can you have a look at the
issue?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0
2026-08-07 5:02 ` [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Mathieu Dubois-Briand
@ 2026-08-07 9:37 ` Böszörményi Zoltán
0 siblings, 0 replies; 8+ messages in thread
From: Böszörményi Zoltán @ 2026-08-07 9:37 UTC (permalink / raw)
To: Mathieu Dubois-Briand, openembedded-core; +Cc: Quentin Schulz
2026. 08. 07. 7:02 keltezéssel, Mathieu Dubois-Briand írta:
> On Thu Aug 6, 2026 at 7:14 AM CEST, Zoltan Boszormenyi via lists.openembedded.org wrote:
>> Release notes:
>> https://lists.freedesktop.org/archives/mesa-dev/2026-August/226690.html
>>
>> Removed upstream 0001-gallivm-Fix-armhf-build-against-LLVM-22.patch
>> Adapted 0001-freedreno-don-t-encode-build-path-into-binaries.patch
>>
>> Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
>> ---
> Hi Zoltán,
>
> I believe you need to remove or refresh another patch:
>
> ERROR: mesa-2_26.2.0-r0 do_patch: Applying patch '/srv/pokybuild/yocto-worker/genericx86-64/build/layers/openembedded-core/meta/recipes-graphics/mesa/files/0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch' on target directory '/srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/core2-64-poky-linux/mesa/26.2.0/sources/mesa-26.2.0'
> CmdError('quilt --quiltrc /srv/pokybuild/yocto-worker/genericx86-64/build/build/tmp/work/core2-64-poky-linux/mesa/26.2.0/recipe-sysroot-native/etc/quiltrc push', 1, 'stdout: Applying patch 0001-src-intel-compiler-jay-jay_ir.h-do-not-used-typed-en.patch
> patching file src/intel/compiler/jay/jay_ir.h
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/4/builds/4342
>
> This happens in virtually all configurations. Can you have a look at the
> issue?
Sorry about that.
I only tested the change with wrynose before sending it.
The v4 series fixes this problem.
FWIW, there was another patch that was removed due to
its contents being already upstream. The commit message
in v4 reflects that.
>
> Thanks,
> Mathieu
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-08-07 10:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 5:14 [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 2/3] mesa-libclc: New recipe for forking libclc for Rusticl purposes in Mesa Zoltán Böszörményi
2026-08-06 5:14 ` [PATCH v3 3/3] mesa, mesa-tools-native: Use mesa-libclc Zoltán Böszörményi
2026-08-06 9:10 ` [OE-core] " Jose Quaresma
2026-08-07 4:24 ` Zoltan Boszormenyi
2026-08-07 10:09 ` Jose Quaresma
2026-08-07 5:02 ` [OE-core] [PATCH v3 1/3] mesa: Upgrade to 26.2.0 Mathieu Dubois-Briand
2026-08-07 9:37 ` Böszörményi Zoltán
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox