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

Patched version doesn't work when i try on adreno 630 chroot debian 13

Open mumimoi opened this issue 9 months ago • 11 comments

When i try the standard version or patched and i give env var kgsl, it doesn't work for glmark2 and glxinfo -B. vkcube and vulkaninfo --summary doesn't work with kgsl env var too, but work when i run them without kgsl env var. So, i try to install turnip version or unpatched, it work for both opengl and vulkan test without kgsl env var when i run them. I wanna try the patched version because i think it will get me better performance but unfortunately it doesn't work, i hope there's a solution.

mumimoi avatar Feb 14 '26 15:02 mumimoi

This looks like a similar issue to https://github.com/lfdevs/mesa-for-android-container/issues/15. Freedreno (KGSL) not working on GPUs older than Adreno 660 (exclusive) might be a compatibility issue of newer Mesa versions with older GPUs. You can continue using the unpatched Turnip driver and then specify the environment variable MESA_LOADER_DRIVER_OVERRIDE=zink to run GL/GLES applications through Zink. Or use the patched Turnip driver version 24.1.0-devel-20240324 previously built by hansm629, which may have better compatibility and performance on older GPUs: https://github.com/xDoge26/proot-setup/issues/26#issuecomment-2043153927

lfdevs avatar Feb 15 '26 02:02 lfdevs

This looks like a similar issue to #15. Freedreno (KGSL) not working on GPUs older than Adreno 660 (exclusive) might be a compatibility issue of newer Mesa versions with older GPUs. You can continue using the unpatched Turnip driver and then specify the environment variable MESA_LOADER_DRIVER_OVERRIDE=zink to run GL/GLES applications through Zink. Or use the patched Turnip driver version 24.1.0-devel-20240324 previously built by hansm629, which may have better compatibility and performance on older GPUs: xDoge26/proot-setup#26 (comment)

@lfdevs Sorry for pinging & asking here because I have similar issues with adreno 610 .. Opengl working with kgsl but turnip vulkan not working.. useing lxc container.. anyway to fix it?

Image Image

Saikatsaha1996 avatar Apr 23 '26 16:04 Saikatsaha1996

Sorry for pinging & asking here because I have similar issues with adreno 610 .. Opengl working with kgsl but turnip vulkan not working.. useing lxc container.. anyway to fix it?

Of the following two installation packages, did you install both of them, or only the first one?

mesa-for-android-container_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz
turnip_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz

lfdevs avatar Apr 25 '26 03:04 lfdevs

Sorry for pinging & asking here because I have similar issues with adreno 610 .. Opengl working with kgsl but turnip vulkan not working.. useing lxc container.. anyway to fix it?

Of the following two installation packages, did you install both of them, or only the first one?

mesa-for-android-container_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz
turnip_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz

Yes unpatched mesa turnip working fine without any issue

Saikatsaha1996 avatar Apr 25 '26 04:04 Saikatsaha1996

Sorry for pinging & asking here because I have similar issues with adreno 610 .. Opengl working with kgsl but turnip vulkan not working.. useing lxc container.. anyway to fix it?

Of the following two installation packages, did you install both of them, or only the first one?

mesa-for-android-container_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz
turnip_26.2.0-devel-20260423_ubuntu_rolling_arm64.tar.gz

Don't know why not working but it was worked before.. any solution about it?

Image

Saikatsaha1996 avatar Apr 29 '26 04:04 Saikatsaha1996

This looks like a similar issue to #15. Freedreno (KGSL) not working on GPUs older than Adreno 660 (exclusive) might be a compatibility issue of newer Mesa versions with older GPUs. You can continue using the unpatched Turnip driver and then specify the environment variable MESA_LOADER_DRIVER_OVERRIDE=zink to run GL/GLES applications through Zink. Or use the patched Turnip driver version 24.1.0-devel-20240324 previously built by hansm629, which may have better compatibility and performance on older GPUs: xDoge26/proot-setup#26 (comment)

@lfdevs Sorry for pinging & asking here because I have similar issues with adreno 610 .. Opengl working with kgsl but turnip vulkan not working.. useing lxc container.. anyway to fix it?

Image Image

@lfdevs freedreno kgsl was worked before..

ubuntu@ubuntu:~$ MESA_LOADER_DRIVER_OVERRIDE=kgsl gdb glmark2
GNU gdb (Ubuntu 15.1-1ubuntu1~24.04.1) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
 
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from glmark2...
 
This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.ubuntu.com>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
(No debugging symbols found in glmark2)
(gdb) run
Starting program: /usr/bin/glmark2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
MESA-LOADER: failed to retrieve device information
[New Thread 0x7feafcf160 (LWP 981)]
MESA: error: kgsl_pipe_get_param:103: invalid param id: 13
[New Thread 0x7fea5be160 (LWP 982)]
[New Thread 0x7fe9dae160 (LWP 983)]
[New Thread 0x7fe959e160 (LWP 984)]
[New Thread 0x7fe8d8e160 (LWP 985)]
MESA: error: dri3_alloc_render_buffer:1608 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
MESA: error: dri3_alloc_render_buffer:1608 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      freedreno
    GL_RENDERER:    FD610
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 26.2.0-devel (git-f23c8e5c42)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[New Thread 0x7fd3fff160 (LWP 986)]
[New Thread 0x7fd37ef160 (LWP 987)]
[Thread 0x7fe8d8e160 (LWP 985) exited]
[Thread 0x7fe959e160 (LWP 984) exited]
MESA: error: dri3_alloc_render_buffer:1608 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
MESA: error: dri3_alloc_render_buffer:1608 xcb_dri3_pixmap_from_buffer[s] failed
MESA: error: X error: 2
[build] use-vbo=false:
Thread 8 "glmark2:gdrv0" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd37ef160 (LWP 987)]
0x0000007ff64fcbc4 in batch_draw_tracking ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
(gdb) bt
#0  0x0000007ff64fcbc4 in batch_draw_tracking ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
#1  0x0000007ff64fd8cc in fd_draw_vbo ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
#2  0x0000007ff63d85e4 in tc_batch_execute ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
#3  0x0000007ff6157710 in util_queue_thread_func ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
#4  0x0000007ff619837c in impl_thrd_routine ()
   from /lib/aarch64-linux-gnu/libgallium-26.2.0-devel.so
#5  0x0000007ff78c595c in start_thread (arg=0x0)
    at ./nptl/pthread_create.c:447
#6  0x0000007ff792b8dc in thread_start ()
    at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79

But not working now

Saikatsaha1996 avatar Apr 29 '26 07:04 Saikatsaha1996

But not working now

I built the new version (26.2.0-devel-20260511) a few days ago. Could you give it a try?

lfdevs avatar May 15 '26 14:05 lfdevs

But not working now

I built the new version (26.2.0-devel-20260511) a few days ago. Could you give it a try?

Now working.. Actually it was selinux permission issue.. Termux own tmp & droidspaces daemon conflicts 🥹... Solution found from droidspaces pull request..

Saikatsaha1996 avatar May 16 '26 05:05 Saikatsaha1996

Now working.. Actually it was selinux permission issue.. Termux own tmp & droidspaces daemon conflicts 🥹... Solution found from droidspaces pull request..

Oh, you should have mentioned earlier that you were using the driver under Droidspaces. Because others have encountered the same problem in other issues: https://github.com/lfdevs/mesa-for-android-container/issues/46#issuecomment-4344925149

lfdevs avatar May 16 '26 05:05 lfdevs

@lfdevs ok this is not yours driver issue or not droidspaces daemon issue

https://github.com/ravindu644/Droidspaces-OSS/pull/106

Problem solved with it.. One more thing.. I was experiment with something I foke your your repository regarding kgsl + drm (msm_drm) support inside chroot.. & want to discuss with you about it

https://pastebin.com/686KRFFY Should I create a separate issue?

Saikatsaha1996 avatar May 16 '26 06:05 Saikatsaha1996

Should I create a separate issue?

Ok, creating a new issue is better.

lfdevs avatar May 16 '26 06:05 lfdevs