Skip to content

Conversation

@lfdevs
Copy link
Owner

@lfdevs lfdevs commented Jan 9, 2026

Original MR by Rob Clark: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39167

Note: This PR uses code from a draft, unmerged MR in Mesa upstream. The build artifacts are for testing purposes only.

Changelog

  • Add experimental Turnip support for Adreno 840: e2cb6e2
  • Try to fix unofficial support for Adreno 710 and Adreno 720 to prevent build errors: d4454a7
  • Add unofficial Turnip support for Adreno 830: 9105a67

Installation and Usage Instructions

You can find the build artifacts here: https://github.com/lfdevs/termux-packages/actions/runs/21068347012?pr=2#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.0.0_aarch64.deb and mesa-vulkan-icd-freedreno_26.0.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.0.0_aarch64.deb` and `mesa-vulkan-icd-freedreno_26.0.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.0.0_aarch64.deb ./mesa-vulkan-icd-freedreno_26.0.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

lfdevs added 2 commits January 9, 2026 16:55
Try to fix unofficial support for Adreno 710 and Adreno 720 to prevent build errors.
The added values `tile_max_w` and `tile_max_h` were derived by analogy with the Adreno 730 and have not been empirically validated.
@lfdevs
Copy link
Owner Author

lfdevs commented Jan 20, 2026

Benchmarks

Overview

Device Model SoC GPU vkmark
OnePlus 15 PLK110 Qualcomm Snapdragon 8 Elite Gen 5 Adreno 840 8509
REDMI K80 Pro 24122RKC7C Qualcomm Snapdragon 8 Elite Adreno 830 9058
Xiaomi Pad 6 Pro 23046RP50C Qualcomm Snapdragon 8+ Gen 1 Adreno 730 4220

PS: Since using the current Turnip + Zink in Termux Native causes glmark2 and glmark2-es2 frame rates to fluctuate abnormally between 60–120 FPS—likely due to vertical sync interference—the scores for glmark2 and glmark2-es2 are not listed here.

Detailed test results

Adreno 840

vkmark
=======================================================
    vkmark 2025.01
=======================================================
    Vendor ID:      0x5143
    Device ID:      0x44050A31
    Device Name:    Adreno (TM) 840
    Driver Version: 105263203
    Device UUID:    e704b27c67dbaf2f8d56be06a8086c7b
=======================================================
[vertex] device-local=true: FPS: 7266 FrameTime: 0.138 ms
[vertex] device-local=false: FPS: 7467 FrameTime: 0.134 ms
[texture] anisotropy=0: FPS: 9959 FrameTime: 0.100 ms
[texture] anisotropy=16: FPS: 10016 FrameTime: 0.100 ms
[shading] shading=gouraud: FPS: 8515 FrameTime: 0.117 ms
[shading] shading=blinn-phong-inf: FPS: 8460 FrameTime: 0.118 ms
[shading] shading=phong: FPS: 8481 FrameTime: 0.118 ms
[shading] shading=cel: FPS: 8462 FrameTime: 0.118 ms
[effect2d] kernel=edge: FPS: 6990 FrameTime: 0.143 ms
[effect2d] kernel=blur: FPS: 11384 FrameTime: 0.088 ms
[desktop] <default>: FPS: 10803 FrameTime: 0.093 ms
[cube] <default>: FPS: 5975 FrameTime: 0.167 ms
[clear] <default>: FPS: 6849 FrameTime: 0.146 ms
=======================================================
                                   vkmark Score: 8509
=======================================================

Adreno 830

vkmark
=======================================================
    vkmark 2025.01
=======================================================
    Vendor ID:      0x5143
    Device ID:      0x44050001
    Device Name:    Adreno (TM) 830
    Driver Version: 105263203
    Device UUID:    db70b48ac4b997fab75c983e4c3d45f5
=======================================================
[vertex] device-local=true: FPS: 9007 FrameTime: 0.111 ms
[vertex] device-local=false: FPS: 9585 FrameTime: 0.104 ms
[texture] anisotropy=0: FPS: 9322 FrameTime: 0.107 ms
[texture] anisotropy=16: FPS: 9711 FrameTime: 0.103 ms
[shading] shading=gouraud: FPS: 9828 FrameTime: 0.102 ms
[shading] shading=blinn-phong-inf: FPS: 9888 FrameTime: 0.101 ms
[shading] shading=phong: FPS: 10024 FrameTime: 0.100 ms
[shading] shading=cel: FPS: 10074 FrameTime: 0.099 ms
[effect2d] kernel=edge: FPS: 7392 FrameTime: 0.135 ms
[effect2d] kernel=blur: FPS: 8792 FrameTime: 0.114 ms
[desktop] <default>: FPS: 9620 FrameTime: 0.104 ms
[cube] <default>: FPS: 7365 FrameTime: 0.136 ms
[clear] <default>: FPS: 7152 FrameTime: 0.140 ms
=======================================================
                                   vkmark Score: 9058
=======================================================

Adreno 730

vkmark
=======================================================
    vkmark 2025.01
=======================================================
    Vendor ID:      0x5143
    Device ID:      0x7030002
    Device Name:    Turnip Adreno (TM) 725
    Driver Version: 105263203
    Device UUID:    8a3cf3a933c2a246d115af0ed2b1f27b
=======================================================
[vertex] device-local=true: FPS: 5326 FrameTime: 0.188 ms
[vertex] device-local=false: FPS: 4268 FrameTime: 0.234 ms
[texture] anisotropy=0: FPS: 4313 FrameTime: 0.232 ms
[texture] anisotropy=16: FPS: 4157 FrameTime: 0.241 ms
[shading] shading=gouraud: FPS: 4232 FrameTime: 0.236 ms
[shading] shading=blinn-phong-inf: FPS: 4286 FrameTime: 0.233 ms
[shading] shading=phong: FPS: 4217 FrameTime: 0.237 ms
[shading] shading=cel: FPS: 4225 FrameTime: 0.237 ms
[effect2d] kernel=edge: FPS: 3988 FrameTime: 0.251 ms
[effect2d] kernel=blur: FPS: 3686 FrameTime: 0.271 ms
[desktop] <default>: FPS: 4219 FrameTime: 0.237 ms
[cube] <default>: FPS: 4064 FrameTime: 0.246 ms
[clear] <default>: FPS: 3881 FrameTime: 0.258 ms
=======================================================
                                   vkmark Score: 4220
=======================================================

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