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

Patched version dri problem on adreno 830 chroot ubuntu 24.04

Open snusoedik2281488 opened this issue 4 months ago • 8 comments

er0@ubuntu:/$ vulkaninfo --summary
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.275


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 = 3
--------------------------
VK_LAYER_INTEL_nullhw       INTEL NULL HW                1.1.73   version 1
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.354
	driverVersion      = 26.1.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.2.0-devel (git-9452d1daec)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23c4038c-564f-c241-252a-effe2e9e4bd7
GPU1:
	apiVersion         = 1.4.354
	driverVersion      = 26.1.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.2.0-devel (git-9452d1daec)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23c4038c-564f-c241-252a-effe2e9e4bd7
GPU2:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.8
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 20.1.2, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.8-0ubuntu0.24.04.2 (LLVM 20.1.2)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e38-2d3075627500
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 11121MB
    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: 11121 MB, largest block: 11121 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 11121 MB, largest block: 11121 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 11121 MB, largest block: 11121 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 11121 MB
    Total available memory: 11121 MB
    Currently available dedicated video memory: 11121 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ eglinfo -B
GBM platform:
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
MESA-LOADER: failed to retrieve device information
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

0@ubuntu:/$ export MESA_LOADER_DRIVER_OVERRIDE=kgsl
user0@ubuntu:/$ glmark2
glmark2-es2
vMESA-LOADER: failed to retrieve device information
kmark --MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
w=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    Adreno (TM) 830
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
insyMESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
[build] use-vbo=false:Ошибка сегментирования
user0@ubuntu:/$ glmark2-es2
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    Adreno (TM) 830
    GL_VERSION:     OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
[build] use-vbo=false:Ошибка сегментирования
user0@ubuntu:/$ vkmark --winsy
vkmark: option '--winsys-dir' requires an argument
user0@ubuntu:/$
r0@ubuntu:/$ ls -ahl /dev/kgsl-3d0
file /dev/kgsl-3d0
crw-rw-rw-. 1 user0 user0 458, 0 мар  3  1970 /dev/kgsl-3d0
/dev/kgsl-3d0: character special (458/0)
user0@ubuntu:/$ 

No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 24.04.4 LTS Release:        24.04 Codename:       noble

snusoedik2281488 avatar Jul 09 '26 16:07 snusoedik2281488

I tested with my Adreno 830 device in an Ubuntu 24.04 PRoot-Distro container and did not encounter similar issues. Perhaps you can first create a clean PRoot-Distro container to test it, to rule out interference from other factors.

Driver file used during testing: mesa-for-android-container_26.2.0-devel-20260709_ubuntu_noble_arm64.tar.gz

Basic information

root@localhost:~# uname -a
Linux localhost 6.17.0-PRoot-Distro #1 SMP PREEMPT_DYNAMIC Fri, 10 Oct 2025 00:00:00 +0000 aarch64 aarch64 aarch64 GNU/Linux
root@localhost:~# neofetch
            .-/+oossssoo+/-.               root@localhost
        `:+ssssssssssssssssss+:`           --------------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 24.04.4 LTS aarch64
    .ossssssssssssssssssdMMMNysssso.       Host: Redmi 24122RKC7C
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.17.0-PRoot-Distro
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 2 mins
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 364 (dpkg), 1 (pkg)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.2.21
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Theme: Adwaita [GTK3]
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Icons: Adwaita [GTK3]
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Terminal: proot
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   CPU: (8) @ 2.745GHz
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Memory: 10027MiB / 15113MiB
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
   /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

Environment variables and commands

In Termux:

pkill -f "com.termux.x11.Loader"
termux-x11 :3 > /dev/null 2>&1 &
proot-distro login ubuntu --shared-tmp --user root

Inside the container:

root@localhost:~# export DISPLAY=':3' MESA_LOADER_DRIVER_OVERRIDE=kgsl
root@localhost:~# export XDG_RUNTIME_DIR=/run/user/$(id -u)
root@localhost:~# sudo mkdir -p /run/user/$(id -u)
sudo chown $USER:$USER /run/user/$(id -u)
chmod 700 /run/user/$(id -u)
sudo chmod -R 777 /tmp

glxinfo

root@localhost:~# glxinfo -B
name of display: :3
MESA-LOADER: failed to retrieve device information
display: :3  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 15113MB
    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: 15113 MB, largest block: 15113 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 15113 MB, largest block: 15113 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 15113 MB, largest block: 15113 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 15113 MB
    Total available memory: 15113 MB
    Currently available dedicated video memory: 15113 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

os_same_file_description couldn't determine if two DRM fds reference the same file description. (Function not implemented)
Let's just assume that file descriptors for the same file probablyshare the file description instead. This may cause problems whenthat isn't the case.

eglinfo

root@localhost:~# eglinfo -B
GBM platform:
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20
os_same_file_description couldn't determine if two DRM fds reference the same file description. (Function not implemented)
Let's just assume that file descriptors for the same file probablyshare the file description instead. This may cause problems whenthat isn't the case.

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
MESA-LOADER: failed to retrieve device information
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
MESA-LOADER: failed to retrieve device information
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: freedreno
OpenGL core profile renderer: Adreno (TM) 830
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: freedreno
OpenGL compatibility profile renderer: Adreno (TM) 830
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: freedreno
OpenGL ES profile renderer: Adreno (TM) 830
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL core profile version: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 20.1.2, 128 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Benchmark

root@localhost:~# glmark2
MESA-LOADER: failed to retrieve device information
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    Adreno (TM) 830
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 1496 FrameTime: 0.669 ms
[build] use-vbo=true: FPS: 2023 FrameTime: 0.494 ms
[texture] texture-filter=nearest: FPS: 2029 FrameTime: 0.493 ms
[texture] texture-filter=linear:^C
root@localhost:~# vkmark --winsys xcb
=======================================================
    vkmark 2025.01
=======================================================
    Vendor ID:      0x5143
    Device ID:      0x44050001
    Device Name:    Adreno (TM) 830
    Driver Version: 109056099
    Device UUID:    8276d7691fdae20af5a8189b7b2e43d8
=======================================================
[vertex] device-local=true:  FPS: 791 FrameTime: 1.264 ms
[vertex] device-local=false: FPS: 652 FrameTime: 1.534 ms
[texture] anisotropy=0:^C FPS: 746 FrameTime: 1.340 ms
=======================================================
                                   vkmark Score: 729
=======================================================

lfdevs avatar Jul 09 '26 18:07 lfdevs

I reinstalled chroot Ubuntu but there are no changes

user0@ubuntu:/$ vulkaninfo --summary
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.275


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 = 3
--------------------------
VK_LAYER_INTEL_nullhw       INTEL NULL HW                1.1.73   version 1
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.354
	driverVersion      = 26.1.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.2.0-devel (git-9452d1daec)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23c4038c-564f-c241-252a-effe2e9e4bd7
GPU1:
	apiVersion         = 1.4.354
	driverVersion      = 26.1.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.2.0-devel (git-9452d1daec)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23c4038c-564f-c241-252a-effe2e9e4bd7
GPU2:
	apiVersion         = 1.4.318
	driverVersion      = 25.2.8
	vendorID           = 0x10005
	deviceID           = 0x0000
	deviceType         = PHYSICAL_DEVICE_TYPE_CPU
	deviceName         = llvmpipe (LLVM 20.1.2, 128 bits)
	driverID           = DRIVER_ID_MESA_LLVMPIPE
	driverName         = llvmpipe
	driverInfo         = Mesa 25.2.8-0ubuntu0.24.04.2 (LLVM 20.1.2)
	conformanceVersion = 1.3.1.1
	deviceUUID         = 6d657361-3235-2e32-2e38-2d3075627500
	driverUUID         = 6c6c766d-7069-7065-5555-494400000000
user0@ubuntu:/$ export DISPLAY=':0' MESA_LOADER_DRIVER_OVERRIDE=kgsl
user0@ubuntu:/$ glxinfo -B
name of display: :0
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 11121MB
    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: 11121 MB, largest block: 11121 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 11121 MB, largest block: 11121 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 11121 MB, largest block: 11121 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 11121 MB
    Total available memory: 11121 MB
    Currently available dedicated video memory: 11121 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20


and even if you remove the official Mesa drivers

user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 11121MB
    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: 11121 MB, largest block: 11121 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 11121 MB, largest block: 11121 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 11121 MB, largest block: 11121 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 11121 MB
    Total available memory: 11121 MB
    Currently available dedicated video memory: 11121 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ vulkaninfo --summary
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.275


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:
----------------

Devices:
========
GPU0:
	apiVersion         = 1.4.354
	driverVersion      = 26.1.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.2.0-devel (git-9452d1daec)
	conformanceVersion = 1.4.0.0
	deviceUUID         = 3e09c2cf-b328-5f80-3dd1-2ba75c07f637
	driverUUID         = 23c4038c-564f-c241-252a-effe2e9e4bd7

snusoedik2281488 avatar Jul 10 '26 11:07 snusoedik2281488

All jokes start with the corrected version, because the uncorrected version produces the correct result:

er0@ubuntu:/$ sudo tar -zxvf /storage/emulated/0/Download/turnip_26.2.0-devel-20260709_ubuntu_noble_arm64.tar.gz -C /
./
./usr/
./usr/lib/
./usr/lib/aarch64-linux-gnu/
./usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so
./usr/share/
./usr/share/vulkan/
./usr/share/vulkan/icd.d/
./usr/share/vulkan/icd.d/freedreno_icd.aarch64.json
./usr/share/drirc.d/
./usr/share/drirc.d/00-mesa-defaults.conf
./usr/share/drirc.d/00-turnip-defaults.conf
user0@ubuntu:/$ sudo ldconfig
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0x5143)
    Device: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP)) (0x44050001)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 8341MB
    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: 8334 MB, largest block: 8334 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 8334 MB, largest block: 8334 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 8334 MB, largest block: 8334 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8341 MB
    Total available memory: 8341 MB
    Currently available dedicated video memory: 8334 MB
OpenGL vendor string: Mesa
OpenGL renderer string: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP))
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ export MESA_LOADER_DRIVER_OVERRIDE=msm
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0x5143)
    Device: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP)) (0x44050001)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 8341MB
    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: 8334 MB, largest block: 8334 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 8334 MB, largest block: 8334 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 8334 MB, largest block: 8334 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8341 MB
    Total available memory: 8341 MB
    Currently available dedicated video memory: 8334 MB
OpenGL vendor string: Mesa
OpenGL renderer string: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP))
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ export MESA_LOADER_DRIVER_OVERRIDE=kgsl
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 11121MB
    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: 11121 MB, largest block: 11121 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 11121 MB, largest block: 11121 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 11121 MB, largest block: 11121 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 11121 MB
    Total available memory: 11121 MB
    Currently available dedicated video memory: 11121 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-14fd4ce175)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ 

but this version has its own oddities, while the patched version does not allow you to use it

user0@ubuntu:/$ sudo tar -zxvf /storage/emulated/0/Download/mesa-for-android-container_26.2.0-devel-20260709_ubuntu_noble_arm64.tar.gz -C /

sudo ldconfig
./
./usr/
./usr/lib/
./usr/lib/aarch64-linux-gnu/
./usr/lib/aarch64-linux-gnu/libgbm.so.1
./usr/lib/aarch64-linux-gnu/libEGL_mesa.so
./usr/lib/aarch64-linux-gnu/libgbm.so
./usr/lib/aarch64-linux-gnu/libgbm.so.1.0.0
./usr/lib/aarch64-linux-gnu/libGLX_mesa.so.0
./usr/lib/aarch64-linux-gnu/pkgconfig/
./usr/lib/aarch64-linux-gnu/pkgconfig/gbm.pc
./usr/lib/aarch64-linux-gnu/pkgconfig/dri.pc
./usr/lib/aarch64-linux-gnu/libEGL_mesa.so.0
./usr/lib/aarch64-linux-gnu/libGLX_mesa.so.0.0.0
./usr/lib/aarch64-linux-gnu/libGLX_mesa.so
./usr/lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
./usr/lib/aarch64-linux-gnu/libvulkan_freedreno.so
./usr/lib/aarch64-linux-gnu/gbm/
./usr/lib/aarch64-linux-gnu/gbm/dri_gbm.so
./usr/lib/aarch64-linux-gnu/libEGL_mesa.so.0.0.0
./usr/lib/aarch64-linux-gnu/dri/
./usr/lib/aarch64-linux-gnu/dri/ingenic-drm_dri.so
./usr/lib/aarch64-linux-gnu/dri/komeda_dri.so
./usr/lib/aarch64-linux-gnu/dri/imx-dcss_dri.so
./usr/lib/aarch64-linux-gnu/dri/mediatek_dri.so
./usr/lib/aarch64-linux-gnu/dri/sun4i-drm_dri.so
./usr/lib/aarch64-linux-gnu/dri/msm_dri.so
./usr/lib/aarch64-linux-gnu/dri/kirin_dri.so
./usr/lib/aarch64-linux-gnu/dri/virtio_gpu_dri.so
./usr/lib/aarch64-linux-gnu/dri/udl_dri.so
./usr/lib/aarch64-linux-gnu/dri/vkms_dri.so
./usr/lib/aarch64-linux-gnu/dri/rcar-du_dri.so
./usr/lib/aarch64-linux-gnu/dri/hx8357d_dri.so
./usr/lib/aarch64-linux-gnu/dri/kms_swrast_dri.so
./usr/lib/aarch64-linux-gnu/dri/zynqmp-dpsub_dri.so
./usr/lib/aarch64-linux-gnu/dri/imx-drm_dri.so
./usr/lib/aarch64-linux-gnu/dri/sti_dri.so
./usr/lib/aarch64-linux-gnu/dri/pl111_dri.so
./usr/lib/aarch64-linux-gnu/dri/st7586_dri.so
./usr/lib/aarch64-linux-gnu/dri/rzg2l-du_dri.so
./usr/lib/aarch64-linux-gnu/dri/mxsfb-drm_dri.so
./usr/lib/aarch64-linux-gnu/dri/zink_dri.so
./usr/lib/aarch64-linux-gnu/dri/rockchip_dri.so
./usr/lib/aarch64-linux-gnu/dri/apple_dri.so
./usr/lib/aarch64-linux-gnu/dri/ili9163_dri.so
./usr/lib/aarch64-linux-gnu/dri/gm12u320_dri.so
./usr/lib/aarch64-linux-gnu/dri/panel-mipi-dbi_dri.so
./usr/lib/aarch64-linux-gnu/dri/meson_dri.so
./usr/lib/aarch64-linux-gnu/dri/ili9486_dri.so
./usr/lib/aarch64-linux-gnu/dri/mali-dp_dri.so
./usr/lib/aarch64-linux-gnu/dri/exynos_dri.so
./usr/lib/aarch64-linux-gnu/dri/libdril_dri.so
./usr/lib/aarch64-linux-gnu/dri/ili9341_dri.so
./usr/lib/aarch64-linux-gnu/dri/kgsl_dri.so
./usr/lib/aarch64-linux-gnu/dri/ili9225_dri.so
./usr/lib/aarch64-linux-gnu/dri/imx-lcdif_dri.so
./usr/lib/aarch64-linux-gnu/dri/hdlcd_dri.so
./usr/lib/aarch64-linux-gnu/dri/ssd130x_dri.so
./usr/lib/aarch64-linux-gnu/dri/mi0283qt_dri.so
./usr/lib/aarch64-linux-gnu/dri/armada-drm_dri.so
./usr/lib/aarch64-linux-gnu/dri/swrast_dri.so
./usr/lib/aarch64-linux-gnu/dri/st7735r_dri.so
./usr/lib/aarch64-linux-gnu/dri/repaper_dri.so
./usr/lib/aarch64-linux-gnu/dri/mcde_dri.so
./usr/lib/aarch64-linux-gnu/dri/stm_dri.so
./usr/include/
./usr/include/GL/
./usr/include/GL/internal/
./usr/include/GL/internal/dri_interface.h
./usr/include/gbm_backend_abi.h
./usr/include/EGL/
./usr/include/EGL/eglext_angle.h
./usr/include/EGL/eglmesaext.h
./usr/include/gbm.h
./usr/share/
./usr/share/glvnd/
./usr/share/glvnd/egl_vendor.d/
./usr/share/glvnd/egl_vendor.d/50_mesa.json
./usr/share/vulkan/
./usr/share/vulkan/icd.d/
./usr/share/vulkan/icd.d/freedreno_icd.aarch64.json
./usr/share/drirc.d/
./usr/share/drirc.d/00-mesa-defaults.conf
./usr/share/drirc.d/00-turnip-defaults.conf
./usr/share/drirc.d/00-zink-defaults.conf
./usr/share/drirc.d/00-virtio_gpu-defaults.conf
./usr/share/drirc.d/00-msm-defaults.conf
user0@ubuntu:/$ unset MESA_LOADER_DRIVER_OVERRIDE
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0x5143)
    Device: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP)) (0x44050001)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 8341MB
    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: 8333 MB, largest block: 8333 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 8333 MB, largest block: 8333 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 8333 MB, largest block: 8333 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8341 MB
    Total available memory: 8341 MB
    Currently available dedicated video memory: 8333 MB
OpenGL vendor string: Mesa
OpenGL renderer string: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP))
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ export MESA_LOADER_DRIVER_OVERRIDE=kgsl
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA-LOADER: failed to retrieve device information
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: freedreno (0x5143)
    Device: Adreno (TM) 830 (0xffffffff)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 11121MB
    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: 11121 MB, largest block: 11121 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 11121 MB, largest block: 11121 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 11121 MB, largest block: 11121 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 11121 MB
    Total available memory: 11121 MB
    Currently available dedicated video memory: 11121 MB
OpenGL vendor string: freedreno
OpenGL renderer string: Adreno (TM) 830
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: dri3_alloc_render_buffer:1612 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ export MESA_LOADER_DRIVER_OVERRIDE=msm
user0@ubuntu:/$ glxinfo -B
name of display: :0.0
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0x5143)
    Device: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP)) (0x44050001)
    Version: 26.2.0
    Accelerated: yes
    Video memory: 8341MB
    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: 8333 MB, largest block: 8333 MB
    VBO free aux. memory - total: 0 MB, largest block: 0 MB
    Texture free memory - total: 8333 MB, largest block: 8333 MB
    Texture free aux. memory - total: 0 MB, largest block: 0 MB
    Renderbuffer free memory - total: 8333 MB, largest block: 8333 MB
    Renderbuffer free aux. memory - total: 0 MB, largest block: 0 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8341 MB
    Total available memory: 8341 MB
    Currently available dedicated video memory: 8333 MB
OpenGL vendor string: Mesa
OpenGL renderer string: zink Vulkan 1.4(Adreno (TM) 830 (MESA_TURNIP))
OpenGL core profile version string: 4.6 (Core Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain

OpenGL version string: 4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-9452d1daec)
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
MESA: error: CreateSwapchainKHR failed with VK_ERROR_INITIALIZATION_FAILED
MESA: error: zink: could not create swapchain

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.2.0-devel (git-9452d1daec)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

user0@ubuntu:/$ 

snusoedik2281488 avatar Jul 10 '26 14:07 snusoedik2281488

I am still unable to reproduce the error you encountered on my Adreno 830 device. However, we can still do a simple test on Termux native:

This time we will not use PRoot or Chroot, but directly install these two drivers built from the source code of version 26.2.0-devel-20260709 in Termux: https://github.com/termux/termux-packages/actions/runs/29028703557?pr=30162#artifacts

Specifically, look for files in the Artifacts section that start with debs-aarch64-. After downloading and extracting it, you'll obtain mesa_26.2.0-1_aarch64.deb and mesa-vulkan-icd-freedreno_26.2.0-1_aarch64.deb.

pkg install ./mesa_26.2.0-1_aarch64.deb ./mesa-vulkan-icd-freedreno_26.2.0-1_aarch64.deb

Then run the following commands to check if there is an image in Termux:X11:

export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=kgsl
termux-x11 :0 > /dev/null 2>&1 &
glxgears

lfdevs avatar Jul 10 '26 18:07 lfdevs

.../debs-aarch64/debs $ export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=kgsl
.../debs-aarch64/debs $ termux-x11 :0 > /dev/null 2>&1 &
[1] 23936
.../debs-aarch64/debs $ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
605 frames in 5.0 seconds = 120.813 FPS
606 frames in 5.0 seconds = 121.175 FPS
606 frames in 5.0 seconds = 121.165 FPS
606 frames in 5.0 seconds = 121.180 FPS
603 frames in 5.0 seconds = 120.442 FPS

Screenshot_2026-07-11-08-16-23-636_com.termux.x11.jpg

snusoedik2281488 avatar Jul 11 '26 05:07 snusoedik2281488

It looks like the driver itself is fine, which project's tool are you using to run Chroot containers?

lfdevs avatar Jul 11 '26 09:07 lfdevs

Ubuntu chroot Ravindu644

https://github.com/ravindu644/Ubuntu-Chroot

snusoedik2281488 avatar Jul 11 '26 10:07 snusoedik2281488

Oh, you should have mentioned this project earlier. Currently, the drivers in this repository have only been tested when paired with Termux:X11 or Anland, and compatibility with other GUI implementations is not guaranteed. If you want to use Termux to run a Chroot container, I recommend using the tool from this project: https://github.com/2moe/tmoe/blob/1e455243057d248bd6483066d3d52d55eaab4992/Readme-old.md#quick-start

It should be noted that before running this tool in Termux each time, you need to manually start termux-x11:

pkill -f "com.termux.x11.Loader"
termux-x11 :0 > /dev/null 2>&1 &
tmoe

Also, the created Chroot container needs to have the mount tmp option enabled:

Image

After entering the container and before starting the desktop or graphical applications, it is still those two environment variables:

export DISPLAY=:0 MESA_LOADER_DRIVER_OVERRIDE=kgsl

lfdevs avatar Jul 11 '26 11:07 lfdevs