Nvidia says that libEGL_nvidia.so can work as an icd without X. https://download.nvidia.com/XFree86/Linux-x86_64/535.54.03/README/commonproblems.html Reproducible: Always
Interesting, I wasn't aware of the alternative. Relevant text for reference: >Q: The Vulkan ICD has dependencies on X libraries >By default, nvidia-installer creates a /etc/vulkan/icd.d/nvidia_icd.json that points to libGLX_nvidia.so.0. This DSO has dependencies on X libraries. >It is possible to avoid those dependencies by hand editing that file to point to libEGL_nvidia.so.0 instead. However in that case, an application will only be able to create non-X swapchains if it wants to present frames. sed'ing it with USE=-X would be trivial
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcea6dadf4e471de98323346f9855f7c0efedd72 commit fcea6dadf4e471de98323346f9855f7c0efedd72 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2023-06-27 01:42:28 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2023-06-27 03:48:59 +0000 x11-drivers/nvidia-drivers: update and install vulkan icd for USE=-X Not really tested, but it should be harmless vs not having the file. Skipping revbump, letting it propagate on kernel upgrades / bumps (470 and 525 are bumped in next commits). Please rebuild if want this now for other versions. For 390.x the icd is a template, while the newer drivers had hardcoded libGLX, but docs mentions libEGL is usable for all versions (unlikely to be useful for 390.x given its partial wayland support is broken). Closes: https://bugs.gentoo.org/909181 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild | 9 +++------ x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r2.ebuild | 9 ++++----- x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r2.ebuild | 8 ++++---- x11-drivers/nvidia-drivers/nvidia-drivers-525.47.27.ebuild | 8 ++++---- x11-drivers/nvidia-drivers/nvidia-drivers-535.54.03.ebuild | 8 ++++---- 5 files changed, 19 insertions(+), 23 deletions(-)