mesa-for-android-container icon indicating copy to clipboard operation
mesa-for-android-container copied to clipboard

Turinp is not working.

Open hansm629 opened this issue 8 months ago • 10 comments

Hello, Sir

I installed the unpatched turnip-26.1.0-devel-20260208 on PRoot-Distro Debian 13 (sid repo), but it is not working.

Freedreno kgsl works fine, but

only Turnip is not working.

Is there something I might have missed?

The device is the Galaxy S26 Ultra (Adreno 840).

╭─[hsm @ localhost] [~]
╰─❯ glxinfo -B
name of display: :0
MESA-LOADER: failed to retrieve device information
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 840 (0xffffffff)
    Version: 26.1.0
    Accelerated: yes
    Video memory: 15120MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 15120 MB, largest block: 15120 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 15120 MB, largest block: 15120 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 15120 MB, largest block: 15120 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 15120 MB
    Total available memory: 15120 MB
    Currently available dedicated video memory: 15120 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 840
OpenGL core profile version string: 4.6 (Compatibility Profile) Mesa 26.1.0-devel (git-bb5e2bf00a)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: no-error
OpenGL core profile profile mask: compatibility profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.1.0-devel (git-bb5e2bf00a)
OpenGL shading language version string: 4.60
OpenGL context flags: no-error
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.1.0-devel (git-bb5e2bf00a)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
╭─[hsm @ localhost] [~]
╰─❯ glmark2
MESA-LOADER: failed to retrieve device information
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    Adreno (TM) 840
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.1.0-devel (git-bb5e2bf00a)
    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: 1497 FrameTime: 0.668 ms
[build] use-vbo=true: FPS: 1553 FrameTime: 0.644 ms
[texture] texture-filter=nearest: FPS: 1477 FrameTime: 0.677 ms
=======================================================
                                  glmark2 Score: 1508 
=======================================================
╭─[hsm @ localhost] [~]
╰─❯ vkcube
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
Selected WSI platform: xcb
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
vkEnumeratePhysicalDevices reported zero accessible devices.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.

╭─[hsm @ localhost] [~]
╰─❯ vulkaninfo
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_gfxstream.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_gfxstream.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_nouveau.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_nouveau.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_panfrost.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_panfrost.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_radeon.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_radeon.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_virtio.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_virtio.so. Ignoring this JSON
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
ERROR: [Loader Message] Code 0 : dlopen failed: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace "(default)"
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libvulkan_broadcom.so" not found
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON libvulkan_broadcom.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : dlopen failed: library "libVkLayer_MESA_device_select.so" not found
WARNING: [../src/src/gallium/frontends/lavapipe/lvp_device.c:1412] Code 0 : VK_ERROR_OUT_OF_HOST_MEMORY
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs: Call to 'vkEnumeratePhysicalDevices' in ICD /data/data/com.termux/files/usr/lib/libvulkan_lvp.so failed with error code VK_ERROR_OUT_OF_HOST_MEMORY
ERROR at /home/builder/.termux-build/vulkan-tools/src/vulkaninfo/./vulkaninfo.h:249:vkEnumeratePhysicalDevices failed with ERROR_OUT_OF_HOST_MEMORY

hansm629 avatar Apr 04 '26 12:04 hansm629

Does this version run normally under the Debian 13 stable distribution? Because the CI uses images and toolchains from the stable distribution during building, the build artifacts might encounter dependency issues when running under sid.

And the path /data/data/com.termux appeared many times in the logs, so I speculate that this might also be related to Termux's proot-distro not yet being fully adapted to sid.

lfdevs avatar Apr 04 '26 13:04 lfdevs

@lfdevs After reinstalling Debian 13, I will test it again without the sid repo and provide a comment!

Thank you!

hansm629 avatar Apr 04 '26 13:04 hansm629

BTW, I highly recommend using the 26.1.0-devel-20260404 version I built yesterday: https://github.com/lfdevs/mesa-for-android-container/releases/tag/mesa-26.1.0-devel-20260404 https://github.com/lfdevs/mesa-for-android-container/releases/tag/turnip-26.1.0-devel-20260404

Compared to two months ago, upstream seems to support more features now. I just tested it using Adreno 730 & 830, and it can even successfully run the Vulkan backend of Blender v5.1.0 on PRoot.

lfdevs avatar Apr 04 '26 17:04 lfdevs

@lfdevs Hello! sir

I have tested again with the newly built packages you provided!

It seems that only turnip is still not working, as shown below!

However, Freedreno KGSL works fine.

Image
╭─[hsm @ localhost] [~]
╰─❯ vkcube
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface instance extension.

This indicates that no compatible Vulkan installable client driver (ICD) is present or that the system is not configured to present to the screen. 

╭─[hsm @ localhost] [~]
╰─❯ vulkaninfo
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
WARNING: linker: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" ("/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so") needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64:/system_ext/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system_ext/lib64:/system/framework:/system/app:/system/priv-app:/system_ext/framework:/system_ext/app:/system_ext/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/system/vendor/framework:/system/vendor/app:/system/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/product/framework:/product/app:/product/priv-app:/data:/mnt/expand:/apex/com.android.runtime/lib64/bionic:/system/lib64/bootstrap"]
ERROR: [Loader Message] Code 0 : dlopen failed: library "/usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so" needed or dlopened by "/data/data/com.termux/files/usr/lib/libvulkan.so.1.4.348" is not accessible for the namespace "(default)"
ERROR: [Loader Message] Code 0 : loader_icd_scan: Failed loading library associated with ICD JSON /usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so. Ignoring this JSON
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /home/builder/.termux-build/vulkan-tools/src/vulkaninfo/./vulkaninfo.h:611:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
╭─[hsm @ localhost] [~]
╰─❯ glmark2
MESA-LOADER: failed to retrieve device information
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    Adreno (TM) 840
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.1.0-devel (git-dee0d39008)
    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: 1563 FrameTime: 0.640 ms
[build] use-vbo=true: FPS: 1665 FrameTime: 0.601 ms
[texture] texture-filter=nearest: FPS: 1616 FrameTime: 0.619 ms
[texture] texture-filter=linear: FPS: 1629 FrameTime: 0.614 ms
[texture] texture-filter=mipmap: FPS: 1636 FrameTime: 0.611 ms
=======================================================
                                  glmark2 Score: 1620 
=======================================================

╭─[hsm @ localhost] [~]
╰─❯ termux-info
Termux Variables:
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP__APK_FILE=/data/app/~~-uGV_hWMWBbrY0JVhfSsOA==/com.termux-hh9mjQkH8jpYVqdJUi-FOA==/base.apk
TERMUX_APP__APK_RELEASE=GITHUB
TERMUX_APP__APP_VERSION_CODE=1022
TERMUX_APP__APP_VERSION_NAME=0.119.0-beta.3
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__IS_DEBUGGABLE_BUILD=true
TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__PACKAGE_NAME=com.termux
TERMUX_APP__PID=10700
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c144,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_APP__TARGET_SDK=28
TERMUX_VERSION=0.119.0-beta.3
TERMUX__APPS_DIR=/data/user/0/com.termux/termux/apps
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c144,c257,c512,c768
TERMUX__UID=10400
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://mirror.jeonnam.school/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://mirror.jeonnam.school/termux/termux-x11 x11 main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
Updatable packages:
All packages up to date
termux-tools version:
1.45.0
Android version:
16
Kernel build information:
Linux localhost 6.12.30-android16-5-p23f72c2-abogkiS948NKSU1AZCF-4k #1 SMP PREEMPT Sun Mar 15 04:30:34 UTC 2026 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S948N
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a
SUPPORTED_32_BIT_ABIS: 
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1001
com.termux.x11 versionCode:15

hansm629 avatar Apr 06 '26 13:04 hansm629

I re-tested on an Adreno 830 device using proot-distro, and below is the testing process:

testing process
# Execute in Termux:
pkg upgrade -y
pkg install -y x11-repo proot-distro
pkg install -y termux-x11-nightly pulseaudio
proot-distro install debian
# Log in to PRoot, create a sudo account and then log out
proot-distro login debian --shared-tmp

# Add a sudo account in PRoot (root):
apt update && apt upgrade -y
apt install -y sudo adduser
adduser user
vim /etc/sudoers
# Add this line to the end of the file: user ALL=(ALL:ALL) ALL

# Start PRoot script:
pkill -f "com.termux.x11.Loader"
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :0 >/dev/null &
proot-distro login debian --shared-tmp --user user

# Execute in PRoot (sudo account):
sudo apt update && sudo apt upgrade -y
sudo apt install -y bash-completion wget mesa-utils vulkan-tools glmark2-x11 glmark2-es2-x11
wget https://github.com/lfdevs/mesa-for-android-container/releases/download/mesa-26.1.0-devel-20260404/mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz https://github.com/lfdevs/mesa-for-android-container/releases/download/turnip-26.1.0-devel-20260404/turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz
sudo tar -zxvf mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz -C /
sudo tar -zxvf turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz -C /
rm mesa-for-android-container_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz turnip_26.1.0-devel-20260404_debian_trixie_arm64.tar.gz
sudo ldconfig

# Test drivers:
export XDG_RUNTIME_DIR=/tmp DISPLAY=:0 PULSE_SERVER=127.0.0.1 MESA_LOADER_DRIVER_OVERRIDE=kgsl
glxinfo -B
vulkaninfo --summary
glmark2
vkcube
vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.4.309


Instance Extensions: count = 24
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_EXT_headless_surface                : extension revision 1
VK_EXT_surface_maintenance1            : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 5
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 2
--------------------------
VK_LAYER_MESA_device_select Linux device selection layer 1.4.303  version 1
VK_LAYER_MESA_overlay       Mesa Overlay layer           1.4.303  version 1

Devices:
========
GPU0:
	apiVersion         = 1.4.348
	driverVersion      = 26.0.99
	vendorID           = 0x5143
	deviceID           = 0x44050001
	deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
	deviceName         = Adreno (TM) 830
	driverID           = DRIVER_ID_MESA_TURNIP
	driverName         = turnip Mesa driver
	driverInfo         = Mesa 26.1.0-devel (git-ab5f386b2e)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23fee0c1-517f-d195-ef42-32c7ead0b1e8
GPU1:
	apiVersion         = 1.4.305
	driverVersion      = 0.0.1
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 19.1.7, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.0.7-2 (LLVM 19.1.7)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e30-2e37-2d3200000000
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000

The only obvious error during the testing process was xkbcomp, but it does not affect Turnip.

"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning: Multiple symbols for level 1/group 1 on key <FK23>
"> "Using F23, ignoring XF86TouchpadOff
"> "Warning: Symbol map for key <FK23> redefined
"> "Using last definition for conflicting fields
"> "Warning: Symbol map for key <FK24> redefined
"> "Using last definition for conflicting fields
"> "Warning: Could not resolve keysym XF86AudioBassBoost
"Errors from xkbcomp are not fatal to the X server"

I currently do not have an Adreno 840 device for testing; the version previously tested with Adreno 840 was 26.0.0-devel-20260116_debian_trixie_arm64.

Image

If the new version cannot run, you can try downgrading Turnip individually to that version (not downgrading Freedreno KGSL should be fine): https://github.com/lfdevs/mesa-for-android-container/releases/tag/turnip-26.0.0-devel-20260116

BTW, you can also check the /usr/share/vulkan/icd.d/ directory and keep only the freedreno_icd.aarch64.json file; this might resolve some issues.

user@localhost:~$ ls -ahl /usr/share/vulkan/icd.d/
total 43K
drwxr-xr-x. 2 user user 3.4K Apr  4 14:00 .
drwxr-xr-x. 5 user user 3.4K Apr  4 14:00 ..
-rw-r--r--. 1 user user  140 Jun 17  2025 broadcom_icd.json
-rw-r--r--. 1 user user  198 Apr  4 14:00 freedreno_icd.aarch64.json
-rw-r--r--. 1 user user  141 Jun 17  2025 freedreno_icd.json
-rw-r--r--. 1 user user  141 Jun 17  2025 gfxstream_vk_icd.json
-rw-r--r--. 1 user user  135 Jun 17  2025 lvp_icd.json
-rw-r--r--. 1 user user  139 Jun 17  2025 nouveau_icd.json
-rw-r--r--. 1 user user  140 Jun 17  2025 panfrost_icd.json
-rw-r--r--. 1 user user  138 Jun 17  2025 radeon_icd.json
-rw-r--r--. 1 user user  138 Jun 17  2025 virtio_icd.json

lfdevs avatar Apr 07 '26 06:04 lfdevs

@lfdevs Or perhaps the environment I am using is the problem.

https://github.com/sabamdarif/termux-desktop I am using PRoot-Distro Debian13 in the Termux-Desktop environment mentioned above.

Both turnip and Freedreno KGSL work well on the Galaxy S25 Ultra (Adreno 830), (It has been quite a while since Termux-Desktop was installed on that device.)

Since this might be an issue with a recently committed Termux-Desktop, I will also test it on the Galaxy S24 Ultra (Adreno 750) and Galaxy Tab S9 Ultra (Adreno 740)!

I will leave a comment once I confirm the results of the test!

hansm629 avatar Apr 07 '26 07:04 hansm629

OK, you can also try Termux's official proot-distro on Adreno 840 devices; DroidMaster's tutorial can be used for reference.

lfdevs avatar Apr 07 '26 07:04 lfdevs

@lfdevs Thank you!

I will test both the Termux-desktop environment and the pure Termux PRoot-distro environment and provide feedback!

Oh, right!

Could you possibly update the mesa and turnip for the Termux Bionic package to the latest upstream versions?

hansm629 avatar Apr 07 '26 09:04 hansm629

@lfdevs Sir! The issue has been resolved!

The cause was termux-desktop!

After installing with an older commit, turnip now works perfectly in the proot-distro debian13 container!

Image

It seems that the vulkan ICD configured in the termux native environment and the vulkan ICD configured in the proot container environment interfered with each other in the latest commit.

I will close this issue!

As mentioned above, could you please build turnip and mesa for Termux bionic upstream as of April 4th?

Thank you.

hansm629 avatar Apr 08 '26 14:04 hansm629

As mentioned above, could you please build turnip and mesa for Termux bionic upstream as of April 4th?

I have built turnip on this new PR based on today's upstream code, you can try it out: https://github.com/lfdevs/termux-packages/pull/9

lfdevs avatar Apr 09 '26 17:04 lfdevs