1 |
commit: 04c32f5c2e8ad380ee20055fb8cf5e31c94864c4 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 19 07:31:02 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 5 21:53:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04c32f5c |
7 |
|
8 |
media-libs/mesa: Condense Intel VIDEO_CARDS options |
9 |
|
10 |
VIDEO_CARDS has grown out of control in recent years, and the options |
11 |
don't really make sense outside of a single package. For example, |
12 |
VIDEO_CARDS=iris makes sense for Mesa, because it enables the Gen8+ |
13 |
Gallium OpenGL driver named Iris. VIDEO_CARDS=i965 makes sense as well |
14 |
because it enables the Gen4-Gen11 classic OpenGL driver named i965. |
15 |
|
16 |
But how these VIDEO_CARDS settings should extend to other packages was |
17 |
never clearly defined. Until commit 564e4e3d1b14 ("x11-libs/libva: use |
18 |
optfeatures instead of VIDEO_CARDS") pulled in drivers depending on the |
19 |
VIDEO_CARD setting, but x11-libs/libva-intel-driver and |
20 |
x11-libs/libva-intel-media-driver support only partially overlapping |
21 |
sets of hardware, and neither correspond well to "i965" or "iris". |
22 |
|
23 |
In truth, this level of flexibility (for example, the ability to build |
24 |
only i965 but not the older i915, or iris but not crocus) isn't worth |
25 |
the hassle and confusion it causes users. The insane marketing names of |
26 |
GPUs also doesn't make the situation any clearer. |
27 |
|
28 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
29 |
|
30 |
media-libs/mesa/mesa-9999.ebuild | 22 +++++++++------------- |
31 |
1 file changed, 9 insertions(+), 13 deletions(-) |
32 |
|
33 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
34 |
index 55e813f0fde1..f5d8fe0c106d 100644 |
35 |
--- a/media-libs/mesa/mesa-9999.ebuild |
36 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
37 |
@@ -27,7 +27,7 @@ RESTRICT=" |
38 |
" |
39 |
|
40 |
RADEON_CARDS="r300 r600 radeon radeonsi" |
41 |
-VIDEO_CARDS="${RADEON_CARDS} crocus freedreno i915 intel iris lima nouveau panfrost v3d vc4 virgl vivante vmware" |
42 |
+VIDEO_CARDS="${RADEON_CARDS} freedreno intel lima nouveau panfrost v3d vc4 virgl vivante vmware" |
43 |
for card in ${VIDEO_CARDS}; do |
44 |
IUSE_VIDEO_CARDS+=" video_cards_${card}" |
45 |
done |
46 |
@@ -38,7 +38,7 @@ IUSE="${IUSE_VIDEO_CARDS} |
47 |
vulkan-overlay wayland +X xa xvmc zink +zstd" |
48 |
|
49 |
REQUIRED_USE=" |
50 |
- d3d9? ( || ( video_cards_iris video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) |
51 |
+ d3d9? ( || ( video_cards_intel video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) ) |
52 |
vulkan? ( video_cards_radeonsi? ( llvm ) ) |
53 |
vulkan-overlay? ( vulkan ) |
54 |
video_cards_radeon? ( x86? ( llvm ) amd64? ( llvm ) ) |
55 |
@@ -81,9 +81,7 @@ RDEPEND=" |
56 |
wayland? ( |
57 |
>=dev-libs/wayland-1.18.0:=[${MULTILIB_USEDEP}] |
58 |
) |
59 |
- ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}] |
60 |
- video_cards_intel? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
61 |
- video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] ) |
62 |
+ ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_intel?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}] |
63 |
vulkan-overlay? ( dev-util/glslang:0=[${MULTILIB_USEDEP}] ) |
64 |
X? ( |
65 |
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}] |
66 |
@@ -228,10 +226,10 @@ llvm_check_deps() { |
67 |
pkg_pretend() { |
68 |
if use vulkan; then |
69 |
if ! use video_cards_freedreno && |
70 |
- ! use video_cards_iris && |
71 |
+ ! use video_cards_intel && |
72 |
! use video_cards_radeonsi && |
73 |
! use video_cards_v3d; then |
74 |
- ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain freedreno, iris, radeonsi, or v3d" |
75 |
+ ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain freedreno, intel, radeonsi, or v3d" |
76 |
fi |
77 |
fi |
78 |
|
79 |
@@ -294,7 +292,7 @@ pkg_setup() { |
80 |
ewarn "detected! This can cause problems. For details, see bug 459306." |
81 |
fi |
82 |
|
83 |
- if use video_cards_iris || |
84 |
+ if use video_cards_intel || |
85 |
use video_cards_radeonsi; then |
86 |
if kernel_is -ge 5 11 3; then |
87 |
CONFIG_CHECK="~KCMP" |
88 |
@@ -322,7 +320,7 @@ multilib_src_configure() { |
89 |
use wayland && platforms+=",wayland" |
90 |
emesonargs+=(-Dplatforms=${platforms#,}) |
91 |
|
92 |
- if use video_cards_iris || |
93 |
+ if use video_cards_intel || |
94 |
use video_cards_r300 || |
95 |
use video_cards_r600 || |
96 |
use video_cards_radeonsi || |
97 |
@@ -376,10 +374,8 @@ multilib_src_configure() { |
98 |
fi |
99 |
|
100 |
gallium_enable -- swrast |
101 |
- gallium_enable video_cards_crocus crocus |
102 |
gallium_enable video_cards_freedreno freedreno |
103 |
- gallium_enable video_cards_i915 i915 |
104 |
- gallium_enable video_cards_iris iris |
105 |
+ gallium_enable video_cards_intel crocus i915 iris |
106 |
gallium_enable video_cards_lima lima |
107 |
gallium_enable video_cards_nouveau nouveau |
108 |
gallium_enable video_cards_panfrost panfrost |
109 |
@@ -405,7 +401,7 @@ multilib_src_configure() { |
110 |
|
111 |
if use vulkan; then |
112 |
vulkan_enable video_cards_freedreno freedreno |
113 |
- vulkan_enable video_cards_iris intel |
114 |
+ vulkan_enable video_cards_intel intel |
115 |
vulkan_enable video_cards_radeonsi amd |
116 |
vulkan_enable video_cards_v3d broadcom |
117 |
fi |