Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 543982

Summary: x11-libs/libva-vdpau-driver: add nouveau driver
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: aballier
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://lists.freedesktop.org/archives/libva/2014-July/002515.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libva-vdpau-driver-0.7.4-nouveau.patch

Description Ryan Hill (RETIRED) gentoo-dev 2015-03-21 06:39:47 UTC
Created attachment 399342 [details, diff]
libva-vdpau-driver-0.7.4-nouveau.patch

# vainfo
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/nouveau_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

# ll /usr/lib64/va/drivers/
lrwxrwxrwx 1 root root   18 Feb 11 22:18 nvidia_drv_video.so -> vdpau_drv_video.so
lrwxrwxrwx 1 root root   18 Feb 11 22:18 s3g_drv_video.so -> vdpau_drv_video.so
-rwxr-xr-x 1 root root  996 Feb 11 22:18 vdpau_drv_video.la
-rwxr-xr-x 1 root root  95K Feb 11 22:18 vdpau_drv_video.so

I don't know if this matters since vdpau seems to be working fine but this one-liner gets vainfo working at least.
Comment 1 Alexis Ballier gentoo-dev 2015-03-21 17:05:17 UTC
feel free to commit if it works
maybe along with a video_cards_nouveau PDEPEND in x11-libs/libva: it is meant for pulling proper driver with video_cards settings
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2015-03-22 09:02:30 UTC
Thanks.  I did a bit more testing and found I can't use vaapi video output in mplayer without this patch.

It's a little weird that USE="-vdpau" VIDEO_CARDS="nouveau" would still pull in libva-vdpau-driver.  But I'll go with it.


http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libva-vdpau-driver/libva-vdpau-driver-0.7.4-r3.ebuild?rev=1.1&view=markup
http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libva-vdpau-driver/files/libva-vdpau-driver-0.7.4-nouveau.patch?rev=1.1&view=markup

http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libva/libva-1.5.1.ebuild?r1=1.1&r2=1.2