fix: add NVIDIA GBM EGL platform fallback#165
Open
miaulightouch wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Add a startup fallback for the NVIDIA GBM EGL external platform manifest.
When an NVIDIA GPU is detected,
init-videonow checks for an existing NVIDIA GBM EGL external platform JSON under:/usr/share/egl/egl_external_platform.d/etc/egl/egl_external_platform.dIf none is found, it creates:
with
libnvidia-egl-gbm.so.1as the ICD library.Benefits of this PR and context:
Some NVIDIA container environments provide the required driver libraries but do not install the GBM EGL external platform manifest. Without this JSON file, EGL/Wayland GBM initialization can fail even when the NVIDIA GBM library is available.
This follows the existing
init-videopattern of creating missing NVIDIA runtime config files under/etconly when they are absent.How Has This Been Tested?
eglinfo -B)Source / References:
https://github.com/selkies-project/docker-selkies-egl-desktop/blob/8dd03fba2a33ac774d61f46375a19ed1d9c5b51a/Dockerfile#L248-L264