Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 786552 - x11-libs/libva depends on x11-libs/libva-intel-driver while it should pull x11-libs/libva-intel-media-driver for newer GPUs
Summary: x11-libs/libva depends on x11-libs/libva-intel-driver while it should pull x1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-28 21:01 UTC by Nebrit
Modified: 2021-12-30 18:29 UTC (History)
6 users (show)

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


Attachments

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