Add vkmark graphics benchmarking tool
v6 cover Add vkmark graphics benchmarking tool
Hi,
Now that the Mesa bits have been merged the series is considerably shorter. I've up-revved a vulkan-header/loader/tools library which also seems to have solved some of the cross building bits so I no longer need the hacky patch.
I've also simplified the TestVkMark test so it will work with an un-accelerated display and simply test vkmark works.
For v5
- rebase
- drop unneeded patches
- drop already merged patches
- tweak the test
- include https://github.com/vkmark/vkmark/pull/76 patches
For v4
- new patch to vkmark to run under VirtIO
- see individual patches for other updates
For v3
- re-based on current master
- new vulkan-sdk package (for volk loader)
- bump vulkan support to 1.4.307
- include isystem patch (maybe squash with ^?)
- vkmark now has a tagged release (2025.01)
- addressed review comments (see individual patches)
For v2
- added SOFTPIPE fixes (these need merging into Bernd's series)
- addressed remaining comments for dependencies
- tweaked a few more dependancies
- added a vkmark test
While the vkmark test will happily run with lvpipe sw rendering you will need a recent QEMU 9.2.0+ (released 11/12/2024) built with an upto date virglrenderer (available in Debian Trixie/Testing).
I plan to use buildroot generated images for QEMU's own functional tests for Venus.
I've run through:
utils/docker-run make check-package
and everything looks clean. Full details about the changes are bellow the ---'s in the individual commits.
Alex Bennée (5):
package/{mesa3d, mesa3d-headers}: bump version to 25.1.3 package/vulkan-sdk: new package package/vulkan-[headers|loader|tools]: bump to 1.4.317 release package/vkmark: add vkmark benchmarking tool support/testing: add test for vkmark package
.checkpackageignore | 8 +-
DEVELOPERS | 3 +
package/Config.in | 2 +
package/mesa3d-headers/mesa3d-headers.mk | 2 +-
...t-proper-value-for-LIBCLC_INCLUDEDIR.patch | 41 ----------
...ion-to-disable-optional-neon-suppor.patch} | 22 ++---
...-Include-stddef.h-to-fix-build-erro.patch} | 6 +-
...uild.patch => 0003-Fix-uClibc-build.patch} | 14 ++--
package/mesa3d/mesa3d.hash | 6 +-
package/mesa3d/mesa3d.mk | 2 +-
...ce-deprecated-get_pkgconfig_variable.patch | 66 +++++++++++++++
...02-meson-fix-cross-compilation-50-75.patch | 35 ++++++++
package/vkmark/Config.in | 48 +++++++++++
package/vkmark/vkmark.hash | 3 +
package/vkmark/vkmark.mk | 34 ++++++++
package/vulkan-headers/vulkan-headers.hash | 2 +-
package/vulkan-headers/vulkan-headers.mk | 2 +-
package/vulkan-loader/vulkan-loader.hash | 2 +-
package/vulkan-sdk/Config.in | 8 ++
package/vulkan-sdk/vulkan-sdk.hash | 3 +
package/vulkan-sdk/vulkan-sdk.mk | 18 +++++
package/vulkan-tools/Config.in | 3 +-
package/vulkan-tools/vulkan-tools.hash | 2 +-
package/vulkan-tools/vulkan-tools.mk | 3 +-
support/testing/infra/emulator.py | 4 +-
support/testing/tests/package/test_vkmark.py | 80 +++++++++++++++++++
.../etc/profile.d/10-xdg-runtime.sh | 1 +
27 files changed, 345 insertions(+), 75 deletions(-)
delete mode 100644 package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch
rename package/mesa3d/{0002-vc4-add-meson-option-to-disable-optional-neon-suppor.patch => 0001-vc4-add-meson-option-to-disable-optional-neon-suppor.patch} (86%)
rename package/mesa3d/{0003-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch => 0002-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch} (86%)
rename package/mesa3d/{0004-Fix-uClibc-build.patch => 0003-Fix-uClibc-build.patch} (87%)
create mode 100644 package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patch
create mode 100644 package/vkmark/0002-meson-fix-cross-compilation-50-75.patch
create mode 100644 package/vkmark/Config.in
create mode 100644 package/vkmark/vkmark.hash
create mode 100644 package/vkmark/vkmark.mk
create mode 100644 package/vulkan-sdk/Config.in
create mode 100644 package/vulkan-sdk/vulkan-sdk.hash
create mode 100644 package/vulkan-sdk/vulkan-sdk.mk
create mode 100644 support/testing/tests/package/test_vkmark.py
create mode 100644 support/testing/tests/package/test_vkmark/rootfs-overlay/etc/profile.d/10-xdg-runtime.shSignature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 1/5 package/{mesa3d, mesa3d-headers}: bump version to 25.1.3
We can now drop the LIBCLC_INCLUDEDIR patch as the includedir section was removed in the upstream and should not have been exposed. mesa3d still builds without it.
---
v6
- version bump to latest mesa3d
- update .checkpackageignore
---
.checkpackageignore | 6 ++-
package/mesa3d-headers/mesa3d-headers.mk | 2 +-
...t-proper-value-for-LIBCLC_INCLUDEDIR.patch | 41 -------------------
...ion-to-disable-optional-neon-suppor.patch} | 22 +++++-----
...-Include-stddef.h-to-fix-build-erro.patch} | 6 +--
...uild.patch => 0003-Fix-uClibc-build.patch} | 14 +++----
package/mesa3d/mesa3d.hash | 6 +--
package/mesa3d/mesa3d.mk | 2 +-
8 files changed, 31 insertions(+), 68 deletions(-)
delete mode 100644 package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch
rename package/mesa3d/{0002-vc4-add-meson-option-to-disable-optional-neon-suppor.patch => 0001-vc4-add-meson-option-to-disable-optional-neon-suppor.patch} (86%)
rename package/mesa3d/{0003-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch => 0002-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch} (86%)
rename package/mesa3d/{0004-Fix-uClibc-build.patch => 0003-Fix-uClibc-build.patch} (87%).checkpackageignore +5 -1
@@ -795,7 +795,11 @@ package/memstat/0001-PATH_MAX.patch lib_patch.Upstream package/mender-connect/S43mender-connect Shellcheck package/menu-cache/0001-Support-gcc10-compilation.patch lib_patch.Upstream package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch lib_patch.Upstream -package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch lib_patch.Upstream +package/mesa3d-headers/mesa3d-headers.hash lib_hash.HashSpaces +package/mesa3d/0001-vc4-add-meson-option-to-disable-optional-neon-suppor.patch lib_patch.NumberedSubject +package/mesa3d/0002-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch lib_patch.NumberedSubject +package/mesa3d/0003-Fix-uClibc-build.patch lib_patch.NumberedSubject +package/mesa3d/mesa3d.hash lib_hash.HashSpaces package/meson-tools/0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch lib_patch.Upstream package/meson/0001-Prefer-ext-static-libs-when-default-library-static.patch lib_patch.Upstream package/meson/0002-mesonbuild-dependencies-base.py-add-pkg_config_stati.patch lib_patch.Upstream
package/mesa3d-headers/mesa3d-headers.mk +1 -1
@@ -12,7 +12,7 @@ endif # Not possible to directly refer to mesa3d variables, because of # first/second expansion trickery... -MESA3D_HEADERS_VERSION = 25.0.6 +MESA3D_HEADERS_VERSION = 25.1.3 MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz MESA3D_HEADERS_SITE = https://archive.mesa3d.org MESA3D_HEADERS_DL_SUBDIR = mesa3d
package/mesa3d/0001-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch deleted +0 -41
41 lines not on this page · raw message
package/mesa3d/0001-vc4-add-meson-option-to-disable-optional-neon-suppor.patch renamed from package/mesa3d/0002-vc4-add-meson-option-to-disable-optional-neon-suppor.patch +11 -11
@@ -1,7 +1,7 @@ -From f719e942dde0a46a9ff0080001cb3466012ffcc0 Mon Sep 17 00:00:00 2001 +From 613c3207b111845d06e05a56953d3dd7dbf4247e Mon Sep 17 00:00:00 2001 From: Peter Seiderer <[email protected]> Date: Mon, 9 Mar 2020 13:01:14 +0100 -Subject: [PATCH] vc4: add meson option to disable optional neon support +Subject: [PATCH 1/3] vc4: add meson option to disable optional neon support Not all toolchains are able to compile the runtime optional vc4 neon support, so add an meson option
@@ -14,15 +14,15 @@ Signed-off-by: Bernd Kuhls <[email protected]> Signed-off-by: Peter Seiderer <[email protected]> [fix syntax error after previous rebases] --- - meson_options.txt | 7 +++++++ + meson.options | 7 +++++++ src/gallium/drivers/vc4/meson.build | 4 ++-- src/gallium/drivers/vc4/vc4_tiling.h | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) -diff --git a/meson_options.txt b/meson_options.txt -index 8e0bf2a..1cf0e07 100644 ---- a/meson_options.txt -+++ b/meson_options.txt +diff --git a/meson.options b/meson.options +index 7a1ff5344fa..6c5c3dbd369 100644 +--- a/meson.options ++++ b/meson.options @@ -117,6 +117,13 @@ option( description : 'enable gallium va frontend.', )
@@ -38,10 +38,10 @@ index 8e0bf2a..1cf0e07 100644 'va-libs-path', type : 'string', diff --git a/src/gallium/drivers/vc4/meson.build b/src/gallium/drivers/vc4/meson.build -index 84da951..7f950de 100644 +index 54b165d69db..8398715bf39 100644 --- a/src/gallium/drivers/vc4/meson.build +++ b/src/gallium/drivers/vc4/meson.build -@@ -72,7 +72,7 @@ files_libvc4 = files( +@@ -72,7 +72,7 @@ vc4_deps = [ ] libvc4_neon = []
@@ -60,7 +60,7 @@ index 84da951..7f950de 100644 if dep_simpenrose.found() diff --git a/src/gallium/drivers/vc4/vc4_tiling.h b/src/gallium/drivers/vc4/vc4_tiling.h -index 5afe329..919b299 100644 +index 5afe32939a8..919b2990ab1 100644 --- a/src/gallium/drivers/vc4/vc4_tiling.h +++ b/src/gallium/drivers/vc4/vc4_tiling.h @@ -89,7 +89,7 @@ vc4_load_lt_image(void *dst, uint32_t dst_stride,
@@ -82,5 +82,5 @@ index 5afe329..919b299 100644 vc4_store_lt_image_neon(dst, dst_stride, src, src_stride, cpp, box); -- -2.41.0 +2.47.2
package/mesa3d/0002-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch renamed from package/mesa3d/0003-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch +3 -3
@@ -1,7 +1,7 @@ -From fdc8b5a205e2116408aeb9fd305e57f656e2e89d Mon Sep 17 00:00:00 2001 +From 770d114a002b712e2a8be18603ee5c0009df2c2e Mon Sep 17 00:00:00 2001 From: Bernd Kuhls <[email protected]> Date: Sun, 9 Aug 2020 17:06:26 +0200 -Subject: [PATCH] src/util/rand_xor: Include stddef.h to fix build error +Subject: [PATCH 2/3] src/util/rand_xor: Include stddef.h to fix build error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
@@ -35,5 +35,5 @@ index 81b64f1ea71..fcb481487fa 100644 #include <sys/random.h> #endif -- -2.27.0 +2.47.2
package/mesa3d/0003-Fix-uClibc-build.patch renamed from package/mesa3d/0004-Fix-uClibc-build.patch +7 -7
@@ -1,7 +1,7 @@ -From 09ce52fe375a6fc1ccf51b6b691aaa2c3f53fbd5 Mon Sep 17 00:00:00 2001 +From c2b68f473d9bf54e2fff1ca7f4cec8dd8922beb5 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls <[email protected]> Date: Fri, 3 Jun 2022 16:26:03 +0200 -Subject: [PATCH] Fix uClibc build +Subject: [PATCH 3/3] Fix uClibc build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
@@ -29,12 +29,12 @@ Signed-off-by: Bernd Kuhls <[email protected]> [rebased for 23.2.0] Signed-off-by: Bernd Kuhls <[email protected]> --- - src/util/compiler.h | 10 ++++++++++ + src/util/compiler.h | 11 +++++++++++ src/util/macros.h | 1 + - 2 files changed, 11 insertions(+) + 2 files changed, 12 insertions(+) diff --git a/src/util/compiler.h b/src/util/compiler.h -index d184ad455af..b5c56807acc 100644 +index ddd4cfb836b..61a8d176ae2 100644 --- a/src/util/compiler.h +++ b/src/util/compiler.h @@ -35,6 +35,17 @@
@@ -56,7 +56,7 @@ index d184ad455af..b5c56807acc 100644 #include <stdarg.h> #include <stdbool.h> diff --git a/src/util/macros.h b/src/util/macros.h -index 22b18303826..8f73ee72693 100644 +index bb8f9b58ffa..9c4c95f3d4e 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -31,6 +31,7 @@
@@ -68,5 +68,5 @@ index 22b18303826..8f73ee72693 100644 #ifdef _GAMING_XBOX #define strdup _strdup -- -2.34.1 +2.47.2
package/mesa3d/mesa3d.hash +3 -3
@@ -1,6 +1,6 @@ -# From https://lists.freedesktop.org/archives/mesa-announce/2025-May/000803.html -sha256 0d179e019e3441f5d957330d7abb3b0ef38e6782cc85a382608cd1a4a77fa2e1 mesa-25.0.6.tar.xz -sha512 6a0abc8a5bbbb8ffdad7286fc5642f643b1f4183794425ba689c2c9f5c73a4131c8685074241deb1022631b4c1f1c505dbd848190ec60d5d6931e90dd9316e05 mesa-25.0.6.tar.xz +# From https://lists.freedesktop.org/archives/mesa-announce/2025-June/000807.html +sha256 ffcb6cadb5fd356d56008e6308641dfe4b2929f30139f6585436ca6e3cddba7f mesa-25.1.3.tar.xz +sha512 20b72ac4e39e559e36be07f003707cf5e25c5ebac22746d71438edecb9d911f5341373b1632ff08c00b57ac15fc880ce5a203ab9165e5e71057816be31344fd7 mesa-25.1.3.tar.xz2 # License sha256 0d1a0472ecc81830e75c20d59b0ea02841e3db21255e0ebad97ab682c54d6615 docs/license.rst sha256 323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f licenses/MIT
package/mesa3d/mesa3d.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ # When updating the version, please also update mesa3d-headers -MESA3D_VERSION = 25.0.6 +MESA3D_VERSION = 25.1.3 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz MESA3D_SITE = https://archive.mesa3d.org MESA3D_LICENSE = MIT, SGI, Khronos
Signature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 2/5 package/vulkan-sdk: new package
In reply to Alex BennéeThe principle component of this is the new volk meta-loader which is required for more recent versions of vulkan-tools. There does seem to be a little confusion with github Releases lagging behind tagged versions of the sdk. I've gone for the latest SDK version to stay as closely aligned to the rest of the system as I can.
---
v6
- bump to vulkan-sdk-1.4.313.0
--- package/Config.in | 1 + package/vulkan-sdk/Config.in | 8 ++++++++ package/vulkan-sdk/vulkan-sdk.hash | 3 +++ package/vulkan-sdk/vulkan-sdk.mk | 18 ++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 package/vulkan-sdk/Config.in create mode 100644 package/vulkan-sdk/vulkan-sdk.hash create mode 100644 package/vulkan-sdk/vulkan-sdk.mk
package/Config.in +1 -0
@@ -375,6 +375,7 @@ comment "Graphic libraries" source "package/tk/Config.in" source "package/vulkan-headers/Config.in" source "package/vulkan-loader/Config.in" + source "package/vulkan-sdk/Config.in" source "package/vulkan-tools/Config.in" comment "Other GUIs"
package/vulkan-sdk/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_VULKAN_SDK + bool "vulkan-sdk" + select BR2_PACKAGE_VULKAN_HEADERS + + help + The Vulkan meta-loader + + https://github.com/zeux/volk
package/vulkan-sdk/vulkan-sdk.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 d86bcf1aff499f41a3e445b55df5e393a5ce49b1bda689eb7335b0a0a54a3c0b vulkan-sdk-1.4.313.0.tar.gz +sha256 33c831f76b79501665e66c23ac8f876020457c216d44526a8f747da897999b35 LICENSE.md
package/vulkan-sdk/vulkan-sdk.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# vulkan-sdk +# +################################################################################ + +VULKAN_SDK_VERSION = 1.4.313.0 +VULKAN_SDK_SITE = https://github.com/zeux/volk/archive/refs/tags +VULKAN_SDK_SOURCE= vulkan-sdk-$(VULKAN_SDK_VERSION).tar.gz +VULKAN_SDK_LICENSE = MIT +VULKAN_SDK_LICENSE_FILES = LICENSE.md +VULKAN_SDK_INSTALL_STAGING = YES + +VULKAN_SDK_DEPENDENCIES = vulkan-headers + +VULKAN_SDK_CONF_OPTS += -DVOLK_INSTALL=ON + +$(eval $(cmake-package))
Signature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 2/5] package/vulkan-sdk: new package
Hi Alex,
Thanks for the patch! I have few comments, see below.
Quoted 12 lines · Alex Bennée
The principle component of this is the new volk meta-loader which is required for more recent versions of vulkan-tools. There does seem to be a little confusion with github Releases lagging behind tagged versions of the sdk. I've gone for the latest SDK version to stay as closely aligned to the rest of the system as I can.
Signed-off-by Alex Bennée <[email protected]>---
v6
- bump to vulkan-sdk-1.4.313.0
---
[...]
package/vulkan-sdk/Config.in line 2
Quoted 8 lines
package/vulkan-sdk/Config.in new file +2
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_VULKAN_SDK + bool "vulkan-sdk"
When testing with the command:
utils/test-pkg -a -p vulkan-sdk
There is few build failures reported:
bootlin-armv7m-uclibc [ 6/40]: FAILED
bootlin-m68k-5208-uclibc [ 8/40]: FAILED
br-arm-basic [28/40]: FAILED
br-arm-full-static [30/40]: FAILEDThere is possibly a missing dependency missing here, like:
depends on !BR2_STATIC_LIBS # dlfcn.h
Could you also add the corresponding comment (see other packages for example).
To better keep track of those dependencies, you should also update the comment in package/vulkan-tools/Config.in, to:
depends on !BR2_STATIC_LIBS # vulkan-loader, vulkan-sdk
package/vulkan-sdk/Config.in line 4
Quoted 2 lines
package/vulkan-sdk/Config.in new file +2
-0+ select BR2_PACKAGE_VULKAN_HEADERS +
To keep some consistency with all other packages in Buildroot, could you remove this new line, please?
package/vulkan-sdk/Config.in line 8
Quoted 4 lines
package/vulkan-sdk/Config.in new file +4
-0+ help + The Vulkan meta-loader + + https://github.com/zeux/volk
Could you send an updated patch fixing those issue, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 3/5 package/vulkan-[headers|loader|tools]: bump to 1.4.317 release
In reply to Alex BennéeUpdate to the current release. We now need the recently added vulkan-sdk to have access to the volk loader.
---
v5
- 1.4.316 -> 1.4.317
v4
- 1.4.306 -> 1.4.316
- doesn't seem to need isystem patch now
v3
- fix up comment, properly select the SDK package
--- package/vulkan-headers/vulkan-headers.hash | 2 +- package/vulkan-headers/vulkan-headers.mk | 2 +- package/vulkan-loader/vulkan-loader.hash | 2 +- package/vulkan-tools/Config.in | 3 ++- package/vulkan-tools/vulkan-tools.hash | 2 +- package/vulkan-tools/vulkan-tools.mk | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-)
package/vulkan-headers/vulkan-headers.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 317e467a5fb2eaa6a18b984ec70fdbfaccd93595a3e6f4bcceca7d3fab280505 vulkan-headers-1.3.262.tar.gz +sha256 78665959d10b09061d8c3e21db8bf3e8b699e2d3d532fce850a32312dba7228b vulkan-headers-1.4.317.tar.gz sha256 ac24e5ea920e4318e4d02c4086ae51f53cfb03feed06c18df1019e7ada1ec7bc LICENSE.md
package/vulkan-headers/vulkan-headers.mk +1 -1
@@ -6,7 +6,7 @@ # Note: changing this version will also affect vulkan-loader and # vulkan-tools, so please update those packages as well. -VULKAN_HEADERS_VERSION = 1.3.262 +VULKAN_HEADERS_VERSION = 1.4.317 VULKAN_HEADERS_SITE = $(call github,KhronosGroup,Vulkan-Headers,v$(VULKAN_HEADERS_VERSION)) VULKAN_HEADERS_LICENSE = Apache-2.0, MIT VULKAN_HEADERS_LICENSE_FILES = LICENSE.md
package/vulkan-loader/vulkan-loader.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 3bbaa5ee64058a89949eb777de66ce94bfe3141892514172cfc9451c756802d5 vulkan-loader-1.3.262.tar.gz +sha256 e4e18585fe902ee04e86c1cdb2996b686bffef2cab02cb6079221fe69df05af8 vulkan-loader-1.4.317.tar.gz sha256 43c0a37e6a0fa7ff3c843b3ec5a4fac84b712558ddac103fbd4c1649662a9ece LICENSE.txt
package/vulkan-tools/Config.in +2 -1
@@ -6,12 +6,13 @@ config BR2_PACKAGE_VULKAN_TOOLS depends on BR2_TOOLCHAIN_HAS_THREADS # vulkan-loader select BR2_PACKAGE_VULKAN_HEADERS select BR2_PACKAGE_VULKAN_LOADER + select BR2_PACKAGE_VULKAN_SDK help The Khronos official Vulkan Tools and Utilities. https://github.com/KhronosGroup/Vulkan-Tools -comment "vulkan-tools needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.9" +comment "vulkan-tools needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.9, vulkan-sdk" depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
package/vulkan-tools/vulkan-tools.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 8c77d02694d0516ae2ba3f3718745647e87e788ef93faabb2e3674ff32608010 vulkan-tools-1.3.262.tar.gz +sha256 4586309ab5b2a9584fde62fd85b0ef5bb98b4cdbca9cb1ba3a2b4978dc2f355c vulkan-tools-1.4.317.tar.gz sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE.txt
package/vulkan-tools/vulkan-tools.mk +2 -1
@@ -11,7 +11,8 @@ VULKAN_TOOLS_LICENSE_FILES = LICENSE.txt VULKAN_TOOLS_DEPENDENCIES = \ vulkan-headers \ - vulkan-loader + vulkan-loader \ + vulkan-sdk VULKAN_TOOLS_CONF_OPTS += \ -DBUILD_CUBE=OFF \
Signature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 3/5] package/vulkan-[headers|loader|tools]: bump to 1.4.317 release
Hi Alex,
Quoted 13 lines · Alex Bennée
Update to the current release. We now need the recently added vulkan-sdk to have access to the volk loader.
Signed-off-by Alex Bennée <[email protected]>---
v5
- 1.4.316 -> 1.4.317
v4
- 1.4.306 -> 1.4.316
- doesn't seem to need isystem patch now
v3
- fix up comment, properly select the SDK package
[...]
package/vulkan-tools/Config.in config BR2_PACKAGE_VULKAN_TOOLS
Quoted 5 lines
package/vulkan-tools/Config.in +0
-0@@ -6,12 +6,13 @@ config BR2_PACKAGE_VULKAN_TOOLS
As I mentioned in:
https://lore.kernel.org/buildroot/[email protected]/T/#u
Could you update the dependency comment in this patch:
depends on !BR2_STATIC_LIBS # vulkan-loader, vulkan-sdk
Quoted 11 lines
package/vulkan-tools/Config.in +1
-1depends on BR2_TOOLCHAIN_HAS_THREADS # vulkan-loader select BR2_PACKAGE_VULKAN_HEADERS select BR2_PACKAGE_VULKAN_LOADER + select BR2_PACKAGE_VULKAN_SDK help The Khronos official Vulkan Tools and Utilities. https://github.com/KhronosGroup/Vulkan-Tools -comment "vulkan-tools needs a toolchain w/ C++, dynamic library,
Quoted 3 lines
threads, gcc >= 4.9"
+comment "vulkan-tools needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.9, vulkan-sdk"
Here, adding "vulkan-sdk" is not needed (because it is "select"ed and not a "depends on"). Could you remove it.
package/vulkan-tools/Config.in config BR2_PACKAGE_VULKAN_TOOLS · line 18
Quoted 2 lines
package/vulkan-tools/Config.in +0
-0depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
Could you send an updated patch addressing those comments, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 4/5 package/vkmark: add vkmark benchmarking tool
In reply to Alex BennéeWe build from a recent HEAD to ensure we have the fixes to better handle the missing KHR_display extension.
---
v6
- add patches from https://github.com/vkmark/vkmark/pull/76
- sort Kconfig symbols
- update .checkpackageignore
v5
- move from 2025.1 to HEAD (36e7d9b build: Enable precompiled headers)
- drop old patch (see adf1aa3 for final fix)
v4
- fix tab vs space damage
- don't if BR2_PACKAGE_VKMARK_FLAVOR_ANY
- make comments properly depend
- use the new 2025.01 release
- add sha256sum of COPYING-LGPL2.1
- alphabetic sort of initial VKMARK_DEPENDENCIES
- add vulkan error probing patch
v3
- add xcb-util-wm deps under X11
- add assimp directly to VKMARK_DEPENDENCIES
- drop duplicate BR2_INSTALL_LIBSTDCPP
- drop BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
v2
- fix whitespace errors in Config.in
- fix sorting of sources
- add DEVELOPERS entry
- rework KConfig based on review
- drop unused sha256sum
- explicitly enable/disable the backends
--- .checkpackageignore | 2 + DEVELOPERS | 3 + package/Config.in | 1 + ...ce-deprecated-get_pkgconfig_variable.patch | 66 +++++++++++++++++++ ...02-meson-fix-cross-compilation-50-75.patch | 35 ++++++++++ package/vkmark/Config.in | 48 ++++++++++++++ package/vkmark/vkmark.hash | 3 + package/vkmark/vkmark.mk | 34 ++++++++++ 8 files changed, 192 insertions(+) create mode 100644 package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patch create mode 100644 package/vkmark/0002-meson-fix-cross-compilation-50-75.patch create mode 100644 package/vkmark/Config.in create mode 100644 package/vkmark/vkmark.hash create mode 100644 package/vkmark/vkmark.mk
.checkpackageignore +2 -0
@@ -1203,6 +1203,8 @@ package/valgrind/0001-workaround-SIGSEGV-on-PPC.patch lib_patch.Upstream package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch lib_patch.Upstream package/vboot-utils/0001-Add-missing-definition-of-MTD_CHAR_MAJOR.patch lib_patch.Upstream package/vdr/0001-getloadavg.patch lib_patch.Upstream +package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patch lib_patch.NumberedSubject lib_patch.Upstream +package/vkmark/0002-meson-fix-cross-compilation-50-75.patch lib_patch.NumberedSubject lib_patch.Upstream package/vlc/0001-Disable-building-of-statically-linked-vlc-binary.patch lib_patch.Upstream package/vlc/0002-automake-add-subdir-objects-option.patch lib_patch.Upstream package/vlc/0003-build-use-pkg-config-to-get-tremor-libs.patch lib_patch.Upstream
DEVELOPERS +3 -0
@@ -141,6 +141,9 @@ F: package/liblog4c-localtime/ N: Alexandre Belloni <[email protected]> F: package/tz/ +N: Alex Bennée <[email protected]> +F: package/vkmark/ + N: Alexandre Esse <[email protected]> F: package/kvazaar/ F: package/v4l2loopback/
package/Config.in +1 -0
@@ -339,6 +339,7 @@ comment "Graphic applications" source "package/swaybg/Config.in" source "package/tesseract-ocr/Config.in" source "package/tinifier/Config.in" + source "package/vkmark/Config.in" comment "Graphic libraries" source "package/cegui/Config.in"
package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patch new file +66 -0
66 lines not on this page · raw message
package/vkmark/0002-meson-fix-cross-compilation-50-75.patch new file +35 -0
@@ -0,0 +1,35 @@ +From dc9a0c2d8687501ddf97c97599fa7a69d07d3d3d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <[email protected]> +Date: Fri, 6 Jun 2025 17:48:40 +0100 +Subject: [PATCH 2/2] meson: fix cross-compilation (#50, #75) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Now we have updated the minimum meson version we can apply sys_root to +the prefix variable to ensure we can find the right vk.xml when +cross-compiling. + +Signed-off-by: Alex Bennée <[email protected]> +--- + src/meson.build | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/meson.build b/src/meson.build +index a664ddc..b0e8c4a 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,7 +1,9 @@ + prog_python = find_program('python3') + ++vulkan_prefix = meson.get_external_property('sys_root', '') + vulkan_dep.get_variable('prefix') ++ + vk_xml = join_paths([ +- vulkan_dep.get_variable('prefix'), ++ vulkan_prefix, + 'share', 'vulkan', 'registry', + 'vk.xml' + ]) +-- +2.47.2 +
package/vkmark/Config.in new file +48 -0
48 lines not on this page · raw message
package/vkmark/vkmark.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 2225ef4e3ba785abcc249664644908b909517cae6c04bf37e9f3d0cf206efe83 vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d.tar.gz +sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING-LGPL2.1
package/vkmark/vkmark.mk new file +34 -0
@@ -0,0 +1,34 @@ +################################################################################ +# +# vkmark +# +################################################################################ + +VKMARK_VERSION = 36e7d9b2ecf723e876add65534e95f55ec1bc79d +VKMARK_SITE = $(call github,vkmark,vkmark,$(VKMARK_VERSION)) +VKMARK_LICENSE = LGPL-2.1 +VKMARK_LICENSE_FILES = COPYING-LGPL2.1 +VKMARK_DEPENDENCIES = assimp glm host-pkgconf vulkan-headers vulkan-loader + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_KMS),y) +VKMARK_DEPENDENCIES += libdrm libgbm +VKMARK_CONF_OPTS += -Dkms=true +else +VKMARK_CONF_OPTS += -Dkms=false +endif + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_WAYLAND),y) +VKMARK_DEPENDENCIES += wayland wayland-protocols +VKMARK_CONF_OPTS += -Dwayland=true +else +VKMARK_CONF_OPTS += -Dwayland=false +endif + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_X11),y) +VKMARK_DEPENDENCIES += libxcb xcb-util-wm +VKMARK_CONF_OPTS += -Dxcb=true +else +VKMARK_CONF_OPTS += -Dxcb=false +endif + +$(eval $(meson-package))
Signature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
Hi Alex,
Am Mi., 11. Juni 2025 um 13:16 Uhr schrieb Alex Bennée < [email protected]>:
Quoted 6 lines
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.Signed-off-by Alex Bennée <[email protected]>
I tried to build vkmark against, now with wayland enabled and I see this:
Program /usr/bin/wayland-scanner found: NO
../out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/src/meson.build:116:22:
ERROR: Program '/usr/bin/wayland-scanner' not found or not executable
A full log can be found at /srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/buildroot-build/meson-logs/meson-log.txt make[1]: *** [package/pkg-generic.mk:263:/srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/.stamp_configured] Error 1
make: *** [Makefile:23: _all] Error 2
It looks like here we have something similar like before. It looks under '/usr/bin/wayland-scanner' but the prefix is missing.
Quoted 327 lines
---
v6
- add patches from https://github.com/vkmark/vkmark/pull/76
- sortKconfigsymbols
- update .checkpackageignore
v5
- move from 2025.1 to HEAD (36e7d9b build: Enable precompiled headers)
- drop old patch (see adf1aa3 for final fix)
v4
- fix tab vs space damage
- don't ifBR2_PACKAGE_VKMARK_FLAVOR_ANY
- make comments properly depend
- use the new 2025.01 release
- add sha256sum of COPYING-LGPL2.1
- alphabetic sort of initialVKMARK_DEPENDENCIES
- add vulkan error probing patch
v3
- add xcb-util-wm deps under X11
- add assimp directly toVKMARK_DEPENDENCIES
- drop duplicateBR2_INSTALL_LIBSTDCPP
- dropBR2_TOOLCHAIN_GCC_AT_LEAST_4_9
v2
- fix whitespace errors in Config.in
- fix sorting of sources
- add DEVELOPERS entry
- rework KConfig based on review
- drop unused sha256sum
- explicitly enable/disable the backends--- .checkpackageignore | 2 + DEVELOPERS | 3 + package/Config.in | 1 + ...ce-deprecated-get_pkgconfig_variable.patch | 66 +++++++++++++++++++ ...02-meson-fix-cross-compilation-50-75.patch | 35 ++++++++++ package/vkmark/Config.in | 48 ++++++++++++++ package/vkmark/vkmark.hash | 3 + package/vkmark/vkmark.mk | 34 ++++++++++ 8 files changed, 192 insertions(+) create mode 100644 package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patch create mode 100644 package/vkmark/0002-meson-fix-cross-compilation-50-75.patch create mode 100644 package/vkmark/Config.in create mode 100644 package/vkmark/vkmark.hash create mode 100644 package/vkmark/vkmark.mk.checkpackageignore +0
-0@@ -1203,6 +1203,8 @@
package/valgrind/0001-workaround-SIGSEGV-on-PPC.patchlib_patch.Upstream
package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch
lib_patch.Upstream
package/vboot-utils/0001-Add-missing-definition-of-MTD_CHAR_MAJOR.patch
lib_patch.Upstream
package/vdr/0001-getloadavg.patchlib_patch.Upstream+package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patchlib_patch.NumberedSubject lib_patch.Upstream+package/vkmark/0002-meson-fix-cross-compilation-50-75.patchlib_patch.NumberedSubject lib_patch.Upstream
package/vlc/0001-Disable-building-of-statically-linked-vlc-binary.patch
lib_patch.Upstream
package/vlc/0002-automake-add-subdir-objects-option.patch
lib_patch.Upstream
package/vlc/0003-build-use-pkg-config-to-get-tremor-libs.patch
lib_patch.UpstreamDEVELOPERS +3
-0@@ -141,6 +141,9 @@ F: package/liblog4c-localtime/ N: Alexandre Belloni <[email protected]> F: package/tz/ +N: Alex Bennée <[email protected]> +F: package/vkmark/ + N: Alexandre Esse <[email protected]> F: package/kvazaar/ F: package/v4l2loopback/package/Config.in +1
-0@@ -339,6 +339,7 @@ comment "Graphic applications" source "package/swaybg/Config.in" source "package/tesseract-ocr/Config.in" source "package/tinifier/Config.in" + source "package/vkmark/Config.in" comment "Graphic libraries" source "package/cegui/Config.in"diff --git
a/package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patchb/package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patchnew file mode 100644
index 0000000000..1a24a62526
---/dev/null
+++b/package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patchpackage/Config.in +57
-0@@ -0,0 +1,66 @@ +From d14487a31026a25ca0c294989e1db4d5039a6270 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <[email protected]> +Date: Fri, 6 Jun 2025 17:40:02 +0100 +Subject: [PATCH 1/2] meson: replace deprecated get_pkgconfig_variable +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This function will be deprecated on modern mesons. Update the minimum +version to 0.56 which is enough for most of the current LTS's and +replace with calls to get_variable(). + +Looking at repology this covers: + + Debian Bookworm (soon to be oldstable): 1.0.1-5 + Ubuntu 22.04: 0.61.2 + CentOS Stream 8: 0.58.2 (CentOS 8 Power Tools is 0.55.3) + openSUSE Leap 15.6: 1.3.1 + FreeBSD Ports: 1.7.0 + +Signed-off-by: Alex Bennée <[email protected]> +--- + meson.build | 2 +- + src/meson.build | 6 +++--- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/meson.build b/meson.build +index e7bdb18..2d08d53 100644 +--- a/meson.build ++++ b/meson.build +@@ -3,7 +3,7 @@ project( + ['cpp', 'c'], + default_options : ['cpp_std=c++17'], + version : '2025.01', +- meson_version: '>=0.45' ++ meson_version: '>=0.58' + ) + + root_incdir = include_directories('.') +diff --git a/src/meson.build b/src/meson.build +index 5c543d6..a664ddc 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,7 +1,7 @@ + prog_python = find_program('python3') + + vk_xml = join_paths([ +- vulkan_dep.get_pkgconfig_variable('prefix'), ++ vulkan_dep.get_variable('prefix'), + 'share', 'vulkan', 'registry', + 'vk.xml' + ]) +@@ -111,8 +111,8 @@ if build_xcb_ws + endif + + if build_wayland_ws +- wayland_scanner =find_program(wayland_scanner_dep.get_pkgconfig_variable('wayland_scanner'))
+-wayland_protocols_dir=wayland_protocols_dep.get_pkgconfig_variable('pkgdatadir')
++wayland_scanner=
find_program(wayland_scanner_dep.get_variable('wayland_scanner'))
++wayland_protocols_dir=wayland_protocols_dep.get_variable('pkgdatadir')package/Config.in +2
-0+ + xdg_shell_xml_path = wayland_protocols_dir +'/stable/xdg-shell/xdg-shell.xml'
package/Config.in +4
-0+ xdg_shell_client_header = custom_target( +-- +2.47.2 +package/vkmark/0002-meson-fix-cross-compilation-50-75.patch new file +25
-0@@ -0,0 +1,35 @@ +From dc9a0c2d8687501ddf97c97599fa7a69d07d3d3d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <[email protected]> +Date: Fri, 6 Jun 2025 17:48:40 +0100 +Subject: [PATCH 2/2] meson: fix cross-compilation (#50, #75) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Now we have updated the minimum meson version we can apply sys_root to +the prefix variable to ensure we can find the right vk.xml when +cross-compiling. + +Signed-off-by: Alex Bennée <[email protected]> +--- + src/meson.build | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/meson.build b/src/meson.build +index a664ddc..b0e8c4a 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,7 +1,9 @@ + prog_python = find_program('python3') + ++vulkan_prefix = meson.get_external_property('sys_root', '') +
vulkan_dep.get_variable('prefix')
++
+vk_xml= join_paths([+- vulkan_dep.get_variable('prefix'), ++ vulkan_prefix,package/vkmark/0002-meson-fix-cross-compilation-50-75.patch new file +6
-0+ 'share', 'vulkan', 'registry', + 'vk.xml' + ]) +-- +2.47.2 +package/vkmark/Config.in new file +26
-0@@ -0,0 +1,48 @@ +config BR2_PACKAGE_VKMARK_FLAVOR_ANY + bool + +config BR2_PACKAGE_VKMARK_FLAVOR_KMS + bool + default y if BR2_PACKAGE_HAS_LIBGBM + select BR2_PACKAGE_VKMARK_FLAVOR_ANY + +config BR2_PACKAGE_VKMARK_FLAVOR_WAYLAND + bool + default y if BR2_PACKAGE_WAYLAND + select BR2_PACKAGE_VKMARK_FLAVOR_ANY + +config BR2_PACKAGE_VKMARK_FLAVOR_X11 + bool + default y if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_VKMARK_FLAVOR_ANY + +config BR2_PACKAGE_VKMARK + bool "vkmark" + depends on BR2_PACKAGE_VKMARK_FLAVOR_ANY + depends on !BR2_STATIC_LIBS # vulkan-loader + depends on BR2_TOOLCHAIN_HAS_THREADS # vulkan-loader + depends on BR2_USE_WCHAR # assimp + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # assimp + depends on BR2_INSTALL_LIBSTDCPP # vulkan-loader, glm, assimp,vkmark
package/vkmark/Config.in new file +5
-0+ select BR2_PACKAGE_VULKAN_HEADERS + select BR2_PACKAGE_VULKAN_LOADER + select BR2_PACKAGE_GLM + select BR2_PACKAGE_ASSIMP + select BR2_PACKAGE_WAYLAND_PROTOCOLS if
BR2_PACKAGE_VKMARK_FLAVOR_WAYLANDpackage/vkmark/Config.in new file +9
-0+ select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_VKMARK_FLAVOR_X11 + select BR2_PACKAGE_XCB_UTIL_WM if BR2_PACKAGE_VKMARK_FLAVOR_X11 + select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_VKMARK_FLAVOR_KMS + help + vmmark is an Vulkan GPU benchmark. + + https://github.com/vkmark/vkmark + +comment "vkmark needs a toolchain w/ dynamic library, threads, wchar, gccQuoted 1 line
= 7, C++"
package/vkmark/Config.in new file +8
-0+ depends on BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \ + !BR2_INSTALL_LIBSTDCPP + +comment "vkmark needs a backend: gbm, wayland or xcb" + depends on !BR2_PACKAGE_VKMARK_FLAVOR_ANYpackage/vkmark/vkmark.hash new file +2
-0@@ -0,0 +1,3 @@ +# Locally computed +sha256 2225ef4e3ba785abcc249664644908b909517cae6c04bf37e9f3d0cf206efe83vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d.tar.gz +sha256
dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551COPYING-LGPL2.1package/vkmark/vkmark.mk new file +34
-1@@ -0,0 +1,34 @@ +################################################################################ +# +# vkmark +# +################################################################################ + +VKMARK_VERSION = 36e7d9b2ecf723e876add65534e95f55ec1bc79d +VKMARK_SITE = $(call github,vkmark,vkmark,$(VKMARK_VERSION)) +VKMARK_LICENSE = LGPL-2.1 +VKMARK_LICENSE_FILES = COPYING-LGPL2.1 +VKMARK_DEPENDENCIES = assimp glm host-pkgconf vulkan-headers vulkan-loader + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_KMS),y) +VKMARK_DEPENDENCIES += libdrm libgbm +VKMARK_CONF_OPTS += -Dkms=true +else +VKMARK_CONF_OPTS += -Dkms=false +endif + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_WAYLAND),y) +VKMARK_DEPENDENCIES += wayland wayland-protocols +VKMARK_CONF_OPTS += -Dwayland=true +else +VKMARK_CONF_OPTS += -Dwayland=false +endif + +ifeq ($(BR2_PACKAGE_VKMARK_FLAVOR_X11),y) +VKMARK_DEPENDENCIES += libxcb xcb-util-wm +VKMARK_CONF_OPTS += -Dxcb=true +else +VKMARK_CONF_OPTS += -Dxcb=false +endif + +$(eval $(meson-package)) --
Quoted 3 lines
2.47.2
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
Quoted 7 lines · Heiko Thiery
Hi Alex,
Am Mi., 11. Juni 2025 um 13:16 Uhr schrieb Alex Bennée <[email protected]>:
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.
Quoted 8 lines
Signed-off-by Alex Bennée <[email protected]>I tried to build vkmark against, now with wayland enabled and I see this:
Program
/usr/bin/wayland-scannerfound: NO../out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/src/meson.build:116:22: ERROR: Program '
/usr/bin/wayland-scanner' not found or not executable
Hmm this seems odd. At least wayland-scanner has a pkgconf variable:
🕙14:51:21 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜ pkg-config --variable=wayland_scanner wayland-scanner /usr/bin/wayland-scanner 🕙14:52:16 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜ ./host/bin/pkgconf --variable=wayland_scanner wayland-scanner /home/alex/lsrc/tests/buildroot.git/builds/x86_64/host/bin/wayland-scanner 🕙14:52:29 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜
And the meson should find it with the normal dependency logic:
wayland_scanner = find_program(wayland_scanner_dep.get_variable('wayland_scanner'))
Quoted 10 lines
A full log can be found at
/srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/buildroot-build/meson-logs/meson-log.txtmake[1]: *** [
package/pkg-generic.mk:263:/srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/.stamp_configured] Error 1
make: *** [Makefile:23:_all] Error 2It looks like here we have something similar like before. It looks under '
/usr/bin/wayland-scanner' but the prefix is missing.
<snip>
Yeah I see the same:
Found pkg-config: YES (/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/pkgconf) 2.3.0 Run-time dependency vulkan found: YES 1.4.317
Library dl found: YES
Found CMake: /usr/bin/cmake (3.31.6)
Run-time dependency glm found: YES 1.0.0
Run-time dependency assimp found: YES 5.4.3
Run-time dependency xcb found: YES 1.15
Run-time dependency xcb-icccm found: YES 0.4.2
Run-time dependency wayland-client found: YES 1.23.1
Run-time dependency wayland-protocols found: YES 1.42
Run-time dependency wayland-scanner found: YES 1.23.1
Run-time dependency libdrm found: YES 2.4.124
Run-time dependency gbm found: YES 25.1.3
Program python3 found: YES (/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/python3) Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Signature · 6 lines
Alex Bennée Virtualisation Tech Lead @ Linaro _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
Hi,
Am Mi., 11. Juni 2025 um 15:55 Uhr schrieb Alex Bennée < [email protected]>:
Quoted 95 lines
Quoted 3 lines · Heiko Thiery
Hi Alex,
Am Mi., 11. Juni 2025 um 13:16 Uhr schrieb Alex Bennée <
Quoted 11 lines
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.Signed-off-by Alex Bennée <[email protected]>I tried to build vkmark against, now with wayland enabled and I see this:
Program
/usr/bin/wayland-scannerfound: NO../out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/src/meson.build:116:22:
ERROR: ProgramQuoted 1 line
'
/usr/bin/wayland-scanner' not found or not executableHmm this seems odd. At least wayland-scanner has a pkgconf variable:
🕙14:51:21 alex@draig:buildroot.git/builds/x86_64 on
add-virtio-vulkan-vkmark:master [$!?⇡]
➜ pkg-config --variable=wayland_scanner wayland-scanner/usr/bin/wayland-scanner
🕙14:52:16 alex@draig:buildroot.git/builds/x86_64 on
add-virtio-vulkan-vkmark:master [$!?⇡]
➜ ./host/bin/pkgconf --variable=wayland_scanner wayland-scanner
/home/alex/lsrc/tests/buildroot.git/builds/x86_64/host/bin/wayland-scanner
🕙14:52:29 alex@draig:buildroot.git/builds/x86_64 on
add-virtio-vulkan-vkmark:master [$!?⇡]
➜And the meson should find it with the normal dependency logic:
wayland_scanner=
find_program(wayland_scanner_dep.get_variable('wayland_scanner'))Quoted 3 lines
A full log can be found at
/srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/buildroot-build/meson-logs/meson-log.txtQuoted 3 lines
make[1]: *** [
package/pkg-generic.mk:263:
/srv/storage/hthiery/sources/sa67/out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/.stamp_configured]Quoted 4 lines
Error 1
make: *** [Makefile:23:_all] Error 2It looks like here we have something similar like before. It looks
under '
/usr/bin/wayland-scanner' but the prefix is missing. <snip>Yeah I see the same:
Found pkg-config: YES
(/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/pkgconf) 2.3.0Run-time dependency vulkan found: YES 1.4.317
Library dl found: YES
Found CMake:
/usr/bin/cmake(3.31.6)Run-time dependency glm found: YES 1.0.0
Run-time dependency assimp found: YES 5.4.3
Run-time dependency xcb found: YES 1.15
Run-time dependency xcb-icccm found: YES 0.4.2
Run-time dependency wayland-client found: YES 1.23.1
Run-time dependency wayland-protocols found: YES 1.42
Run-time dependency wayland-scanner found: YES 1.23.1
Run-time dependency libdrm found: YES 2.4.124
Quoted 9 lines
Run-time dependency gbm found: YES 25.1.3
Program python3 found: YES
(/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/python3)Program
/usr/bin/wayland-scannerfound: YES (/usr/bin/wayland-scanner)
yes .. the program is installed on your machine under /usr/bin/wayland-scanner (from your distro) ... but on my build-server it is not ;-/
Quoted 4 lines
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
In reply to Alex BennéeQuoted 29 lines · Alex Bennée
Quoted 7 lines · Heiko Thiery
Hi Alex,
Am Mi., 11. Juni 2025 um 13:16 Uhr schrieb Alex Bennée <[email protected]>:
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.Quoted 8 lines
Signed-off-by Alex Bennée <[email protected]>I tried to build vkmark against, now with wayland enabled and I see this:
Program
/usr/bin/wayland-scannerfound: NO../out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/src/meson.build:116:22: ERROR: Program '
/usr/bin/wayland-scanner' not found or not executableHmm this seems odd. At least wayland-scanner has a pkgconf variable:
🕙14:51:21 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜ pkg-config --variable=wayland_scanner wayland-scanner /usr/bin/wayland-scanner 🕙14:52:16 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜ ./host/bin/pkgconf --variable=wayland_scanner wayland-scanner /home/alex/lsrc/tests/buildroot.git/builds/x86_64/host/bin/wayland-scanner 🕙14:52:29 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜
Quoted 3 lines
And the meson should find it with the normal dependency logic:
wayland_scanner= find_program(wayland_scanner_dep.get_variable('wayland_scanner'))
wayland_scanner_dep is defined as:
wayland_scanner_dep = dependency('wayland-scanner', required : get_option('wayland') == 'true')
So it is searching for a wayland-scanner compiled for the target, not for one on the host. It should probably changed to
wayland_scanner_dep = dependency('wayland-scanner', required : get_option('wayland') == 'true', native: true)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
Quoted 34 lines · Nicolas Cavallari
Quoted 19 lines · Alex Bennée
Quoted 7 lines · Heiko Thiery
Hi Alex,
Am Mi., 11. Juni 2025 um 13:16 Uhr schrieb Alex Bennée <[email protected]>:
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.Quoted 8 lines
Signed-off-by Alex Bennée <[email protected]>I tried to build vkmark against, now with wayland enabled and I see this:
Program
/usr/bin/wayland-scannerfound: NO../out-weston/build/vkmark-36e7d9b2ecf723e876add65534e95f55ec1bc79d/src/meson.build:116:22: ERROR: Program '
/usr/bin/wayland-scanner' not found or not executableHmm this seems odd. At least wayland-scanner has a pkgconf variable:
🕙14:51:21 alex@draig:buildroot.git/builds/x86_64 on Quoted 11 lines
add-virtio-vulkan-vkmark:master [$!?⇡]
➜ pkg-config --variable=wayland_scanner wayland-scanner/usr/bin/wayland-scanner
🕙14:52:16 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜ ./host/bin/pkgconf --variable=wayland_scanner wayland-scanner/home/alex/lsrc/tests/buildroot.git/builds/x86_64/host/bin/wayland-scanner🕙14:52:29 alex@draig:buildroot.git/builds/x86_64 on add-virtio-vulkan-vkmark:master [$!?⇡] ➜
And the meson should find it with the normal dependency logic:
wayland_scanner=
find_program(wayland_scanner_dep.get_variable('wayland_scanner'))
wayland_scanner_depis defined as:
Quoted 8 lines
wayland_scanner_dep= dependency('wayland-scanner', required :get_option('wayland')== 'true')So it is searching for a wayland-scanner compiled for the target, not for one on the host. It should probably changed to
wayland_scanner_dep= dependency('wayland-scanner', required :get_option('wayland')== 'true', native: true)
That works:
Build-time dependency wayland-scanner found: YES 1.23.1
Run-time dependency libdrm found: YES 2.4.124
Run-time dependency gbm found: YES 25.1.3
Program python3 found: YES (/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/python3)
Program /home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/wayland-scanner found: YES (/home/alex/lsrc/tests/buildroot.git/builds/arm64/host/bin/wayland-scanner)
--8<---------------cut here---------------start------------->8---
modified package/vkmark/0002-meson-fix-cross-compilation-50-75.patch
@@ -1,4 +1,4 @@
-From dc9a0c2d8687501ddf97c97599fa7a69d07d3d3d Mon Sep 17 00:00:00 2001 +From 0cb1a627ccb2da3c0cfd287e407c3e85fb750c94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alex=20Benn=C3=A9e?= <[email protected]>
Date: Fri, 6 Jun 2025 17:48:40 +0100
Subject: [PATCH 2/2] meson: fix cross-compilation (#50, #75)
@@ -6,15 +6,33 @@ MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
-Now we have updated the minimum meson version we can apply sys_root to -the prefix variable to ensure we can find the right vk.xml when -cross-compiling.
+Currently there are a few problems getting in the way of cross +compilation:
+
+ - we need to apply sys_root to the prefix variable to find the right vk.xml
+ - we need to force the native wayland-scanner to generate headers
---
+ meson.build | 4 +++-
src/meson.build | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+diff --git a/meson.build b/meson.build
+index 2d08d53..6cb56f5 100644
+--- a/meson.build
++++ b/meson.build
+@@ -29,7 +29,9 @@ xcb_icccm_dep = dependency('xcb-icccm', required : get_option('xcb') == 'true')
+ wayland_client_dep = dependency('wayland-client', required : get_option('wayland') == 'true')
+ wayland_protocols_dep = dependency('wayland-protocols', version : '>= 1.12',
+ required : get_option('wayland') == 'true')
+-wayland_scanner_dep = dependency('wayland-scanner', required : get_option('wayland') == 'true') ++wayland_scanner_dep = dependency('wayland-scanner',
++ required : get_option('wayland') == 'true',
++ native: true)
+ libdrm_dep = dependency('libdrm', required : get_option('kms') == 'true')
+ gbm_dep = dependency('gbm', required : get_option('kms') == 'true')
+
diff --git a/src/meson.build b/src/meson.build
index a664ddc..b0e8c4a 100644
--- a/src/meson.build
--8<---------------cut here---------------end--------------->8---
Signature · 6 lines
Alex Bennée Virtualisation Tech Lead @ Linaro _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 4/5] package/vkmark: add vkmark benchmarking tool
In reply to Alex BennéeHi Alex,
Thanks for the patch! I have few comments, see below.
Quoted 2 lines · Alex Bennée
We build from a recent HEAD to ensure we have the fixes to better handle the missing
KHR_displayextension.
Trying to compile on a host without the file /usr/share/vulkan/registry/vk.xml
or running the runtime test in the docker reference image is still failing.
The root cause seems to still be:
https://github.com/vkmark/vkmark/issues/75
There is also the following opened PR:
https://github.com/vkmark/vkmark/pull/76
maybe those patches could be added in this new package introduction, in the meantime this gets resolved upstream?
Quoted 4 lines
Signed-off-by Alex Bennée <[email protected]>---
[...]
Quoted 7 lines
.checkpackageignore +0
-0@@ -1203,6 +1203,8 @@
package/valgrind/0001-workaround-SIGSEGV-on-PPC.patchlib_patch.Upstream
Quoted 8 lines
package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patchlib_patch.Upstream
package/vboot-utils/0001-Add-missing-definition-of-MTD_CHAR_MAJOR.patchlib_patch.Upstream
package/vdr/0001-getloadavg.patchlib_patch.Upstream+package/vkmark/0001-meson-replace-deprecated-get_pkgconfig_variable.patchlib_patch.NumberedSubject lib_patch.Upstream+package/vkmark/0002-meson-fix-cross-compilation-50-75.patchlib_patch.NumberedSubject lib_patch.Upstream
Instead of adding exception here, could you make sure the patches files are properly formatted, please? See:
https://buildroot.org/downloads/manual/manual.html#_within_buildroot
Quoted 6 lines
package/vlc/0001-Disable-building-of-statically-linked-vlc-binary.patchlib_patch.Upstream
package/vlc/0002-automake-add-subdir-objects-option.patch
lib_patch.Upstream
package/vlc/0003-build-use-pkg-config-to-get-tremor-libs.patch
lib_patch.Upstream
Could you send an updated patch fixing those issues please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v6 5/5 support/testing: add test for vkmark package
In reply to Alex BennéeTo test vkmark we need a headless Weston compositor so we can run the test without messing around with actual displays. Because to run proper accelerated Vulkan pass-through you need a modern QEMU we also enabled the VULKAN_DRIVER_SWRAST driver. This will allow us to run vkmark under CI and other places where we don't have a very modern host system.
---
v5
- simplify package list
- add SWRAST driver for fall-back
- don't use accelerated device in test, document the difference
v4
- add BR2_PACKAGE_WESTON_SHELL_KIOSK=y
v3
- fix ordering of select/depend as suggested by check-package
- fix some flake8 complaints
v2
- add overlay image
- ensure we expose DISPLAY/DBUS env vars
- shorten runtime of vkmark
--- support/testing/infra/emulator.py | 4 +- support/testing/tests/package/test_vkmark.py | 80 +++++++++++++++++++ .../etc/profile.d/10-xdg-runtime.sh | 1 + 3 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 support/testing/tests/package/test_vkmark.py create mode 100644 support/testing/tests/package/test_vkmark/rootfs-overlay/etc/profile.d/10-xdg-runtime.sh
support/testing/infra/emulator.py +3 -1
@@ -121,7 +121,9 @@ class Emulator(object): host_bin = os.path.join(self.builddir, "host", "bin") br_path = host_bin + os.pathsep + os.environ["PATH"] qemu_env = {"QEMU_AUDIO_DRV": "none", - "PATH": br_path} + "PATH": br_path, + "DBUS_SESSION_BUS_ADDRESS": os.environ["DBUS_SESSION_BUS_ADDRESS"], + "DISPLAY": os.environ["DISPLAY"]} pexpect.run(f"{qemu_cmd[0]} --version", encoding='utf-8', logfile=self.logfile,
support/testing/tests/package/test_vkmark.py new file +80 -0
80 lines not on this page · raw message
support/testing/tests/package/test_vkmark/rootfs-overlay/etc/profile.d/10-xdg-runtime.sh new file +1 -0
@@ -0,0 +1 @@ +export XDG_RUNTIME_DIR=/tmp
Signature · 6 lines
2.47.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 5/5] support/testing: add test for vkmark package
Hi Alex,
Thanks for the patch! I have few comments, see below.
Quoted 37 lines · Alex Bennée
To test vkmark we need a headless Weston compositor so we can run the test without messing around with actual displays. Because to run proper accelerated Vulkan pass-through you need a modern QEMU we also enabled the
VULKAN_DRIVER_SWRASTdriver. This will allow us to run vkmark under CI and other places where we don't have a very modern host system.Signed-off-by Alex Bennée <[email protected]>---
v5
- simplify package list
- add SWRAST driver for fall-back
- don't use accelerated device in test, document the difference
v4
- add BR2_PACKAGE_WESTON_SHELL_KIOSK=y
v3
- fix ordering of select/depend as suggested by check-package
- fix some flake8 complaints
v2
- add overlay image
- ensure we expose DISPLAY/DBUS env vars
- shorten runtime of vkmark--- support/testing/infra/emulator.py | 4 +- support/testing/tests/package/test_vkmark.py | 80 +++++++++++++++++++ .../etc/profile.d/10-xdg-runtime.sh | 1 + 3 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 support/testing/tests/package/test_vkmark.py create mode 100644
support/testing/tests/package/test_vkmark/rootfs-overlay/etc/profile.d/10-xdg-runtime.shsupport/testing/infra/emulator.py +0
-0
support/testing/infra/emulator.py class Emulator(object): · line 127
Quoted 8 lines
support/testing/infra/emulator.py +3
-1@@ -121,7 +121,9 @@ class Emulator(object): host_bin = os.path.join(self.builddir, "host", "bin") br_path = host_bin + os.pathsep + os.environ["PATH"] qemu_env = {"QEMU_AUDIO_DRV": "none", - "PATH": br_path} + "PATH": br_path, + "DBUS_SESSION_BUS_ADDRESS": os.environ["DBUS_SESSION_BUS_ADDRESS"], + "DISPLAY": os.environ["DISPLAY"]}
Could you move those emulator.py changes in a separate patch, please? I am not sure we want to include it for now, while the Vulkan SWRAST part could be merged sooner.
Quoted 9 lines
support/testing/infra/emulator.py +0
-0pexpect.run(f"{qemu_cmd[0]} --version", encoding='utf-8',logfile=self.logfile,
support/testing/tests/package/test_vkmark.py new file +0
-0
support/testing/tests/package/test_vkmark.py line 8
Quoted 8 lines
support/testing/tests/package/test_vkmark.py new file +8
-0@@ -0,0 +1,80 @@ +import os + +import infra.basetest + +VULKANINFO_TIMEOUT = 120 + + +class TestVkMark(infra.basetest.BRTest):
Technically, this test covers mesa3d (vulkan swrast), vkmark, weston, ... But I think the most important configuration being tested is mesa3d enabling a Vulkan (swrast) driver. Other programs are supporting tools.
So, I think it would be better to rename and move this test as a sub-case in support/testing/tests/package/test_mesa3d.py in a class named for example TestMesa3DVulkan.
Quoted 56 lines
support/testing/tests/package/test_vkmark.py new file +11
-0+ config = \ + """ + BR2_aarch64=y + BR2_cortex_a72=y + BR2_TOOLCHAIN_EXTERNAL=y + BR2_OPTIMIZE_S=y + BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y + BR2_ROOTFS_MERGED_USR=y + BR2_LINUX_KERNEL=y + BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
support/testing/tests/package/test_vkmark.py new file +38
-0+ BR2_PACKAGE_DBUS=y + BR2_PACKAGE_LIBMD=y + BR2_PACKAGE_MESA3D=y + BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL=y + BR2_PACKAGE_MESA3D_LLVM=y + BR2_PACKAGE_MESA3D_OPENGL_ES=y + BR2_PACKAGE_MESA3D_VULKAN_DRIVER_SWRAST=y + BR2_PACKAGE_MESA3D_VULKAN_DRIVER_VIRTIO=y + BR2_PACKAGE_UTIL_LINUX_AGETTY=y + BR2_PACKAGE_UTIL_LINUX_BINARIES=y + BR2_PACKAGE_VKMARK=y + BR2_PACKAGE_VULKAN_TOOLS=y + BR2_PACKAGE_WESTON=y + BR2_PACKAGE_WESTON_DEFAULT_DRM=y + BR2_PACKAGE_WESTON_HEADLESS=y + BR2_PACKAGE_WESTON_SHELL_KIOSK=y + BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" + BR2_TARGET_ROOTFS_EXT2=y + BR2_TARGET_ROOTFS_EXT2_SIZE="250M" + BR2_ROOTFS_OVERLAY="{}" + """.format( + infra.filepath("tests/package/test_vkmark/rootfs-overlay")) + + def login(self): + img = os.path.join(self.builddir, "images", "rootfs.ext2") + kern = os.path.join(self.builddir, "images", "Image") + + # We have built the image to contain both the SWRAST and + # VIRTIO vulkan drivers. However to test with proper pass + # through you need a modern QEMU with Venus support. + # + # That would modify the command line to: + # -display dbus,gl=on + # -device virtio-gpu-gl-pci,hostmem=4G,blob=on,venus=on + # + self.emulator.boot(arch="aarch64", + kernel=kern, + kernel_cmdline=["root=/dev/vdaconsole=ttyAMA0"],
+ options=["-M", "virt", "-cpu",
"cortex-a72", "-m", "512",support/testing/tests/package/test_vkmark.py new file +2
-0+ "-drive", +f"file={img},if=virtio,format=raw",
support/testing/tests/package/test_vkmark.py line 63
Quoted 3 lines
support/testing/tests/package/test_vkmark.py new file +3
-0+ "-display", "egl-headless", + "-display", "dbus", + "-device", "virtio-gpu-pci"])
I don't think we will be able to keep those "-display" options, as they need to be paired with either VNC or SPICE displays. I will test that in the updated series fixing the vkmark build issue in the docker reference image. Maybe they could be moved in the comment just before, to allow doing the virtio case by starting qemu outside the Buildroot run-tests script.
What do you think?
Quoted 28 lines
support/testing/tests/package/test_vkmark.py new file +7
-0+ + self.emulator.login() + + def test_run(self): + self.login() + + # The test case verifies that Vulkan is enabled and vkmark canrun
+ cmd = "weston -B headless --renderer gl --shell kiosk --
vkmark -b :duration=1.0"support/testing/tests/package/test_vkmark.py new file +9
-0+ output, exit_code = self.emulator.run(cmd, VULKANINFO_TIMEOUT) + self.assertEqual(exit_code, 0) + + # check we got to the end and emitted a score + found_vkmark = False + for line in output: + found_vkmark |= "vkmark Score:" in line + + self.assertEqual(found_vkmark, True)(quoted diff) +0
-0
b/support/testing/tests/package/test_vkmark/rootfs-overlay/etc/profile.d/10-xdg-runtime.sh(quoted diff) +1
-1@@ -0,0 +1 @@ +export XDG_RUNTIME_DIR=/tmp --
Quoted 1 line
2.47.2
Could you send an updated patch addressing those comments, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): 20250611111640.702572-2-alex.bennee__11620.3121536941$1749640635$gmane$org@linaro.org
Re: [Buildroot] [PATCH v6 1/5] package/{mesa3d, mesa3d-headers}: bump version to 25.1.3
Am Wed, 11 Jun 2025 12:16:34 +0100 schrieb Alex Bennée:
Review
Quoted 2 lines
(quoted diff) +1
-1-MESA3D_VERSION = 25.0.6 +MESA3D_VERSION = 25.1.3
Hi Alex,
the -next branch, to be merged with master, already contains 25.1.1:
https://git.busybox.net/buildroot/commit/?h=next&id=2f7bcc7dfc521772a395aba084eba31e6622e94d
Regards, Bernd
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v6 1/5] package/{mesa3d, mesa3d-headers}: bump version to 25.1.3
Quoted 9 lines · Bernd Kuhls
Am Wed, 11 Jun 2025 12:16:34 +0100 schrieb Alex Bennée:
Review
Quoted 2 lines
(quoted diff) +1
-1-MESA3D_VERSION = 25.0.6 +MESA3D_VERSION = 25.1.3Hi Alex,
the -next branch, to be merged with master, already contains 25.1.1:
https://git.busybox.net/buildroot/commit/?h=next&id=2f7bcc7dfc521772a395aba084eba31e6622e94d
I was debugging another failure so wanted to make sure I was up to date. It turned out that the problem was elsewhere. With that said it looks like 25.1.2 has a fair number of VirtIO and Vulkan fixes in it and 25.1.3 was a hotfix for 25.1.2.
https://docs.mesa3d.org/relnotes/25.1.2.html
https://docs.mesa3d.org/relnotes/25.1.3.html
It's easy enough to update later though. Ideally we can get the cross-compile fixes for vkmark upstream and then re-submit.
Signature · 6 lines
Alex Bennée Virtualisation Tech Lead @ Linaro _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot