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 <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2024-09-26 14:42:26 +02:00
parent 79c59aeb7f
commit 98ffe2aa67

View File

@ -200,7 +200,10 @@ func getVersionLibs(logger logger.Interface, driver *root.Driver, version string
libraries := lookup.NewFileLocator( libraries := lookup.NewFileLocator(
lookup.WithLogger(logger), lookup.WithLogger(logger),
lookup.WithSearchPaths(libRoot), lookup.WithSearchPaths(
libRoot,
filepath.Join(libRoot, "vdpau"),
),
lookup.WithOptional(true), lookup.WithOptional(true),
) )