View previous topic :: View next topic |
Author |
Message |
sakey n00b
Joined: 17 Jun 2024 Posts: 14
|
Posted: Tue Jul 02, 2024 5:40 am Post subject: vainfo Issues |
|
|
Whenever I run vainfo, this happens:
Code: |
$ vainfo
Trying display: drm
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/va/drivers/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_21
nvc0_screen_create:1002 - Base screen init failed: -19
libva error: /usr/lib/va/drivers/nouveau_drv_video.so init failed
libva info: va_openDriver() returns 2
vaInitialize failed with error code 2 (resource allocation failed),exit
|
Even if I set LIBVA_DRIVER_NAME to nouveau it still doesn't work.
Any help is appreciated. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2746
|
Posted: Tue Jul 02, 2024 5:47 am Post subject: |
|
|
Never tried VAAPI with nouveau, but afaik nouveau only support hardware acceleration for decoding with specific old cards (and most also need an external firmware extracted from nvidia-drivers, see https://nouveau.freedesktop.org/FeatureMatrix.html), and then that's for vdpau.. no idea how that works out with mesa+vaapi, so I wouldn't be surprised that it fails. I personally wouldn't bother trying and just do USE=-vaapi
On that note, nvidia-drivers doesn't officially support vaapi too (only vdpau or nvenc/nvdec). There is nvidia-vaapi-driver but it's bit of a hack to use nvdec through it and (currently) only works for some specific usage (like firefox, not chromium) and with recent enough drivers so it won't work for legacy cards. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 365
|
Posted: Tue Jul 02, 2024 6:21 am Post subject: |
|
|
I have used the nvidia-vaapi-driver for well over a year now.
https://github.com/elFarto/nvidia-vaapi-driver
It is quick to build from source. It works on Firefox mainly when just playing Youtube videos.
To be honest, I can't really tell any difference but I have a powerful CPU, plenty of RAM, and near TOTL GPU.
I can verify that it is working in Nvidia Settings and nvidia-smi but there is not any noticeable difference with or without the driver installed.
If you have a lower end system, laptop, iGPU or such setup, there may be improved performance on Firefox.
In that case, it make be worth checking out. |
|
Back to top |
|
|
sakey n00b
Joined: 17 Jun 2024 Posts: 14
|
Posted: Fri Jul 05, 2024 3:18 pm Post subject: |
|
|
Maybe it is to do with another issue I have been having.
See below
Code: |
$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x45 cap: 0x2, Sink Output crtcs: 4 outputs: 3 associated providers: 0 name:modesetting
|
|
|
Back to top |
|
|
|