Skip to content

[Feature]: Add egl-wayland2 to CDI #1747

@Lioli7k

Description

@Lioli7k

Currently nvidia-ctk cdi generate picks up only egl-wayland1. Since egl-wayland2 seemingly went stable, I suggest considering adding libnvidia-egl-wayland2.so to a generated CDI if it is detected on a host system. That would prevent from breakages later on when only egl-wayland2 is installed.

For testing purposes I ensured that only egl-wayland2 is installed. Then manually edited /run/cdi/nvidia.yaml and added following lines:

- hostPath: /usr/lib64/libnvidia-egl-wayland2.so.1.0.1
  containerPath: /usr/lib64/libnvidia-egl-wayland2.so.1.0.1
  options:
    - ro
    - nosuid
    - nodev
    - rbind
    - rprivate
- hostPath: /usr/share/egl/egl_external_platform.d/09_nvidia_wayland2.json
  containerPath: /usr/share/egl/egl_external_platform.d/09_nvidia_wayland2.json
  options:
    - ro
    - nosuid
    - nodev
    - rbind
    - rprivate

That allowed me to run Firefox with GPU acceleration inside distrobox. I haven't encountered any issues with it so far.

Metadata

Metadata

Assignees

Labels

featureissue/PR that proposes a new feature or functionalitylifecycle/frozen

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions