View previous topic :: View next topic |
Author |
Message |
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Tue Apr 13, 2021 12:14 pm Post subject: [SOLVED]the right way to install libva-intel-media-driver? |
|
|
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 |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
Posted: Tue Apr 13, 2021 1:25 pm Post subject: |
|
|
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 |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Thu Apr 15, 2021 5:40 am Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22914
|
Posted: Thu Apr 15, 2021 3:23 pm Post subject: |
|
|
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 |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31383 Location: here
|
Posted: Thu Apr 15, 2021 4:29 pm Post subject: |
|
|
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 |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Fri Apr 16, 2021 2:05 am Post subject: |
|
|
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 |
|
|
|