Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions x11-packages/vkmark/0003-vulkan-headers-1.4.333.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ From: Philipp Zabel <p.zabel@pengutronix.de>
Date: Wed, 10 Dec 2025 10:59:49 +0100
Subject: [PATCH 1/2] core: Register custom dispatcher with isDispatchLoader

Since Vulkan 1.4.333, custom dispatch loaders must be registered
with isDispatchLoader to be recognized.
From Vulkan 1.4.333 through 1.4.337, custom dispatch loaders must be
registered with isDispatchLoader to be recognized. Vulkan 1.4.338 and
newer detect supported commands directly on the dispatcher instead.
---
src/vulkan_state.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
Expand All @@ -17,7 +18,7 @@ index a36b299..8470951 100644

}

+#if VK_HEADER_VERSION >= 333
+#if VK_HEADER_VERSION >= 333 && VK_HEADER_VERSION < 338
+namespace vk::detail {
+
+template <>
Expand All @@ -38,8 +39,9 @@ From: Philipp Zabel <p.zabel@pengutronix.de>
Date: Wed, 10 Dec 2025 10:59:49 +0100
Subject: [PATCH 2/2] kms: Register custom dispatcher with isDispatchLoader

Since Vulkan 1.4.333, custom dispatch loaders must be registered
with isDispatchLoader to be recognized.
From Vulkan 1.4.333 through 1.4.337, custom dispatch loaders must be
registered with isDispatchLoader to be recognized. Vulkan 1.4.338 and
newer detect supported commands directly on the dispatcher instead.
---
src/ws/kms_window_system.cpp | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
Expand All @@ -54,7 +56,7 @@ index 4bf7838..1bc0458 100644

+}
+
+#if VK_HEADER_VERSION >= 333
+#if VK_HEADER_VERSION >= 333 && VK_HEADER_VERSION < 338
+namespace vk::detail {
+
+template <>
Expand Down
9 changes: 4 additions & 5 deletions x11-packages/vkmark/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_LICENSE_FILE="COPYING-LGPL2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2025.01"
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL="https://github.com/vkmark/vkmark/archive/refs/tags/${TERMUX_PKG_VERSION}/vkmark-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=1ae362844344d0f9878b7a3f13005f77eae705108892a4e8abf237d452d37edc
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_DEPENDS="assimp, libc++, libxcb, vulkan-loader-generic, xcb-util-wm"
TERMUX_PKG_BUILD_DEPENDS="glm, vulkan-headers"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dxcb=true -Dkms=false"
TERMUX_PKG_BUILD_DEPENDS="libwayland-cross-scanner"
TERMUX_PKG_DEPENDS="assimp, libc++, libwayland, libxcb, vulkan-loader-generic, xcb-util-wm"
TERMUX_PKG_BUILD_DEPENDS="glm, libwayland-cross-scanner, libwayland-protocols, vulkan-headers"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dxcb=true -Dwayland=true -Dkms=false"

termux_step_pre_configure() {
termux_setup_wayland_cross_pkg_config_wrapper
Expand Down