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

Bug 786552

Summary: x11-libs/libva depends on x11-libs/libva-intel-driver while it should pull x11-libs/libva-intel-media-driver for newer GPUs
Product: Gentoo Linux Reporter: Nebrit <omikheev>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, k2k, klondike, leonard, sam, ursm
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nebrit 2021-04-28 21:01:43 UTC
x11-libs/libva-intel-driver does not support Tiger Lake, and probably other new Intel GPUs, per https://github.com/intel/intel-vaapi-driver/issues/531

x11-libs/libva-intel-media-driver should be used instead

But there is no keyword to instruct libva-2.11.0.ebuild to depend on libva-intel-media-driver

There is iris VIDEO_CARDS keyword, I'm not sure if it should be used to make libva depend on media-driver, or there should be a new keyword.

But either way libva should be able to switch between intel and media drivers based on a keyword
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-28 21:05:44 UTC
CCing Evgeny in case he has input (add yourself to the packages!)
Comment 2 Karlson2k 2021-08-24 18:19:54 UTC
Yes, that's correct. libva-intel-driver supports up to Gen9 (with limited support for Gen9.5 and Gen10), while libva-intel-media-driver supports Gen8 and later, including all the latest intel chips.

As we now have first stable version of libva-intel-media-driver, we may add the dependency, however I suggest to re-think all USE EXPAND intel video flags.
Currently it use unclear and partially broken combinations of "intel i965 iris", but actually i915 is used as well.
See https://wiki.gentoo.org/wiki/Intel

This produce unclear and complicated dependencies in packages, see https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-base/xorg-drivers/xorg-drivers-1.20-r2.ebuild for example.

I suggest to replace these flags with 'intel_old', 'i_gen4', 'i_gen5', 'i_gen6', 'i_gen7', 'i_gen8', 'i_gen9', 'i_gen95', 'i_gen10', 'i_gen11', 'i_gen12'.
This will enable the clear support for required hardware and simplify dependencies.
Comment 3 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2021-11-22 20:20:54 UTC
I think this one can be closed, starting with x11-libs/libva-2.13.0 the explicit dependency has been dropped and instead you get a message which does mention using x11-libs/libva-intel-media-driver
Comment 4 Matt Turner gentoo-dev 2021-11-24 02:04:55 UTC
commit 564e4e3d1b14e0b5e88278c2cade94228af9a79c
Author: Jason A. Donenfeld <zx2c4@gentoo.org>
Date:   Tue Nov 9 00:34:29 2021 +0100

    x11-libs/libva: use optfeatures instead of VIDEO_CARDS
    
    VIDEO_CARDS is ill suited for this because the situation with Intel GPUs
    is complicated.
    
    Discussed-with: Matt Turner <mattst88@gentoo.org>
    Discussed-with: Sam James <sam@gentoo.org>
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>