Bug#1008245: update-glx config for nvidia but libegl point to mesa-diverted

Andreas Beckmann anbe at debian.org
Fri Mar 25 11:43:07 GMT 2022


On 25/03/2022 09.57, Christophe Trophime wrote:
> Why on earth, glx--libEGL.so.1-x86_64-linux-gnu points to mesa-diverted??

MESA and modern NVIDIA drivers (starting after the 418 series) use
libglvnd to provide generic loader libraries libGL.so.1, libEGL.so.1,
... while MESA and NVIDIA only provide some implementations:
libGLX_${VENDOR}.so.0, libEGL_${VENDOR}.so.0, ...
(NVIDIA still ships GLVND builds of (loader) libGL.so.1 etc., but we use
them from src:libglvnd.)
The name "mesa-diverted" is misleading nowadays since it actually
contains diverted libglvnd libraries ... this won't be fixed, because
once all the NVIDIA drivers predating GLVND usage reach EoL (Tesla 418
in 03/2022 and legacy 390 in 12/2022), i.e. once there are no longer
NVIDIA-specific libGL.so.1 etc. we can simplify the diversion and
alternatives setup for bookworm, since most things done can now be
solved by libglvnd.

> Running glxinfo I can confirm that I'm using Nvidia driver (even if glx--libGL.so.1-x86_64-linux-gnu points to mesa-diverted).

As expected.

> But running eglinfo clearly states that I'm using mesa driver.

That's the point we need to look into.

Luca, can you confirm that eglinfo should report something
"NVIDIA-specific" or is that a red herring?

Christophe, you should have something like these libraries
related to EGL installed:

ii  libegl-mesa0:amd64              21.3.7-1                          amd64        free implementation of the EGL API -- Mesa vendor library
ii  libegl-nvidia0:amd64            470.103.01-3                      amd64        NVIDIA binary EGL library
ii  libegl1:amd64                   1.4.0-1                           amd64        Vendor neutral GL dispatch library -- EGL support
ii  libnvidia-egl-wayland1:amd64    1:1.1.9-1.1                       amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-eglcore:amd64         470.103.01-3                      amd64        NVIDIA binary EGL core libraries
ii  libwayland-egl1:amd64           1.20.0-1                          amd64        wayland compositor infrastructure - EGL library
ii  nvidia-egl-common               470.103.01-3                      amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64            470.103.01-3                      amd64        NVIDIA EGL installable client driver (ICD)

Please send the configuration of the nvidia alternative, too:

update-glx --display nvidia

(the bug script should probably collect that as well ...)


Andreas



More information about the pkg-nvidia-devel mailing list