From 2d8de496b1209accd52c4d869e2ffda1769dfe99 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Wed, 31 Jan 2024 22:07:06 +0800 Subject: [PATCH] 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 --- nonguix/multiarch-container.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nonguix/multiarch-container.scm b/nonguix/multiarch-container.scm index a9f1559..a922877 100644 --- a/nonguix/multiarch-container.scm +++ b/nonguix/multiarch-container.scm @@ -277,6 +277,7 @@ in a sandboxed FHS environment." ;; need to be shared with the container as ;; well; this is not needed currently. "^LD_LIBRARY_PATH$" + "^LIBVA_DRIVERS_PATH$" ; For VA-API drivers. "^MANGOHUD" ; For MangoHud configuration. "^PRESSURE_VESSEL_" ; For pressure vessel options. "_PROXY$" @@ -356,6 +357,8 @@ in a sandboxed FHS environment." ;; path, so set this path to where the drivers will actually be ;; located in the container. (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" #$(package-name (ngc-wrap-package container)) sandbox-home) (when DEBUG