Seem i always issue with mesa / DRI3 / amdgpu, need to continue investigate
If understand could be related to use gles instead gles2 only, i try with -Ddri3=enabled without success but we have -Dgles1=enabled -Dgles2=enabled
https://forums.gentoo.org/viewtopic-t-1070956-start-0.html
https://wiki.gentoo.org/wiki/Radeon#Troubleshooting
https://forum.slitaz.org/topic/usage-of-slitaz-40-rolling/page/33#post-52894
Debug tools
It might be helpful to install the package x11-apps/mesa-progs, which provides the packages glxgears and glxinfo.
Glamor does not load
If you see errors like "glamor detected, failed to initialize EGL.", then try enabling USE="gbm egl gles2 llvm" in the mesa builds.
If you see errors like "Failed to link: error: fragment shader lacks `main'", then make sure the glamor package has been built with USE="-gles".
On cards that are supported by radeonsi (starting at Southern Island, see the feature matrix) make sure to not only specify "radeon" but also "radeonsi" as the driver.
----
glamor X acceleration enabled on AMD RENOIR (DRM 3.40.0, 5.10.215-slitaz64, LLVM 13.0.0)AIGLX: Loaded and initialized radeonsi
$ grep glamor /var/log/Xorg.0.log
[ 1863.979] (II) Loading sub module "glamoregl"
[ 1863.979] (II) LoadModule: "glamoregl"
[ 1863.979] (II) Loading /usr/lib/X11/modules/libglamoregl.so
[ 1863.981] (II) Module glamoregl: vendor="X.Org Foundation"
[ 1863.996] (II) modeset(0): glamor X acceleration enabled on AMD RENOIR (DRM 3.40.0, 5.10.215-slitaz64, LLVM 13.0.0)
[ 1863.996] (II) modeset(0): glamor initialized
[ 1864.050] (WW) modeset(0): DRI2: glamor lacks support for pixmap import/export$ glxinfo -B | head
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD RENOIR (DRM 3.40.0, 5.10.215-slitaz64, LLVM 13.0.0) (0x1638)
Version: 21.3.5
Accelerated: yes
Video memory: 512MB
Unified memory: no$ grep -A8 AIGLX /var/log/Xorg.0.log
[ 1864.056] (II) AIGLX: Loaded and initialized radeonsi
[ 1864.056] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 1864.056] (II) Initializing extension XFree86-VidModeExtension
[ 1864.056] (II) Initializing extension XFree86-DGA
[ 1864.056] (II) Initializing extension XFree86-DRI
[ 1864.056] (II) Initializing extension DRI2
[ 1864.056] (II) modeset(0): Damage tracking initializedglxgears-amd.png 8 months old
https://forum.slitaz.org/topic/uefi-only-laptop-trouble-booting/page/6#post-52274
make sure we had a working version.
https://forum.slitaz.org/topic/usage-of-slitaz-40-rolling/page/34#post-52896