Please add the termux-dri3 patch to the source code.
Hi, I'm testing and encountering a libEGL warning: DRI3 error: Could not get DRI3 device. Can this driver be patched with DRI3?
The patches applied in this repository’s source code originate from @xMeM’s commit, so they already include the Termux:X11 DRI3 patch. If glmark2 and glmark2-es2 run successfully, you can safely ignore messages such as DRI3 error: Could not get DRI3 device.
You can also verify whether DRI3 is being used by running:
LIBGL_DEBUG=verbose glxinfo | grep libgl
If the output includes Using DRI3 for screen 0. then DRI3 is indeed enabled.
For example, the output for Adreno 730 is as follows:
lf@localhost:~$ LIBGL_DEBUG=verbose glxinfo | grep libgl
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/lf/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/lf/.drirc: No such file or directory.
MESA-LOADER: failed to retrieve device information
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/lf/.drirc: No such file or directory.
Using DRI3 for screen 0
GLX_EXT_get_drawable_type, GLX_EXT_libglvnd, GLX_EXT_no_config_context,
lf@localhost:~$ glmark2
MESA-LOADER: failed to retrieve device information
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: freedreno
GL_RENDERER: FD725
GL_VERSION: 4.6 (Compatibility Profile) Mesa 25.0.7-2+deb13u1 (git-243e73a1da)
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: 1529 FrameTime: 0.654 ms
=======================================================
glmark2 Score: 1528
=======================================================
lf@localhost:~$ glmark2-es2
MESA-LOADER: failed to retrieve device information
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: freedreno
GL_RENDERER: FD725
GL_VERSION: OpenGL ES 3.2 Mesa 25.0.7-2+deb13u1 (git-243e73a1da)
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: 1654 FrameTime: 0.605 ms
=======================================================
glmark2 Score: 1653
=======================================================
LIBGL_DEBUG=verbose glxinfo | grep libgl ✔ 10:35:18 PM screen 0 does not appear to be DRI3 capable libGL: Can't open configuration file /data/data/com.termux/files/usr/glibc/etc/drirc: No such file or directory. libGL: Can't open configuration file /data/data/com.termux/files/home/.drirc: No such file or directory. libGL: Can't open configuration file /data/data/com.termux/files/usr/glibc/etc/drirc: No such file or directory. libGL: Can't open configuration file /data/data/com.termux/files/home/.drirc: No such file or directory. libGL: Can't open configuration file /data/data/com.termux/files/usr/glibc/etc/drirc: No such file or directory. libGL: Can't open configuration file /data/data/com.termux/files/home/.drirc: No such file or directory. GLX_EXT_get_drawable_type, GLX_EXT_libglvnd, GLX_EXT_no_config_context, [
I just checked everything again and found that everything was fine.😂
glmark2-es2 ✔ 10:56:22 PM glmark2-es2: /data/data/com.termux/files/usr/glibc/lib/libjpeg.so.8: no version information available (required by glmark2-es2) glmark2-es2: /data/data/com.termux/files/usr/glibc/lib/libpng16.so.16: no version information available (required by glmark2-es2) libEGL warning: DRI3 error: Could not get DRI3 device libEGL warning: Ensure your X server supports DRI3 to get accelerated rendering libEGL warning: DRI3 error: Could not get DRI3 device libEGL warning: Ensure your X server supports DRI3 to get accelerated rendering
glmark2 2023.01
======================================================= OpenGL Information GL_VENDOR: Mesa GL_RENDERER: llvmpipe (LLVM 19.1.1, 128 bits) GL_VERSION: OpenGL ES 3.2 Mesa 26.0.0-devel (git-cac1b65846) Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0 Surface Size: 800x600 windowed
glmark2-es2: /data/data/com.termux/files/usr/glibc/lib/libjpeg.so.8: no version information available (required by glmark2-es2) glmark2-es2: /data/data/com.termux/files/usr/glibc/lib/libpng16.so.16: no version information available (required by glmark2-es2)
It appears you're using the drivers from this repository directly in Termux Native. However, these drivers are currently built inside Glibc-based chroot containers and are only intended for use in PRoot, chroot, and LXC containers.
OK. Thank you for your help.
The patches applied in this repository’s source code originate from @xMeM’s commit, so they already include the Termux:X11 DRI3 patch. If
glmark2andglmark2-es2run successfully, you can safely ignore messages such asDRI3 error: Could not get DRI3 device.You can also verify whether DRI3 is being used by running:
LIBGL_DEBUG=verbose glxinfo | grep libgl If the output includes
Using DRI3 for screen 0.then DRI3 is indeed enabled.For example, the output for Adreno 730 is as follows:
lf@localhost:~$ LIBGL_DEBUG=verbose glxinfo | grep libgl libGL: Can't open configuration file /etc/drirc: No such file or directory. libGL: Can't open configuration file /home/lf/.drirc: No such file or directory. libGL: Can't open configuration file /etc/drirc: No such file or directory. libGL: Can't open configuration file /home/lf/.drirc: No such file or directory. MESA-LOADER: failed to retrieve device information libGL: Can't open configuration file /etc/drirc: No such file or directory. libGL: Can't open configuration file /home/lf/.drirc: No such file or directory. Using DRI3 for screen 0 GLX_EXT_get_drawable_type, GLX_EXT_libglvnd, GLX_EXT_no_config_context, lf@localhost:~$ glmark2 MESA-LOADER: failed to retrieve device information ======================================================= glmark2 2023.01 ======================================================= OpenGL Information GL_VENDOR: freedreno GL_RENDERER: FD725 GL_VERSION: 4.6 (Compatibility Profile) Mesa 25.0.7-2+deb13u1 (git-243e73a1da) 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: 1529 FrameTime: 0.654 ms ======================================================= glmark2 Score: 1528 ======================================================= lf@localhost:~$ glmark2-es2 MESA-LOADER: failed to retrieve device information ======================================================= glmark2 2023.01 ======================================================= OpenGL Information GL_VENDOR: freedreno GL_RENDERER: FD725 GL_VERSION: OpenGL ES 3.2 Mesa 25.0.7-2+deb13u1 (git-243e73a1da) 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: 1654 FrameTime: 0.605 ms ======================================================= glmark2 Score: 1653 =======================================================
R you using chroot or lxc container?
I am using proot gpu a735 getting Max 700 to 800 fps
R you using chroot or lxc container?
I am using proot gpu a735 getting Max 700 to 800 fps
The glmark2 test for Adreno 730 was executed in a Chroot container, and running the test before starting the desktop environment can increase the frame rate.
R you using chroot or lxc container? I am using proot gpu a735 getting Max 700 to 800 fps
The
glmark2test for Adreno 730 was executed in a Chroot container, and running the test before starting the desktop environment can increase the frame rate.
We have any solution or patch for it? Need help Using lxc
libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: failed to create screen
libEGL warning: egl: failed to create dri2 screen
qt.qpa.wayland: Failed to initialize EGL display 3001
Platform - wayland & x11 Driver - kgsl/zink
Any solution please?
Platform - wayland & x11 Driver - kgsl/zink
Any solution please?
Currently, the Freedreno (KGSL) driver in this repository does not support usage under Wayland; it is recommended to use it with Termux:X11. Adapting it to Wayland is estimated to take a long time and an amount of work.
Platform - wayland & x11 Driver - kgsl/zink Any solution please?
Currently, the Freedreno (KGSL) driver in this repository does not support usage under Wayland; it is recommended to use it with Termux:X11. Adapting it to Wayland is estimated to take a long time and an amount of work.
I don't know.. but I was done with Termux.. but now can't remember i delete everything it was to much head cache 🫡