mesa: bump to 26.0.0
cover mesa: bump to 26.0.0
This fixes a small oversight of llvm missing for compiling i915 gallium driver.
This bumps mesa to 26.0.0, the latest stable release.
This is based on top of
https://lore.kernel.org/openembedded-core/[email protected]/
Tested on Rockchip RK3588, RK3399 and PX30 (panfrost/panthor) with kmscube and clpeak.
---
Quentin Schulz (2):
mesa: fix missing llvm dependency for i915
mesa: upgrade 25.3.5 -> 26.0.0
...u-drop-file-names-from-the-generated-file.patch | 45 --------- ...eno-don-t-encode-build-path-into-binaries.patch | 107 +++++++-------------- ...on-t-dump-genvk.py-args-to-generated-file.patch | 36 ------- ...t-drop-file-names-from-the-generated-file.patch | 45 --------- meta/recipes-graphics/mesa/mesa.inc | 14 ++- 5 files changed, 42 insertions(+), 205 deletions(-)
---
base-commit: 84e278c4cd440fef82408bb23d7e503ab33ac5a7
change-id: 20260212-mesa-26-2fd6ba74d0c7
Best regards,
Signature · 1 line
Quentin Schulz <[email protected]>
PATCH 1/2 mesa: fix missing llvm dependency for i915
From: Quentin Schulz <[email protected]>
i915 requires llvm at least explicitly since commit b8b38d38b1c1 ("meson: reinstate LLVM requirement for r300 and enforce it for i915 too") in mesa (available since 25.3.0).
By default, Intel machines are built with gallium-llvm (see the various PACKAGECONFIG:append: in mesa.bb), so the dependencies would be met.
It seems like Intel Arc discrete GPU may be supported by i915, so I'm assuming it could be possible to have a non-Intel machine have the need for the i915 driver.
In any case, this is highlighting the actual dependencies so let's add gallium-llvm as a dependency for i915, as it should.
--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/mesa/mesa.inc +1 -1
@@ -182,7 +182,7 @@ GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel', ',crocus', '', GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'ethosu', ',ethosu', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}" -GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel', ',i915', '', d)}" +GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel gallium-llvm', ',i915', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc gallium-llvm', ',iris', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'lima', ',lima', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVMPIPE}', '', d)}"
Signature · 1 line
2.53.0
PATCH 2/2 mesa: upgrade 25.3.5 -> 26.0.0
In reply to Quentin SchulzFrom: Quentin Schulz <[email protected]>
See https://docs.mesa3d.org/relnotes/26.0.0.html for the changelog and sha256sum.
This removes:
- 0001-ethosu-drop-file-names-from-the-generated-file.patch, as it is merged in commit cdb6468c53ef ("ethosu: drop file names from the generated file"),
- 0001-gfxstream-don-t-dump-genvk.py-args-to-generated-file.patch, as it is merged in commit 4315c28739dc ("gfxstream: don't dump genvk.py args to generated files"),
- 0002-rocket-drop-file-names-from-the-generated-file.patch, as it is merged in commit 7a3bfd1f7913 ("rocket: drop file names from the generated file"),
0001-freedreno-don-t-encode-build-path-into-binaries.patch is updated to latest version in the merge request. Unfortunately, the do_patch task with the patch file directly downloaded from the merge request fails to apply it due to patch-fuzz. Instead, I downloaded the file locally and applied it with git-am and use git-format-patch to generate one that do_patch doesn't complain about.
Since commit b72d347d1c3b ("meson: crocus and intel_hasvk now require clc"), both crocus and intel_hasvk require clc, so let's make this dependency explicit by requiring libclc PACKAGECONFIG to enable those drivers.
KosmicKrisp is a new driver but my understanding is it's for MacOS only and we're not generated that OS, so skip adding a PACKAGECONFIG for it.
r600 now doesn't require LLVM anymore since commit ebf14544102e ("r600:
remove LLVM dependency") but for some reason we never added the dependency so no need to remove something that isn't there.
There's a new option vulkan-manifest-per-architecture (default true) which controls whether the target machine architecture must be part of the Vulkan ICD filenames. The meson feature description states:
If false, all architectures share a single JSON manifest for example lvp_icd.json, referencing the library by its basename. (Recommended for Unix OS distros installing into /usr.)
Considering we install the Vulkan ICDs into /usr/share, let's make this false by default. Also, we're only building for one architecture so this probably doesn't change much except renaming.
--- ...u-drop-file-names-from-the-generated-file.patch | 45 --------- ...eno-don-t-encode-build-path-into-binaries.patch | 107 +++++++-------------- ...on-t-dump-genvk.py-args-to-generated-file.patch | 36 ------- ...t-drop-file-names-from-the-generated-file.patch | 45 --------- meta/recipes-graphics/mesa/mesa.inc | 12 +-- 5 files changed, 41 insertions(+), 204 deletions(-)
meta/recipes-graphics/mesa/files/0001-ethosu-drop-file-names-from-the-generated-file.patch deleted +0 -45
@@ -1,45 +0,0 @@ -From 4c3fad710c5bc702e28ae2bcc3c73b0547c4954d Mon Sep 17 00:00:00 2001 -From: Dmitry Baryshkov <[email protected]> -Date: Wed, 19 Nov 2025 14:19:36 +0200 -Subject: [PATCH 1/2] ethosu: drop file names from the generated file - -Having file names and dates in the generated file affects -reproducibility. Build systems (like OE) error out on the gen_header.py -output, because it can contain full paths. Drop file list from the -generated file. - -Signed-off-by: Dmitry Baryshkov <[email protected]> -Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/cdb6468c53ef486f237f3d3276013febbbabba14] ---- - src/gallium/drivers/ethosu/gen_header.py | 12 ------------ - 1 file changed, 12 deletions(-) - -diff --git a/src/gallium/drivers/ethosu/gen_header.py b/src/gallium/drivers/ethosu/gen_header.py -index b54516a812c7..44471893594b 100644 ---- a/src/gallium/drivers/ethosu/gen_header.py -+++ b/src/gallium/drivers/ethosu/gen_header.py -@@ -29,21 +29,9 @@ def dump_c(args, guard, func): - This file was generated by the rules-ng-ng gen_header.py tool in this git repository: - http://gitlab.freedesktop.org/mesa/mesa/ - git clone https://gitlab.freedesktop.org/mesa/mesa.git -- --The rules-ng-ng source files this header was generated from are: - """) -- maxlen = 0 -- for filepath in p.xml_files: -- maxlen = max(maxlen, len(filepath)) -- for filepath in p.xml_files: -- pad = " " * (maxlen - len(filepath)) -- filesize = str(os.path.getsize(filepath)) -- filesize = " " * (7 - len(filesize)) + filesize -- filetime = time.ctime(os.path.getmtime(filepath)) -- print("- " + filepath + pad + " (" + filesize + " bytes, from " + filetime + ")") - if p.copyright_year: - current_year = str(datetime.date.today().year) -- print() - print("Copyright (C) %s-%s by the following authors:" % (p.copyright_year, current_year)) - for author in p.authors: - print("- " + author) --- -2.51.0 -
meta/recipes-graphics/mesa/files/0001-freedreno-don-t-encode-build-path-into-binaries.patch +36 -71
125 lines not on this page · raw message
meta/recipes-graphics/mesa/files/0001-gfxstream-don-t-dump-genvk.py-args-to-generated-file.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 4315c28739dcade156ac9384c99ba552b6d85b40 Mon Sep 17 00:00:00 2001 -From: Dmitry Baryshkov <[email protected]> -Date: Wed, 19 Nov 2025 11:36:42 +0200 -Subject: [PATCH] gfxstream: don't dump genvk.py args to generated files - -Full command lines include full path to the output file, which triggers -reproducibility warnings (e.g. in Yocto builds). Drop the args and print -only a basename of the script used to generate the file. - -Signed-off-by: Dmitry Baryshkov <[email protected]> -Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38875> -Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/4315c28739dcade156ac9384c99ba552b6d85b40] -Signed-off-by: Quentin Schulz <[email protected]> ---- - src/gfxstream/codegen/scripts/cerealgenerator.py | 8 +------- - 1 file changed, 1 insertion(+), 7 deletions(-) - -diff --git a/src/gfxstream/codegen/scripts/cerealgenerator.py b/src/gfxstream/codegen/scripts/cerealgenerator.py -index a171af83641..5e34ea64bd1 100644 ---- a/src/gfxstream/codegen/scripts/cerealgenerator.py -+++ b/src/gfxstream/codegen/scripts/cerealgenerator.py -@@ -285,13 +285,7 @@ def banner_command(argv): - Return a string corresponding to the command, with platform-specific - paths removed.""" - -- def makePosixRelative(someArg): -- # Do not use relative for /tmp/ to avoid effects of checkout location -- if os.path.exists(someArg) and someArg != "/tmp/": -- return str(PurePosixPath(Path(os.path.relpath(someArg)))) -- return someArg -- -- return ' '.join(map(makePosixRelative, argv)) -+ return os.path.basename(argv[0]) - - def envGetOrDefault(key, default=None): - if key in os.environ:
meta/recipes-graphics/mesa/files/0002-rocket-drop-file-names-from-the-generated-file.patch deleted +0 -45
45 lines not on this page · raw message
meta/recipes-graphics/mesa/mesa.inc +5 -7
@@ -17,13 +17,10 @@ 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-gfxstream-don-t-dump-genvk.py-args-to-generated-file.patch \ - file://0001-ethosu-drop-file-names-from-the-generated-file.patch \ - file://0002-rocket-drop-file-names-from-the-generated-file.patch \ " -SRC_URI[sha256sum] = "be472413475082df945e0f9be34f5af008baa03eb357e067ce5a611a2d44c44b" -PV = "25.3.5" +SRC_URI[sha256sum] = "2a44e98e64d5c36cec64633de2d0ec7eff64703ee25b35364ba8fcaa84f33f72" +PV = "26.0.0" UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P<pver>\d+(\.\d+)+)"
@@ -69,6 +66,7 @@ MESON_BUILDTYPE = "${@check_buildtype(d)}" EXTRA_OEMESON = " \ -Dglx-read-only-text=true \ -Dplatforms='${@",".join("${PLATFORMS}".split())}' \ + -Dvulkan-manifest-per-architecture=false \ " def strip_comma(s):
@@ -141,7 +139,7 @@ VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedren VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', ',gfxstream', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'imagination', ',imagination', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc gallium-llvm', ',intel', '', d)}" -VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel', ',intel_hasvk', '', d)}" +VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',intel_hasvk', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'panfrost libclc', ',panfrost', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${VULKAN_DRIVERS_SWRAST}', '', d)}" VULKAN_DRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'virtio', '${VULKAN_DRIVERS_VIRTIO}', '', d)}"
@@ -178,7 +176,7 @@ GALLIUMDRIVERS_SOFTPIPE:x86-x32 = "" # keep sorted by the driver name (rather than PKGCONFIG) GALLIUMDRIVERS = "" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'asahi libclc gallium-llvm', ',asahi', '', d)}" -GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel', ',crocus', '', d)}" +GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'intel libclc', ',crocus', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'etnaviv', ',etnaviv', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'ethosu', ',ethosu', '', d)}" GALLIUMDRIVERS .= "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', ',freedreno', '', d)}"
Signature · 1 line
2.53.0
Quoted 5 lines · Quentin Schulz via lists.openembedded.org
This fixes a small oversight of llvm missing for compiling i915 gallium driver.
This bumps mesa to 26.0.0, the latest stable release.
I am not against this upgrade, but mesa has this strange versioning that 26.0.0 is considered new development release not stable release.
As in:
https://docs.mesa3d.org/relnotes/26.0.0.html
Mesa 26.0.0 is a new development release. People who are concerned with stability and reliability should stick with a previous release or wait for Mesa 26.0.1.
Hi Martin,
Quoted 8 lines · Martin Jansa
Quoted 5 lines · Quentin Schulz via lists.openembedded.org
This fixes a small oversight of llvm missing for compiling i915 gallium driver.
This bumps mesa to 26.0.0, the latest stable release.
Quoted 8 lines
I am not against this upgrade, but mesa has this strange versioning that 26.0.0 is considered new development release not stable release.
As in:
https://docs.mesa3d.org/relnotes/26.0.0.html
Mesa 26.0.0 is a new development release. People who are concerned with stability and reliability should stick with a previous release or wait for Mesa 26.0.1.
Yes. Ross said[1] to send this as RFC so (I assume) we can review and/or make it do rounds on the autobuilder before 26.0.1. Then Alex said[2] he doesn't think it carries any meaning anymore considering they now have multiple rounds of release candidates. So... /me shrugs
[1] https://libera.catirclogs.org/yocto/2026-02-12#39496615; https://libera.catirclogs.org/yocto/2026-02-12#39496624;
[2] https://libera.catirclogs.org/yocto/2026-02-12#39498266;
So I followed whatever Alex said, but we can also have this as an RFC as preparation for 26.0.1 which would come in a few weeks.
I think my interest is to make 6.0 use 26.0.x such that we don't have to go through TSC to bump the mesa version in the next LTS.
I don't care much either way, at least there's something we can review and comment on and people don't do the work twice (or more) :)
Cheers,
Quentin
Quoted 30 lines · Quentin Schulz
Hi Martin,
Quoted 8 lines · Martin Jansa
Quoted 5 lines · Quentin Schulz via lists.openembedded.org
This fixes a small oversight of llvm missing for compiling i915 gallium driver.
This bumps mesa to 26.0.0, the latest stable release.
Quoted 8 lines
I am not against this upgrade, but mesa has this strange versioning that 26.0.0 is considered new development release not stable release.
As in:
https://docs.mesa3d.org/relnotes/26.0.0.html
Mesa 26.0.0 is a new development release. People who are concerned with stability and reliability should stick with a previous release or wait for Mesa 26.0.1.Yes. Ross said[1] to send this as RFC so (I assume) we can review and/or make it do rounds on the autobuilder before 26.0.1. Then Alex said[2] he doesn't think it carries any meaning anymore considering they now have multiple rounds of release candidates. So... /me shrugs
[1] https://libera.catirclogs.org/yocto/2026-02-12#39496615; https://libera.catirclogs.org/yocto/2026-02-12#39496624;[2] https://libera.catirclogs.org/yocto/2026-02-12#39498266;
Quoted 8 lines
So I followed whatever Alex said, but we can also have this as an RFC as preparation for 26.0.1 which would come in a few weeks.
I think my interest is to make 6.0 use 26.0.x such that we don't have to go through TSC to bump the mesa version in the next LTS.
I don't care much either way, at least there's something we can review and comment on and people don't do the work twice (or more) :)
I agree with all above and I am not against this upgrade.
I'm just pointing that you shouldn't call it "latest stable release" in the cover letter (which is what triggered me to check the release notes if mesa changed their versioning). I don't think you need to re-send, it's not even in the commit messages and nobody will read cover letter after it's merged :).
Cheers,
Quoted 7 lines · Martin Jansa via lists.openembedded.org
I agree with all above and I am not against this upgrade.
I'm just pointing that you shouldn't call it "latest stable release" in the cover letter (which is what triggered me to check the release notes if mesa changed their versioning). I don't think you need to re-send, it's not even in the commit messages and nobody will read cover letter after it's merged :).
I need to point out this:
https://docs.mesa3d.org/releasing.html
which does not mention anything special about .0 vs .1, it just says that a .0 is a feature release that happens after (typically) four release candidates, and it is followed by bugfix releases.
I suspect this '.0 is a development release' language in release notes is some old auto-template text that no one bothered to adjust.
Alex