multiarch-container: make-container-wrapper: Set LIBVA_DRIVERS_PATH.

* nonguix/multiarch-container.scm (make-container-wrapper): Set
LIBVA_DRIVERS_PATH and preserve it.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
This commit is contained in:
Hilton Chain 2024-01-31 22:07:06 +08:00 committed by John Kehayias
parent 09151acd73
commit 2d8de496b1
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -277,6 +277,7 @@ in a sandboxed FHS environment."
;; need to be shared with the container as ;; need to be shared with the container as
;; well; this is not needed currently. ;; well; this is not needed currently.
"^LD_LIBRARY_PATH$" "^LD_LIBRARY_PATH$"
"^LIBVA_DRIVERS_PATH$" ; For VA-API drivers.
"^MANGOHUD" ; For MangoHud configuration. "^MANGOHUD" ; For MangoHud configuration.
"^PRESSURE_VESSEL_" ; For pressure vessel options. "^PRESSURE_VESSEL_" ; For pressure vessel options.
"_PROXY$" "_PROXY$"
@ -356,6 +357,8 @@ in a sandboxed FHS environment."
;; path, so set this path to where the drivers will actually be ;; path, so set this path to where the drivers will actually be
;; located in the container. ;; located in the container.
(setenv "VDPAU_DRIVER_PATH" "/lib64/vdpau") (setenv "VDPAU_DRIVER_PATH" "/lib64/vdpau")
;; Likewise, for VA-API drivers.
(setenv "LIBVA_DRIVERS_PATH" "/lib64/dri:/lib/dri")
(format #t "\n* Launching ~a in sandbox: ~a.\n\n" (format #t "\n* Launching ~a in sandbox: ~a.\n\n"
#$(package-name (ngc-wrap-package container)) sandbox-home) #$(package-name (ngc-wrap-package container)) sandbox-home)
(when DEBUG (when DEBUG