Public bug reported:
To reproduce:
* Nvidia hardware (I'm using a 5070 but the precise GPU probably doesn't matter)
* Install Ubuntu 26.04 beta, with the proprietary Nvidia driver included
* Log in to the default Ubuntu GNOME-based Wayland session
* sudo dpkg --add-architecture i386
* sudo apt update; sudo apt upgrade
* sudo apt install gcc-multilib libegl-dev:i386 libnvidia-gl-580:i386
* Compile the EGL test that I'll attach (a cut-down version of how Wine 11
initializes EGL) with `gcc egl_info.c -lEGL -lX11 -m32 -oegl_info-i386`. The
main thing it does is to call `egl_display =
eglGetPlatformDisplay(EGL_PLATFORM_X11_KHR, (void*)x11_display, NULL)`.
* Run the resulting executable `./egl_info-i386`
Expected result:
Under the "X11 EGL Display" heading, I get "Vendor: NVIDIA" indicating
accelerated rendering.
Actual result:
I get "Vendor: Mesa Project", indicating Mesa's software rendering
fallback.
This appears to be because Nvidia's EGL driver, under at least some
circumstances, requires loading `${libdir}/gbm/nvidia-drm_gbm.so`.
On amd64, `/usr/lib/x86_64-linux-gnu/gbm/nvidia-drm_gbm.so` is provided
by libnvidia-extra-580:amd64, as a symlink to the library libnvidia-
allocator.so.1 in the same package. The nvidia-driver-580-open
metapackage pulls in libnvidia-extra-580, so in practice that package
will usually be present.
However, on i386, libnvidia-extra-580:i386 isn't installed as a
dependency of libnvidia-gl-580 and also doesn't include a
`/usr/lib/i386-linux-gnu/gbm/nvidia-drm_gbm.so` symlink.
Workaround:
After installing libnvidia-extra-580:i386, if I create
`/usr/lib/i386-linux-gnu/gbm/nvidia-drm_gbm.so` as a symlink to
`../libnvidia-allocator.so.1`, the test program works as expected.
Suggested solution:
1. Add the symlink to libnvidia-extra-xxx:i386 (and any other architectures
where it's missing)
2. Give libnvidia-gl-xxx a Depends or Recommends on libnvidia-extra-xxx of the
same architecture
** Affects: nvidia-graphics-drivers-580 (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Test program (provided by Paul Gofman)"
https://bugs.launchpad.net/bugs/2146828/+attachment/5957021/+files/egl_info.c
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146828
Title:
i386 nvidia-drm_gbm.so not provided
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-580/+bug/2146828/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs