Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543982 - x11-libs/libva-vdpau-driver: add nouveau driver
Summary: x11-libs/libva-vdpau-driver: add nouveau driver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://lists.freedesktop.org/archives...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-03-21 06:39 UTC by Ryan Hill (RETIRED)
Modified: 2015-03-22 09:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libva-vdpau-driver-0.7.4-nouveau.patch (libva-vdpau-driver-0.7.4-nouveau.patch,189 bytes, patch)
2015-03-21 06:39 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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