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: 16

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: 2851

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: 420

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
sakey
n00b
n00b


Joined: 17 Jun 2024
Posts: 16

PostPosted: Fri Jul 05, 2024 3:18 pm    Post subject: Reply with quote

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


Joined: 17 Jun 2024
Posts: 16

PostPosted: Mon Jul 08, 2024 6:20 am    Post subject: Reply with quote

If worst-comes-to-worst, I'll just reinstall Gentoo.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Mon Jul 08, 2024 12:14 pm    Post subject: Reply with quote

You are welcome to spend your time doing that, but reinstalling Gentoo rarely fixes problems you do not understand. Worse, if you do not understand how the problem happened, you have no way to avoid making it happen again at some indeterminate point in the future.
Back to top
View user's profile Send private message
sakey
n00b
n00b


Joined: 17 Jun 2024
Posts: 16

PostPosted: Sat Jul 13, 2024 9:35 am    Post subject: Reply with quote

Could it be that CONFIG_DRM_NOUVEAU is enabled and not a module or could it be something else in my kernel config?
Also my system is quite unusual and that could contibute to the problem. For example, I use mdevd instead of udev and I use musl instead of glibc.
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