Repository navigation
Conversation
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
Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Mesa package's Vulkan build used
debugoptimizedwith asserts on, so every assert in the Imagination driver's hot paths (G5P, G9P, PCO) ran in the package users get. We read through those asserts: the ones hit in normal use are queries and invariant checks, and none carries a side effect the driver needs.-Db_ndebug=truedrops them and keeps debug info and-O2. The OpenGL build already used it.The flag covers the whole Vulkan build, so it applies to asahi (Honeykrisp) as well, as it does in Arch's own mesa package. We only checked the Imagination asserts.
Tested on the iPad 5 (j71t) in the Mesa trial package installed since 2026-12-02, together with the Mesa per-job overhead changes. Offscreen glmark2 (build, texture, terrain at 1536×2048) is within noise: GPU-bound, stock 208 vs asserts off 209. Shell start-up CPU is about 1–2 % lower. No new failures in the desktop session or in Firefox.
How to test
On a stock Orchard install, with the mesa package built from this recipe:
pacman -Qi mesa | grep Version glmark2-es2-wayland --off-screen -b build:duration=20 -b texture:duration=20 -b terrain:duration=20 vkcube --c 600Expected: the same scores as before (within noise), nothing new in the journal. A10 and the A12 use the same package: enabled, untested on our side.