elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.17k stars 53 forks source link

libva error: vaGetDriverNames() failed with unknown libva error #245

Closed bruce-awareit closed 8 months ago

bruce-awareit commented 11 months ago

running "vainfo" command, it returns this error on archlinux.

linux kernel 6.5.3-arch1-1 nvidia-dkms 535.104.05-1 libva libva 2.19.0 libva-nvidia-driver 0.0.10-1

detiam commented 11 months ago

It's libva 2.20.0 update, just say vaGetDriverNames() failed to get driver name, if you set LIBVA_DRIVER_NAME=nvidia it will work still. I set this env var all the time, otherwise it won't work even in libva 2.19. https://github.com/intel/libva/blob/8575b2bbc6d5cbf31690e682f4fa268d742fcb62/va/va.c#L683 Unknown why vainfo still says it's libva 2.19.0

NuLL3rr0r commented 9 months ago

@detiam thank you! You saved the day. I was having issues running CLion and your suggestion solved it.

elFarto commented 8 months ago

I've updated the readme to better suggest that this setting is needed as the newer versions of libva have changed how driver detection works.

mirh commented 7 months ago

The error (and even the need to force drivers names) can be solved by compiling libva with the -Dwith_legacy=nvctrl meson build option. Otherwise there's nothing else instating the nvidia name to the roaster.

go1-D commented 4 months ago

How fix?