Skip to content

bump(main/mesa): 26.1.0-devel-20260410#9

Draft
lfdevs wants to merge 2 commits intomasterfrom
dev/mesa/latest
Draft

bump(main/mesa): 26.1.0-devel-20260410#9
lfdevs wants to merge 2 commits intomasterfrom
dev/mesa/latest

Conversation

@lfdevs
Copy link
Copy Markdown
Owner

@lfdevs lfdevs commented Apr 9, 2026

Changelog

Installation and Usage Instructions

You can find the build artifacts here: https://github.com/lfdevs/termux-packages/actions/runs/24277350957?pr=9#artifacts

Specifically, look for files in the Artifacts section that start with debs, such as debs-aarch64-xxxxxx. After downloading and extracting it, you’ll obtain mesa_26.1.0_aarch64.deb and mesa-vulkan-icd-freedreno_26.1.0_aarch64.deb.

You can refer to the following commands to enable hardware acceleration using Turnip driver inside a Termux native container:

# Copy or download `mesa_26.1.0_aarch64.deb` and `mesa-vulkan-icd-freedreno_26.1.0_aarch64.deb` into the current directory

# Install required packages
pkg update && pkg upgrade
pkg install x11-repo
pkg install termux-x11-nightly
pkg install ./mesa_26.1.0_aarch64.deb ./mesa-vulkan-icd-freedreno_26.1.0_aarch64.deb
# Set environment variables
export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=zink
# Start Termux:X11
kill -9 $(pgrep -f "termux.x11") 2>/dev/null
termux-x11 :0 -dpi 96 &

# Optional steps below
# Install related utilities
pkg install mesa-demos vulkan-tools vkmark glmark2
# Check Vulkan info
vulkaninfo --summary
# Check GLX info
glxinfo -B
# Run performance benchmarks
vkmark && glmark2 && glmark2-es2

- Sync with upstream: https://gitlab.freedesktop.org/mesa/mesa/-/commit/166c68914b494c45fbd9e4a736a0fe5867581b6a
- Remove unofficial support for Adreno 830, as upstream has added official support: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39874
- Remove unofficial support for Adreno 829, as upstream has added official support: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40655
- Remove patch "0019-UBWC_5-and-UBWC_6-support.patch", as upstream has merged it: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40758
- Update unofficial support for Adreno 810/825 from whitebelyash's patch: whitebelyash/mesa-tu8@e010ccc
@hansm629
Copy link
Copy Markdown

@lfdevs
Hello sir!
Thank you for quickly reflecting the latest upstream build!

Unfortunately, it seems it does not work on the Adreno 840.

The previous pull request build, which is now closed, works fine, but

the latest pull request build does not work as shown below.

Please check into this~
thank you!

╭─[hsm 󰀲 localhost] [~]
╰─❯ vkcube
Selected WSI platform: xcb
Selected GPU 0: Adreno (TM) 840, type: IntegratedGpu
╭─[hsm 󰀲 localhost] [~]
╰─❯ glmark2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa
    GL_RENDERER:    zink Vulkan 1.4(Adreno (TM) 840 (MESA_TURNIP))
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.1.0-devel (git-63d55d84a3)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 596 FrameTime: 1.679 ms
[build] use-vbo=true: FPS: 687 FrameTime: 1.458 ms
=======================================================
                                  glmark2 Score: 640 
=======================================================
╭─[hsm 󰀲 localhost] [~]
╰─❯ dpkg -i '/data/data/com.termux/files/home/Downloads/debs/mesa-vulkan-icd-freedreno_26.1.0_aarch64.deb' 
(Reading database ... 187132 files and directories currently installed.)
Preparing to unpack .../mesa-vulkan-icd-freedreno_26.1.0_aarch64.deb ...
Unpacking mesa-vulkan-icd-freedreno (26.1.0) over (26.1.0) ...
Setting up mesa-vulkan-icd-freedreno (26.1.0) ...
╭─[hsm 󰀲 localhost] [~]
╰─❯ vkcube
Selected WSI platform: xcb
Selected GPU 0: Adreno (TM) 840, type: IntegratedGpu
[Vulkan Loader] ERROR:          vkGetDeviceQueue: Invalid device [VUID-vkGetDeviceQueue-device-parameter]
Aborted                    vkcube
╭─[hsm 󰀲 localhost] [~]
╰─❯ glmark2
glx: failed to create drisw screen
failed to load driver: zink
glx: failed to create drisw screen
failed to load driver: zink
glx: failed to create drisw screen
failed to load driver: zink
Error: glXChooseFBConfig() failed
Error: Error: Couldn't get GL visual config!
Error: main: Could not initialize canvas

… is missing

Note: This is a temporary fix patch, and upstream will fix this issue soon:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40823

After MR !37802, tu_autotune initialization treats missing CP perf counters
as a fatal error and returns VK_ERROR_INITIALIZATION_FAILED. On newer A8xx
devices where perf counter mappings may be incomplete, this breaks device
creation and causes all Vulkan apps (including vulkaninfo) to fail.

Make preempt latency tracking initialization degrade gracefully instead of
failing device creation:
- only probe CP counters when preempt tracking is supported
- if CP group/countables/counters are missing, log a warning
- disable PREEMPT_OPTIMIZE in both supported and active autotune config
- continue initialization with VK_SUCCESS

This keeps optional preempt optimization disabled on unsupported hardware
while preserving normal Vulkan device creation.
@lfdevs
Copy link
Copy Markdown
Owner Author

lfdevs commented Apr 11, 2026

I also encountered some issues when testing with Adreno 830 and reported them upstream: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15261 They should fix this problem in the future.

The issue with Adreno 840 might be the same one. I also submitted a temporary fix patch, which might work: b1bce18

After the Actions build is complete, you can try it: https://github.com/lfdevs/termux-packages/actions/runs/24277350957?pr=9#artifacts

@hansm629
Copy link
Copy Markdown

@lfdevs
It works well with the new commit!

I look forward to the new upstream after the issue is fixed!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants