Not an issue: help wanted regarding kgsl with Drm backend
Hi ! @lfdevs
I experimented with DRM using a downstream KGSL backend. I found a KGSL DRM backend reference here:
https://zhuanlan.zhihu.com/p/687939663
I was able to successfully run KGSL DRM using the old Mesa build from @SnowNF ’s custom kgsl drm patch: https://github.com/SnowNF/mesa/tree/main-termux
Later, I tried updating the Mesa source code here: https://github.com/Saikatsaha1996/mesa-for-android-container/commits/adreno-main-drm/
After updating, the device is now detected correctly, but Sway immediately crashes on startup.
Note :- Previously, I skipped @SnowNF ’s dma_buf Termux patch because I assumed it was no longer needed, since I already have similar functionality available:
https://github.com/Saikatsaha1996/mesa-for-android-container/blob/cac98b74ab9ba0e5bbff958755206387ef37b356/src/freedreno/vulkan/tu_knl_kgsl_drm.cc#L1769
For reference, here is my Sway debug output: https://pastebin.com/686KRFFY
And I am sure i did something wrong with DMA buff and that's why it's crashed or default
00:00:00.226 [render/vulkan/vulkan.c:530] Implicit sync interop not supported, falling back to blocking
00:00:00.226 [render/vulkan/vulkan.c:544] Sampler YCbCr conversion supported
00:00:00.226 [render/vulkan/vulkan.c:566] Requesting a high-priority device queue
00:00:01.249 [seatd/client.c:496] Client disconnected
Below is my Wayland startup script inside the chroot environment:
#!/bin/sh
export SYSTEMD_IGNORE_CHROOT=1
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export TMPDIR=/tmp
mkdir -p /run/user/$(id -u)
chmod 700 /run/user/$(id -u)
mkdir -p /tmp
chmod 1777 /tmp
# UDEV (safe way)
SYSTEMD_IGNORE_CHROOT=1 /lib/systemd/systemd-udevd &
sleep 2
SYSTEMD_IGNORE_CHROOT=1 udevadm trigger &
SYSTEMD_IGNORE_CHROOT=1 udevadm settle &
# SEAT (important fix)
export SYSTEMD_IGNORE_CHROOT=1
export LIBSEAT_BACKEND=seatd
export SEATD_VTBOUND=0
seatd -g root &
# Permissions (temporary)
chmod 660 /dev/dri/card0
chmod 660 /dev/dri/renderD128
chmod 660 /dev/input/event*
# Kill Android DRM process
fuser -k /dev/dri/card0
fuser -k /dev/dri/renderD128
# Wayland / renderer setup
export SYSTEMD_IGNORE_CHROOT=1
export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/freedreno_icd.json
export TU_DEBUG=all
export WLR_BACKENDS=drm,libinput
export WLR_RENDERER=vulkan
export WLR_DRM_DEVICES=/dev/dri/card0
export GDK_BACKEND=wayland
exec dbus-run-session sway --unsupported-gpu -d
Sway is crashing immediately after launch with this setup.
Sorry for the noob question, and for potentially wasting your valuable time. I don’t have any programming background, but I would really appreciate your help and guidance whenever possible—it would be very helpful.
I have added some reference images related to KGSL + DRM + Wayland using the old Mesa build from @SnowNF 's source
Regards, Saikat Saha
You can try applying the patches based on the turnip-main or Mesa upstream main branch.
Since the development of this repository has now migrated to the dev/adreno-main branch, the drivers compiled directly using the adreno-main branch (using the kgsl interface) should not function properly on any GPU. The adreno-main branch is currently used only for updating documentation and workflows. The dev/adreno-main branch has the kgsl patch applied, which may affect the msm patch.
You can try applying the patches based on the
turnip-mainor Mesa upstreammainbranch.Since the development of this repository has now migrated to the
dev/adreno-mainbranch, the drivers compiled directly using theadreno-mainbranch (using thekgslinterface) should not function properly on any GPU. Theadreno-mainbranch is currently used only for updating documentation and workflows. Thedev/adreno-mainbranch has thekgslpatch applied, which may affect themsmpatch.
Thank you for your response Now I took your dev/adreno-main branch
Can you help about it?
https://github.com/SnowNF/mesa/blob/9d85a8576295cc4660cf491ca3a4ee5d7ed60a10/src/freedreno/vulkan/tu_knl.h#L57
This is old dma_buf fd creation and it was universal
But now in mainline mesa it inside for kgsl only with shared_fd https://github.com/lfdevs/mesa-for-android-container/blob/3e01d9bffcd16400900a1c0d4969cd8c15b141e6/src/freedreno/vulkan/tu_knl.h#L58
How can I manage? I was done like this https://github.com/Saikatsaha1996/mesa-for-android-container/blob/cac98b74ab9ba0e5bbff958755206387ef37b356/src/freedreno/vulkan/tu_knl.h#L49
One more time I am sorry.. I don't have any programming language skills..
update
it was my skill issue.. now problem solved
Log https://pastebin.com/4q45nVV6 I took your dev/adreno-main branch
i am closing issue.. any way it was not an issue.. if any help required I will ask here
Thank you
0001-freedreno-tu-add-KGSL-DRM-kernel-backend-support.patch.txt
@lfdevs can you please help?
ubuntu@ubuntu:~$ gnome-shell
libmutter-Message: 23:36:51.743: Running GNOME Shell (using mutter 46.2) as a X11 window and compositing manager
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
MESA: error: zink: couldn't allocate memory: heap=0 size=8192
(mutter-x11-frames:2418): Gtk-WARNING **: 23:36:52.667: Unknown key gtk-modules in /home/ubuntu/.config/gtk-4.0/settings.ini
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x40000f
GNOME Shell-Message: 23:36:54.406: Error connecting to the screencast service
(gnome-shell:2385): libmutter-WARNING **: 23:36:54.450: Failed to create colord device for 'xrandr-QCM-0x0001-0x00000001': failed to obtain org.freedesktop.color-manager.create-device auth
GNOME Shell-Message: 23:36:54.464: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
MESA: error: zink: couldn't allocate memory: heap=0 size=10313728
gnome-shell: ../src/freedreno/vulkan/tu_cmd_buffer.cc:3247: void tu6_sysmem_render_begin(tu_cmd_buffer*, tu_cs*, tu_autotune::rp_ctx_t) [with chip CHIP = A6XX; tu_autotune::rp_ctx_t = tu_autotune::rp_entry*]: Assertion `fb->width > 0 && fb->height > 0' failed.
Aborted
With your updated freedreno backend got gdm login screen failed to create dri2 screen with 2nd attempt
And I am facing this issue with first attempt drm backend Failed to ensure KMS FB ID on /dev/dri/card0: drmModeAddFB2 failed (No such device or address) and drmModeAddFB cannot be used as a fallback because format=0x30335258 (XR30).
i tried with msm & kgsl backend same results
First attempt
GALLIUM_DRIVER=freedreno
MESA_LOADER_DRIVER_OVERRIDE=kgsl
MUTTER_DEBUG_DISABLE_HW_CURSORS=1
MUTTER_DEBUG_DISABLE_KMS_MODIFIERS=1
MUTTER_DEBUG_USE_KMS_MODIFIERS=0
Debian GNU/Linux 13 debian console debian login: debian
Password:
Linux debian 4.19.325-cip130-st14-droidlinux+ #2 SMP PREEMPT Tue May 5 20:38:41 UTC 2026 aarch64
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
debian@debian:~$ sudo journalctl -b | grep -iE "xorg|xwayland|mutter|gnome-shell|drm|kms|gbm|xorg|mesa|Xorg"
[sudo] password for debian:
Jul 26 13:52:12 debian systemd[1]: Starting seat-init.service - Initialize DRM seat and udev permissions...
Jul 26 13:52:12 debian systemd[1]: Finished seat-init.service - Initialize DRM seat and udev permissions.
Jul 26 13:52:13 debian gnome-shell[388]: Running GNOME Shell (using mutter 48.7) as a Wayland display server
Jul 26 13:52:13 debian gnome-shell[388]: Enabling experimental feature 'scale-monitor-framebuffer' Jul 26 13:52:13 debian gnome-shell[388]: Enabling experimental feature 'xwayland-native-scaling' Jul 26 13:52:14 debian gnome-shell[388]: Thread 'KMS thread' will be using high priority scheduling Jul 26 13:52:14 debian gnome-shell[388]: Added device '/dev/dri/card0' (msm_drm) using atomic mode setting.
Jul 26 13:52:14 debian gnome-shell[388]: Created gbm renderer for '/dev/dri/card0' Jul 26 13:52:14 debian gnome-shell[388]: GPU /dev/dri/card0 selected primary from builtin panel presence
Jul 26 13:52:14 debian gnome-shell[388]: Obtained a high priority EGL context Jul 26 13:52:14 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 13:52:14 debian gnome-shell[388]: Using public X11 display :1024, (using :1025 for managed services)
Jul 26 13:52:14 debian gnome-shell[388]: Using Wayland display name 'wayland-0' Jul 26 13:52:14 debian gnome-shell[388]: Disabling hardware cursors because MUTTER_DEBUG_DISABLE_HW_CURSORS is set
Jul 26 13:52:14 debian /usr/libexec/gdm-wayland-session[435]: dbus-daemon[435]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:14 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:15 debian gnome-shell[388]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Jul 26 13:52:15 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 13:52:15 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.gnome.Shell.Screencast' requested by ':1.3' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 13:52:15 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.3' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 13:52:15 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:15 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:15 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.gnome.Shell.Notifications' requested by ':1.3' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 13:52:15 debian gnome-shell[388]: Failed to parse saved session file: Failed to open file “/var/lib/gdm3/.config/mutter/sessions/104ee8c11e5d60ba84178505413377621700000003600000.ms”: No such file or directory
Jul 26 13:52:16 debian gnome-shell[388]: Will monitor session c1
Jul 26 13:52:16 debian gnome-shell[388]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation Jul 26 13:52:16 debian polkitd[121]: Registered Authentication Agent for unix-session:c1 (system bus name :1.28 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 26 13:52:16 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:16 debian gnome-shell[388]: ../../../glib/gmain.c:5933: waitid(pid:553, pidfd=58) failed: Invalid argument (22). See documentation of g_child_watch_source_new() for possible causes. Jul 26 13:52:17 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.36' (uid=110 pid=725 comm="/usr/libexec/mutter-x11-frames" label="u:r:droidspacesd:s0") Jul 26 13:52:17 debian dbus-daemon[117]: [system] Activating via systemd: service name='org.freedesktop.realmd' unit='realmd.service' requested by ':1.28' (uid=110 pid=388 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 13:52:17 debian gnome-shell[388]: Failed to ensure KMS FB ID on /dev/dri/card0: drmModeAddFB2 failed (No such device or address) and drmModeAddFB cannot be used as a fallback because format=0x30335258 (XR30).
Jul 26 13:52:17 debian gnome-shell[388]: (../clutter/clutter/clutter-frame-clock.c:690):clutter_frame_clock_notify_ready: code should not be reached
2nd attempt
GALLIUM_DRIVER=freedreno
FD_FORCE_KGSL=1
FD_KGSL_ENABLE_DMABUF=1
XWAYLAND_FORCE_KGSL_SURFACELESS=1
XWAYLAND_KGSL_SURFACELESS=1
MUTTER_DEBUG_DISABLE_HW_CURSORS=1
MUTTER_DEBUG_DISABLE_KMS_MODIFIERS=1
MUTTER_DEBUG_USE_KMS_MODIFIERS=0
With freedreno msm backend Device #0: failed to load dri2 screen
With freedreno kgsl backend Device #1: failed to load dri2 screen
Debian GNU/Linux 13 debian console debian login: debian
Password:
Linux debian 4.19.325-cip130-st14-droidlinux+ #2 SMP PREEMPT Tue May 5 20:38:41 UTC 2026 aarch64
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
debian@debian:~$ sudo journalctl -b | grep -iE "xorg|xwayland|mutter|gnome-shell|drm|kms|gbm|xorg|mesa|Xorg"
[sudo] password for debian:
Jul 26 14:45:21 debian systemd[1]: Starting seat-init.service - Initialize DRM seat and udev permissions...
Jul 26 14:45:21 debian systemd[1]: Finished seat-init.service - Initialize DRM seat and udev permissions.
Jul 26 14:45:22 debian gnome-shell[389]: Running GNOME Shell (using mutter 48.7) as a Wayland display server
Jul 26 14:45:22 debian gnome-shell[389]: Enabling experimental feature 'scale-monitor-framebuffer' Jul 26 14:45:22 debian gnome-shell[389]: Enabling experimental feature 'xwayland-native-scaling' Jul 26 14:45:23 debian gnome-shell[389]: Thread 'KMS thread' will be using high priority scheduling Jul 26 14:45:23 debian gnome-shell[389]: Added device '/dev/dri/card0' (msm_drm) using atomic mode setting.
Jul 26 14:45:23 debian gnome-shell[389]: Created gbm renderer for '/dev/dri/card0' Jul 26 14:45:23 debian gnome-shell[389]: GPU /dev/dri/card0 selected primary from builtin panel presence
Jul 26 14:45:23 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.a11y.Bus' requested by ':1.4' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 14:45:23 debian gnome-shell[389]: Using public X11 display :1024, (using :1025 for managed services)
Jul 26 14:45:23 debian gnome-shell[389]: Using Wayland display name 'wayland-0' Jul 26 14:45:23 debian gnome-shell[389]: Disabling hardware cursors because MUTTER_DEBUG_DISABLE_HW_CURSORS is set
Jul 26 14:45:23 debian /usr/libexec/gdm-wayland-session[439]: dbus-daemon[439]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:23 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:23 debian org.gnome.Shell.desktop[440]: Xwayland glamor: using KGSL surfaceless EGL backend (Mesa Project) Jul 26 14:45:23 debian org.gnome.Shell.desktop[440]: Xwayland glamor: enabling DRI3 without syncobjs for KGSL surfaceless backend Jul 26 14:45:24 debian gnome-shell[389]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Jul 26 14:45:24 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 14:45:24 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.gnome.Shell.Screencast' requested by ':1.3' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 14:45:24 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.3' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 14:45:24 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:24 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:24 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.gnome.Shell.Notifications' requested by ':1.3' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0") Jul 26 14:45:24 debian gnome-shell[389]: Failed to parse saved session file: Failed to open file “/var/lib/gdm3/.config/mutter/sessions/1038c5a873b1635a5a178505732269905500000003600000.ms”: No such file or directory
Jul 26 14:45:25 debian gnome-shell[389]: Will monitor session c1
Jul 26 14:45:25 debian gnome-shell[389]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation Jul 26 14:45:25 debian polkitd[124]: Registered Authentication Agent for unix-session:c1 (system bus name :1.28 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 26 14:45:25 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:25 debian gnome-shell[389]: ../../../glib/gmain.c:5933: waitid(pid:568, pidfd=62) failed: Invalid argument (22). See documentation of g_child_watch_source_new() for possible causes. Jul 26 14:45:25 debian org.gnome.Shell.desktop[739]: MESA-LOADER: failed to retrieve device information
Jul 26 14:45:25 debian org.gnome.Shell.desktop[739]: MESA-LOADER: failed to retrieve device information
Jul 26 14:45:25 debian org.gnome.Shell.desktop[739]: MESA-EGL: warning: egl: failed to create dri2 screen
Jul 26 14:45:25 debian org.gnome.Shell.desktop[739]: MESA-EGL: warning: egl: failed to create dri2 screen
Jul 26 14:45:25 debian org.gnome.Shell.desktop[739]: MESA-LOADER: failed to retrieve device information
Jul 26 14:45:26 debian dbus-daemon[121]: [system] Activating via systemd: service name='org.freedesktop.realmd' unit='realmd.service' requested by ':1.28' (uid=110 pid=389 comm="/usr/bin/gnome-shell" label="u:r:droidspacesd:s0")
Jul 26 14:45:26 debian /usr/libexec/gdm-wayland-session[359]: dbus-daemon[359]: [session uid=110 pid=359 pidfd=5] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.39' (uid=110 pid=739 comm="/usr/libexec/mutter-x11-frames" label="u:r:droidspacesd:s0") Jul 26 14:45:26 debian gnome-shell[389]: Registering session with GDM
debian@debian:~$ eglinfo | grep -iE "device|driver|vendor" EGL_EXT_client_extensions, EGL_EXT_device_base, EGL_EXT_device_enumeration, EGL_EXT_device_query, EGL_EXT_explicit_device, EGL_EXT_platform_base, EGL_EXT_platform_device, EGL_EXT_platform_wayland, EGL vendor string: Mesa Project
EGL driver name: msm EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
EGL vendor string: Mesa Project
EGL driver name: msm EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
Device platform:
Device #0:
EGL device extensions string: EGL_EXT_device_drm, EGL_EXT_device_drm_render_node, EGL_EXT_device_persistent_id, EGL_EXT_device_query_name Platform Device platform:
EGL vendor string: Mesa Project
EGL driver name: msm EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: egl: failed to create dri2 screen
Device #1:
EGL device extensions string: EGL_EXT_device_drm_render_node, EGL_MESA_device_software Platform Device platform:
debian@debian:~$ MESA_LOADER_DRIVER_OVERRIDE=kgsl eglinfo | grep -iE "device|driver|vendor" MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information EGL_EXT_client_extensions, EGL_EXT_device_base, EGL_EXT_device_enumeration, EGL_EXT_device_query, EGL_EXT_explicit_device, EGL_EXT_platform_base, EGL_EXT_platform_device, EGL_EXT_platform_wayland, EGL vendor string: Mesa Project
EGL driver name: kgsl EGL_MESA_configless_context, EGL_MESA_gl_interop, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
EGL vendor string: Mesa Project
EGL driver name: kgsl EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
Device platform:
Device #0:
EGL device extensions string: EGL_EXT_device_drm, EGL_EXT_device_drm_render_node, EGL_EXT_device_persistent_id, EGL_EXT_device_query_name Platform Device platform:
EGL vendor string: Mesa Project
EGL driver name: kgsl EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver, OpenGL core profile vendor: freedreno
OpenGL compatibility profile vendor: freedreno
OpenGL ES profile vendor: freedreno
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: egl: failed to create dri2 screen
Device #1:
EGL device extensions string: EGL_EXT_device_drm_render_node, EGL_MESA_device_software Platform Device platform:
debian@debian:~$ eglinfo -B
GBM 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: FD610
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: FD610
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: FD610
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:
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
eglinfo: eglInitialize failed X11 platform:
eglinfo: eglInitialize failed Surfaceless 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: FD610
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: FD610
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: FD610
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: FD610
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: FD610
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: FD610
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:
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed debian@debian:~$ MESA_LOADER_DRIVER_OVERRIDE=kgsl 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: FD610
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: FD610
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: FD610
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:
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
eglinfo: eglInitialize failed X11 platform:
eglinfo: eglInitialize failed Surfaceless 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: FD610
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: FD610
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: FD610
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: FD610
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: FD610
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: FD610
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:
MESA-EGL: warning: egl: failed to create dri2 screen
MESA-EGL: warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed