EGL/v3d: EGL applications under a X compositor doesn't work
This is an spin-off of issue #10111 (closed), and coming from MR !24825 (merged). Creating a new issue just to avoid mixing too many things there:
So right now if you run an X compositor, and try to run a EGL application, it fails:
[jhbuild-pi]@apinheiro-rpi5-8gb:~$ es2gears_x11
libEGL warning: MESA-LOADER: failed to open zink: /home/pi/mesa/install/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /home/pi/mesa/install/lib/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open swrast: /home/pi/mesa/install/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /home/pi/mesa/install/lib/dri, suffix _dri)
EGLUT: failed to initialize EGL display
It works if we set mesa just before that MR got merged.
FWIW, tested that glxgears works fine, as another proof that it is an EGL issue.