1 |
commit: 7469468af8cbb6164977129e6ec5caa4cce256e3 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Wed Jun 13 00:40:56 2018 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 13 16:39:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7469468a |
7 |
|
8 |
media-libs/mesa: Support unconditional enabling of drivers |
9 |
|
10 |
... in dri_driver_enable(), gallium_enable(), vulkan_enable(). |
11 |
|
12 |
media-libs/mesa/mesa-9999.ebuild | 12 ++++++------ |
13 |
1 file changed, 6 insertions(+), 6 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild |
16 |
index afa370713b0..91b260c9796 100644 |
17 |
--- a/media-libs/mesa/mesa-9999.ebuild |
18 |
+++ b/media-libs/mesa/mesa-9999.ebuild |
19 |
@@ -351,10 +351,10 @@ multilib_src_configure() { |
20 |
fi |
21 |
|
22 |
if use gallium; then |
23 |
- GALLIUM_DRIVERS+=(swrast) |
24 |
+ gallium_enable -- swrast |
25 |
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) ) |
26 |
else |
27 |
- DRI_DRIVERS+=(swrast) |
28 |
+ dri_driver_enable -- swrast |
29 |
emesonargs+=( -Dosmesa=$(usex osmesa classic none) ) |
30 |
fi |
31 |
|
32 |
@@ -457,24 +457,24 @@ pkg_prerm() { |
33 |
fi |
34 |
} |
35 |
|
36 |
-# $1 - VIDEO_CARDS flag |
37 |
+# $1 - VIDEO_CARDS flag (check skipped for "--") |
38 |
# other args - names of DRI drivers to enable |
39 |
dri_driver_enable() { |
40 |
- if use $1; then |
41 |
+ if [[ $1 == -- ]] || use $1; then |
42 |
shift |
43 |
DRI_DRIVERS+=("$@") |
44 |
fi |
45 |
} |
46 |
|
47 |
gallium_enable() { |
48 |
- if use $1; then |
49 |
+ if [[ $1 == -- ]] || use $1; then |
50 |
shift |
51 |
GALLIUM_DRIVERS+=("$@") |
52 |
fi |
53 |
} |
54 |
|
55 |
vulkan_enable() { |
56 |
- if use $1; then |
57 |
+ if [[ $1 == -- ]] || use $1; then |
58 |
shift |
59 |
VULKAN_DRIVERS+=("$@") |
60 |
fi |