Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]the right way to install libva-intel-media-driver?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Tue Apr 13, 2021 12:14 pm    Post subject: [SOLVED]the right way to install libva-intel-media-driver? Reply with quote

I want to enable VAAPI on my i7-8565U, I read the VAAPI wiki, installed x11-libs/libva, and libva installed x11-libs/libva-intel-driver as a dependency.

But according to this arch wiki https://wiki.archlinux.org/index.php/Hardware_video_acceleration, for HD Graphics series starting from Broadwell (2014) and newer, I should install intel-media-driver, and libva-intel-driver is only for older CPUs.

Why does libva prefers libva-intel-driver over libva-intel-media-driver for newer CPUs when libva-intel-media-driver is already stable?

Can I install x11-libs/libva-intel-media-driver when I already have libva-intel-driver?


Last edited by smartding on Thu Apr 15, 2021 5:41 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Apr 13, 2021 1:25 pm    Post subject: Reply with quote

Hi
libva-intel-driver is hardcoded into the libva ebuild
Code:

PDEPEND="video_cards_nvidia? ( >=x11-libs/libva-vdpau-driver-0.7.4-r1[${MULTILIB_USEDEP}] )
   video_cards_nouveau? ( >=x11-libs/libva-vdpau-driver-0.7.4-r3[${MULTILIB_USEDEP}] )
   vdpau? ( >=x11-libs/libva-vdpau-driver-0.7.4-r1[${MULTILIB_USEDEP}] )
   video_cards_intel? ( >=x11-libs/libva-intel-driver-2.0.0[${MULTILIB_USEDEP}] )
   video_cards_i965? ( >=x11-libs/libva-intel-driver-2.0.0[${MULTILIB_USEDEP}] )
   utils? ( media-video/libva-utils )
"


This is installed by default when you have USE="vaapi" in make.conf.
Do not emerge it yourself.
What you CAN do is
Code:

emerge -av libva-intel-media-driver
echo 'export LIBVA_DRIVER_NAME="iHD"' >> ~/.bashrc
source ~/.bashrc

to override the auto use of the default libva-intel-driver

https://wiki.gentoo.org/wiki/VAAPI
_________________
:)
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Thu Apr 15, 2021 5:40 am    Post subject: Reply with quote

alamahant wrote:
Hi
libva-intel-driver is hardcoded into the libva ebuild
Code:

PDEPEND="video_cards_nvidia? ( >=x11-libs/libva-vdpau-driver-0.7.4-r1[${MULTILIB_USEDEP}] )
   video_cards_nouveau? ( >=x11-libs/libva-vdpau-driver-0.7.4-r3[${MULTILIB_USEDEP}] )
   vdpau? ( >=x11-libs/libva-vdpau-driver-0.7.4-r1[${MULTILIB_USEDEP}] )
   video_cards_intel? ( >=x11-libs/libva-intel-driver-2.0.0[${MULTILIB_USEDEP}] )
   video_cards_i965? ( >=x11-libs/libva-intel-driver-2.0.0[${MULTILIB_USEDEP}] )
   utils? ( media-video/libva-utils )
"


This is installed by default when you have USE="vaapi" in make.conf.
Do not emerge it yourself.
What you CAN do is
Code:

emerge -av libva-intel-media-driver
echo 'export LIBVA_DRIVER_NAME="iHD"' >> ~/.bashrc
source ~/.bashrc

to override the auto use of the default libva-intel-driver

https://wiki.gentoo.org/wiki/VAAPI


I hope libva doesn't hardcode libva-intel-driver in the future, so that I don't have to install both libva-intel-driver and libva-intel-media-driver.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Apr 15, 2021 3:23 pm    Post subject: Reply with quote

If you get an acceptably working system with only the driver you want, please write up what steps you took and, if you think other users could do those steps readily, file a bug to have the dependencies changed to support this use case.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Apr 15, 2021 4:29 pm    Post subject: Reply with quote

Overriding LIBVA_DRIVER_NAME variable is not needed.
in system with x11-libs/libva-intel-driver
Code:
$ vainfo 2> /dev/null | grep "Driver version"
vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 2.4.1

and with also libva-intel-media-driver
Code:
$ vainfo 2> /dev/null | grep "Driver version"
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.4.5 ()

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Fri Apr 16, 2021 2:05 am    Post subject: Reply with quote

Hu wrote:
If you get an acceptably working system with only the driver you want, please write up what steps you took and, if you think other users could do those steps readily, file a bug to have the dependencies changed to support this use case.


There was a bug in bugs.gentoo.org about changing libva's hard-coded dependency on libva-intel-driver to libva-intel-media-driver for newer intel CPUs.

But now I can't find the bug in "related bugs" of the libva package any more, and the issue is still here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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