Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vainfo Issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sakey
n00b
n00b


Joined: 17 Jun 2024
Posts: 13

PostPosted: Tue Jul 02, 2024 5:40 am    Post subject: vainfo Issues Reply with quote

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
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2745

PostPosted: Tue Jul 02, 2024 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 359

PostPosted: Tue Jul 02, 2024 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum