Skip to content

runtime: Look for NVIDIA driver data in /usr/share/nvidia first

Simon McVittie requested to merge wip/t29292 into master
  • runtime: Look for NVIDIA driver data in /usr/share/nvidia first

    The NVIDIA driver hard-codes /usr/share/nvidia even if it is installed in /opt or something, so instead of deriving ${prefix} from the library path and then checking for ${prefix}/share/nvidia followed by /usr/share/nvidia as a fallback, we do the opposite: check for /usr/share/nvidia first, followed by ${prefix}/share/nvidia as a fallback.

    Resolves: #73 (closed) (T29292)

  • runtime: Share /usr/share/nvidia if we have at least one libGLX_nvidia

    If we have libGLX_nvidia.so.0 for any architecture - even if we are msising some instances - then we still want to share /usr/share/nvidia with the container.

    Because we always use libGLX_nvidia.so.0 from the graphics stack provider and do not have a concept of whether it is older or newer, and we do not expect our runtime to have a copy of libGLX_nvidia.so.0, we do not need to worry about giving the runtime's library an incompatible version of the data files from the provider.

Edited by Simon McVittie

Merge request reports