deleted file mode 100644
@@ -1,45 +0,0 @@
-From 4c3fad710c5bc702e28ae2bcc3c73b0547c4954d Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-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 <dmitry.baryshkov@oss.qualcomm.com>
-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
-
@@ -1,89 +1,54 @@
-From 027ac36756cc75eea9ed4fee135a351af30b35fd Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-Date: Tue, 16 Jul 2024 12:32:47 +0300
+From 8299fe0615638dc88694f08b95a62e9dd3943a6f 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
Encoding build-specific path into installed binaries is generally
frowned upon. It harms the reproducibility of the build and e.g.
OpenEmbedded now considers that to be an error.
-Instead of hardcoding rnn_src_path into the RNN_DEF_PATH define specify
-it manually when running the tests.
+Instead of hardcoding rnn_src_path into the RNN_DEF_PATH, use the
+relative path when running the build / test.
+Additionaly make sure that RNN_PATH is set correctly when running `meson
+devenv` in order to allow developers to call tools without installing
+XML files to the target system.
+
+Suggested-by: Rob Clark <rob.clark@oss.qualcomm.com>
+Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30206]
-Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
+[locally generated patch after git am'ing it to remove fuzz]
+Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
- src/freedreno/afuc/meson.build | 4 ++++
- src/freedreno/decode/meson.build | 4 +++-
- src/freedreno/meson.build | 2 +-
- 3 files changed, 8 insertions(+), 2 deletions(-)
+ src/freedreno/meson.build | 5 +++--
+ src/freedreno/registers/meson.build | 2 ++
+ 2 files changed, 5 insertions(+), 2 deletions(-)
-diff --git a/src/freedreno/afuc/meson.build b/src/freedreno/afuc/meson.build
-index bb7cebf5a748..351cc31ef2de 100644
---- a/src/freedreno/afuc/meson.build
-+++ b/src/freedreno/afuc/meson.build
-@@ -56,10 +56,12 @@ if with_tests
- asm_fw = custom_target('afuc_test.fw',
- output: 'afuc_test.fw',
- command: [asm, files('../tests/traces/afuc_test.asm'), '@OUTPUT@'],
-+ env: {'RNN_PATH': rnn_src_path},
- )
- asm_fw_a7xx = custom_target('afuc_test_a7xx.fw',
- output: 'afuc_test_a7xx.fw',
- command: [asm, files('../tests/traces/afuc_test_a7xx.asm'), '@OUTPUT@'],
-+ env: {'RNN_PATH': rnn_src_path},
- )
- test('afuc-asm',
- diff,
-@@ -120,11 +122,13 @@ if cc.sizeof('size_t') > 4
- disasm_fw = custom_target('afuc_test.asm',
- output: 'afuc_test.asm',
- command: [disasm, '-u', files('../tests/reference/afuc_test.fw')],
-+ env: {'RNN_PATH': rnn_src_path},
- capture: true
- )
- disasm_fw_a7xx = custom_target('afuc_test_a7xx.asm',
- output: 'afuc_test_a7xx.asm',
- command: [disasm, '-u', files('../tests/reference/afuc_test_a7xx.fw')],
-+ env: {'RNN_PATH': rnn_src_path},
- capture: true
- )
- test('afuc-disasm',
-diff --git a/src/freedreno/decode/meson.build b/src/freedreno/decode/meson.build
-index 469eeb4eb597..dfa1c12d0d9f 100644
---- a/src/freedreno/decode/meson.build
-+++ b/src/freedreno/decode/meson.build
-@@ -194,6 +194,7 @@ if dep_lua.found() and dep_libarchive.found()
- log = custom_target(name + '.log',
- output: name + '.log',
- command: [cffdump, '--unit-test', args, files('../tests/traces/' + name + '.rd.gz')],
-+ env: {'RNN_PATH': rnn_src_path},
- capture: true,
- )
- test('cffdump-' + name,
-@@ -247,7 +248,8 @@ if with_tests
- output: name + '.log',
- command: [crashdec, args, files('../tests/traces/' + name + '.devcore')],
- capture: true,
-- env: {'GALLIUM_DUMP_CPU': 'false'},
-+ env: {'GALLIUM_DUMP_CPU': 'false',
-+ 'RNN_PATH': rnn_src_path},
- )
-
- test('crashdec-' + name,
diff --git a/src/freedreno/meson.build b/src/freedreno/meson.build
-index 98e49b8fcf0e..145e72597eb9 100644
+index a4bfd337179..330b6468d01 100644
--- a/src/freedreno/meson.build
+++ b/src/freedreno/meson.build
-@@ -6,7 +6,7 @@ inc_freedreno_rnn = include_directories('rnn')
+@@ -4,9 +4,10 @@
+ inc_freedreno = include_directories(['.', './registers', './registers/adreno', './common'])
+ inc_freedreno_rnn = include_directories('rnn')
- rnn_src_path = dir_source_root + '/src/freedreno/registers'
+-rnn_src_path = dir_source_root + '/src/freedreno/registers'
++rnn_rel_path = 'src/freedreno/registers'
++rnn_src_path = dir_source_root + '/' + rnn_rel_path
rnn_install_path = get_option('datadir') + '/freedreno/registers'
-rnn_path = rnn_src_path + ':' + get_option('prefix') + '/' + rnn_install_path
-+rnn_path = get_option('prefix') + '/' + rnn_install_path
++rnn_path = rnn_rel_path + ':' + get_option('prefix') + '/' + rnn_install_path
- dep_libarchive = dependency('libarchive', allow_fallback: true, required: false)
+ dep_libarchive = dependency('libarchive', allow_fallback: true, required: false, disabler : true)
dep_libxml2 = dependency('libxml-2.0', allow_fallback: true, required: false)
----
-2.39.2
-
+diff --git a/src/freedreno/registers/meson.build b/src/freedreno/registers/meson.build
+index f4be68117c3..cd0caafa431 100644
+--- a/src/freedreno/registers/meson.build
++++ b/src/freedreno/registers/meson.build
+@@ -43,4 +43,6 @@ if install_fd_decode_tools
+ endforeach
+ endif
+
++devenv.set('RNN_PATH', meson.current_source_dir())
++
+ subdir('adreno')
deleted file mode 100644
@@ -1,36 +0,0 @@
-From 4315c28739dcade156ac9384c99ba552b6d85b40 Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-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 <dmitry.baryshkov@oss.qualcomm.com>
-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 <quentin.schulz@cherry.de>
----
- 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:
deleted file mode 100644
@@ -1,45 +0,0 @@
-From d5462c852d30fc41a223730848550db4f9675517 Mon Sep 17 00:00:00 2001
-From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-Date: Wed, 19 Nov 2025 14:19:36 +0200
-Subject: [PATCH 2/2] rocket: 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 <dmitry.baryshkov@oss.qualcomm.com>
-Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/mesa/-/commit/7a3bfd1f7913819db315e6db8b42520a2d862690]
----
- src/gallium/drivers/rocket/gen_header.py | 12 ------------
- 1 file changed, 12 deletions(-)
-
-diff --git a/src/gallium/drivers/rocket/gen_header.py b/src/gallium/drivers/rocket/gen_header.py
-index f3c6615dcb42..5457ef71d595 100644
---- a/src/gallium/drivers/rocket/gen_header.py
-+++ b/src/gallium/drivers/rocket/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
-
@@ -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)}"