From 3b18f49b8b12fb628be5abdd4e476344936e554a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20K=C3=B6sebay?= Date: Thu, 3 Dec 2026 11:45:57 +0100 Subject: [PATCH 1/2] mesa: build the Vulkan drivers without asserts The Vulkan build used debugoptimized with asserts on, so every assert in the hot paths of the Imagination driver (G5P, G9P, PCO) ran in the package users get. The production hits are queries and invariant checks; none of them carries a side effect the driver needs, so -Db_ndebug=true drops them and keeps the debug info and optimisation level. The OpenGL build already used it. Assisted-by: LLM --- packages/mesa/arch/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mesa/arch/PKGBUILD b/packages/mesa/arch/PKGBUILD index b4d3097..2b9f752 100644 --- a/packages/mesa/arch/PKGBUILD +++ b/packages/mesa/arch/PKGBUILD @@ -60,7 +60,7 @@ build() { -Dvideo-codecs= -Dtools= -Dvulkan-layers= -Dbuild-tests=false) # The Vulkan drivers, with the options they have been tested with on the # devices: imagination (the PowerVR GPUs) and asahi (Honeykrisp, the A12's G11). - meson setup "mesa-${_commit}" build-vulkan "${common[@]}" --buildtype=debugoptimized \ + meson setup "mesa-${_commit}" build-vulkan "${common[@]}" --buildtype=debugoptimized -Db_ndebug=true \ -Dplatforms=x11,wayland -Dvulkan-drivers=imagination,asahi -Dgallium-drivers= \ -Dopengl=false -Degl=disabled -Dgbm=disabled -Dglx=disabled -Dgles2=disabled ninja -C build-vulkan From b0f74cce6820aba8514a506a325b6d301ecc86a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20K=C3=B6sebay?= Date: Thu, 3 Dec 2026 12:05:40 +0100 Subject: [PATCH 2/2] mesa: raise pkgrel for the build without asserts Assisted-by: LLM --- packages/mesa/arch/PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mesa/arch/PKGBUILD b/packages/mesa/arch/PKGBUILD index 2b9f752..9eec694 100644 --- a/packages/mesa/arch/PKGBUILD +++ b/packages/mesa/arch/PKGBUILD @@ -30,7 +30,7 @@ epoch=1 # Mesa's version, the commit's number on the fork's main branch (so that a # newer commit is a newer package), and the commit. pkgver=27.0.0.5 -pkgrel=1 +pkgrel=2 pkgdesc="Mesa from the OrchardLinux fork: OpenGL through Zink or in software, the asahi drivers (OpenGL and Vulkan) for the Apple A12 GPU, the Vulkan driver for the Apple PowerVR GPUs, and the desktop's GPU probe" url="https://github.com/OrchardLinux/mesa" license=('MIT')