Skip to content

Commit 98ffe2a

Browse files
committed
Also search for driver libraries in vdpau
This change adds the vdpau subfolder to the paths searched for driver libraries. This allows the libvdpau_nvidia.so.RM_VERSION library to also be discovered. Signed-off-by: Evan Lezar <[email protected]>
1 parent 79c59ae commit 98ffe2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/nvcdi/driver-nvml.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ func getVersionLibs(logger logger.Interface, driver *root.Driver, version string
200200

201201
libraries := lookup.NewFileLocator(
202202
lookup.WithLogger(logger),
203-
lookup.WithSearchPaths(libRoot),
203+
lookup.WithSearchPaths(
204+
libRoot,
205+
filepath.Join(libRoot, "vdpau"),
206+
),
204207
lookup.WithOptional(true),
205208
)
206209

0 commit comments

Comments
 (0)