Skip to content

Commit 4a8bca0

Browse files
author
Ashwin Prabhakar
committed
vkmark: add recipe for Vulkan graphics benchmark
Add an initial recipe for vkmark to enable Vulkan performance testing. This tool allows for benchmarking various Vulkan rendering scenes and can be used to validate graphics drivers on target hardware. Signed-off-by: Ashwin Prabhakar <ashwin.prabhakar@qti.qualcomm.com> vkmark: fix build parse errors by making XCB support conditional The current default PACKAGECONFIG explicitly enforces 'xcb'. This causes build failures on distributions (like Yoe) that lack 'x11' in their DISTRO_FEATURES, as 'libxcb' and 'xcb-util-wm' are skipped during parsing. Fix this by dynamically adding 'xcb' to PACKAGECONFIG only when 'x11' is present in DISTRO_FEATURES. Signed-off-by: Ashwin Prabhakar <ashwin.prabhakar@qti.qualcomm.com>
1 parent edc5b55 commit 4a8bca0

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
SUMMARY = "Vulkan benchmark"
2+
DESCRIPTION = "vkmark is an extensible Vulkan benchmarking suite with targeted, configurable scenes."
3+
HOMEPAGE = "https://github.com/vkmark/vkmark"
4+
5+
LICENSE = "LGPL-2.1-or-later"
6+
LIC_FILES_CHKSUM = "file://COPYING-LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
7+
8+
SRC_URI = "git://github.com/vkmark/vkmark.git;protocol=https;branch=master"
9+
SRCREV = "83a128d65b1adddfacb4fa2e555a7e90817a7266"
10+
11+
PV = "2025.01+git${SRCPV}"
12+
13+
inherit meson pkgconfig
14+
15+
DEPENDS = " \
16+
assimp \
17+
glm \
18+
vulkan-loader \
19+
"
20+
21+
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xcb', '', d)} wayland kms"
22+
23+
PACKAGECONFIG[xcb] = "-Dxcb=true,-Dxcb=false,libxcb xcb-util-wm"
24+
PACKAGECONFIG[wayland] = "-Dwayland=true,-Dwayland=false,wayland wayland-native wayland-protocols"
25+
PACKAGECONFIG[kms] = "-Dkms=true,-Dkms=false,libdrm virtual/libgbm"
26+
27+
FILES:${PN} += " \
28+
${libdir}/vkmark/*.so \
29+
${datadir}/vkmark \
30+
${mandir}/man1/vkmark.1* \
31+
"

0 commit comments

Comments
 (0)