Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/
Date: Thu, 15 Nov 2018 17:42:31
Message-Id: 1542303732.f548d0fc46088b27dd47e858ba0b514388b59e1f.mattst88@gentoo
1 commit: f548d0fc46088b27dd47e858ba0b514388b59e1f
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 15 16:30:23 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 15 17:42:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f548d0fc
7
8 media-libs/mesa: Version bump to 18.2.5
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 media-libs/mesa/Manifest | 1 +
13 media-libs/mesa/mesa-18.2.5.ebuild | 515 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 516 insertions(+)
15
16 diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
17 index 73f549503d1..877dffd49d8 100644
18 --- a/media-libs/mesa/Manifest
19 +++ b/media-libs/mesa/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mesa-18.1.9.tar.xz 11146188 BLAKE2B 753f0fa3780502d56927f9b0e6124b4728cb5aa3600de78585487fb8e178c6987a72b79fb56e6c310757d157f9f85f12b73a6889bd361b51b62fb1dc1c20eecd SHA512 22db2950d25a3d9393e7c622c783bd177c21695569c8a95683bf77e92318e1db85672a134d4bea30c1f49a24e52bc3a2c1a0ac15deafb3a8fcbfb6de6a18adc2
22 DIST mesa-18.2.4.tar.xz 11377556 BLAKE2B b11c33ade744fb976862fecccbcc4c97196a005e40a00ef02bd8d409b66b3aa11f97baee13f2aa92f2d7c5461b2ef44beae3103687dea9ee29e92439a068f08a SHA512 088d43b087f4005752e4db75eaa6897e0fcb6de7b9a1f2d2b2ce3b5557d1dff829022e0092e8b1038ff01182c863ca0f26c97b9adde34bca462d3fa24502bfde
23 +DIST mesa-18.2.5.tar.xz 11365620 BLAKE2B 401fbbcb0e56a97122c11b7d47e506fe86795e942ca412abfa0c29010434447d96bc17fa0e7fc43090c94d7907fc0acaed5f7dada164e8906dca43da0b64a932 SHA512 dd454c720241dffa61f3380be62479979a43004b2a52293b817bd3ea95f75960edee680e7380a13fae09b67a90dc0393e4a022d543db91b2f142f2468a9661f0
24 DIST mesa-18.3.0-rc2.tar.xz 11862200 BLAKE2B 4776d1dbf9fdab9dffc36ce8cdd5531491251c9d6f8317ec962d0a0556201ecf72a8cbc9ef2870085041e12702bba2a8bbbbbe011d21ed440eec08fe81b2f96e SHA512 af12adafbeac33f1ee527a0c7f61c24251912b5ee0a9e55d46f0133e6897b0ca91486ae2b3236159e43addef4de474a7b71ec3932083e68b9e94e480ee91c9fa
25
26 diff --git a/media-libs/mesa/mesa-18.2.5.ebuild b/media-libs/mesa/mesa-18.2.5.ebuild
27 new file mode 100644
28 index 00000000000..03073c44ca4
29 --- /dev/null
30 +++ b/media-libs/mesa/mesa-18.2.5.ebuild
31 @@ -0,0 +1,515 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit llvm meson multilib-minimal pax-utils python-any-r1
40 +
41 +OPENGL_DIR="xorg-x11"
42 +
43 +MY_P="${P/_/-}"
44 +
45 +DESCRIPTION="OpenGL-like graphic library for Linux"
46 +HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
47 +
48 +if [[ ${PV} == 9999 ]]; then
49 + EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
50 + EXPERIMENTAL="true"
51 + inherit git-r3
52 +else
53 + SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
54 + KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
55 +fi
56 +
57 +LICENSE="MIT"
58 +SLOT="0"
59 +RESTRICT="
60 + !test? ( test )
61 +"
62 +
63 +RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
64 +VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
65 +for card in ${VIDEO_CARDS}; do
66 + IUSE_VIDEO_CARDS+=" video_cards_${card}"
67 +done
68 +
69 +IUSE="${IUSE_VIDEO_CARDS}
70 + +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
71 + opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
72 + vulkan wayland xa xvmc"
73 +
74 +REQUIRED_USE="
75 + d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
76 + gles1? ( egl )
77 + gles2? ( egl )
78 + vulkan? ( dri3
79 + || ( video_cards_i965 video_cards_radeonsi )
80 + video_cards_radeonsi? ( llvm ) )
81 + wayland? ( egl gbm )
82 + video_cards_freedreno? ( gallium )
83 + video_cards_intel? ( classic )
84 + video_cards_i915? ( || ( classic gallium ) )
85 + video_cards_i965? ( classic )
86 + video_cards_imx? ( gallium video_cards_vivante )
87 + video_cards_nouveau? ( || ( classic gallium ) )
88 + video_cards_radeon? ( || ( classic gallium )
89 + gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
90 + video_cards_r100? ( classic )
91 + video_cards_r200? ( classic )
92 + video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
93 + video_cards_r600? ( gallium )
94 + video_cards_radeonsi? ( gallium llvm )
95 + video_cards_vc4? ( gallium )
96 + video_cards_virgl? ( gallium )
97 + video_cards_vivante? ( gallium gbm )
98 + video_cards_vmware? ( gallium )
99 +"
100 +
101 +LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.93"
102 +RDEPEND="
103 + !app-eselect/eselect-mesa
104 + >=app-eselect/eselect-opengl-1.3.0
105 + >=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
106 + >=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
107 + >=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
108 + >=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
109 + >=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
110 + >=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
111 + >=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
112 + >=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
113 + x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
114 + gallium? (
115 + unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
116 + llvm? (
117 + video_cards_radeonsi? (
118 + virtual/libelf:0=[${MULTILIB_USEDEP}]
119 + )
120 + video_cards_r600? (
121 + virtual/libelf:0=[${MULTILIB_USEDEP}]
122 + )
123 + video_cards_radeon? (
124 + virtual/libelf:0=[${MULTILIB_USEDEP}]
125 + )
126 + )
127 + lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
128 + opencl? (
129 + dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
130 + dev-libs/libclc
131 + virtual/libelf:0=[${MULTILIB_USEDEP}]
132 + )
133 + vaapi? (
134 + >=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
135 + video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
136 + )
137 + vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
138 + xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
139 + )
140 + wayland? (
141 + >=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
142 + >=dev-libs/wayland-protocols-1.8
143 + )
144 + ${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
145 +
146 + video_cards_intel? (
147 + !video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
148 + )
149 + video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
150 +"
151 +for card in ${RADEON_CARDS}; do
152 + RDEPEND="${RDEPEND}
153 + video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
154 + "
155 +done
156 +RDEPEND="${RDEPEND}
157 + video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
158 +"
159 +
160 +# Please keep the LLVM dependency block separate. Since LLVM is slotted,
161 +# we need to *really* make sure we're not pulling one than more slot
162 +# simultaneously.
163 +#
164 +# How to use it:
165 +# 1. List all the working slots (with min versions) in ||, newest first.
166 +# 2. Update the := to specify *max* version, e.g. < 7.
167 +# 3. Specify LLVM_MAX_SLOT, e.g. 6.
168 +LLVM_MAX_SLOT="7"
169 +LLVM_DEPSTR="
170 + || (
171 + sys-devel/llvm:7[${MULTILIB_USEDEP}]
172 + sys-devel/llvm:6[${MULTILIB_USEDEP}]
173 + sys-devel/llvm:5[${MULTILIB_USEDEP}]
174 + sys-devel/llvm:4[${MULTILIB_USEDEP}]
175 + >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}]
176 + )
177 + sys-devel/llvm:=[${MULTILIB_USEDEP}]
178 +"
179 +LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
180 +CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
181 +CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
182 +RDEPEND="${RDEPEND}
183 + llvm? (
184 + opencl? (
185 + video_cards_r600? (
186 + ${CLANG_DEPSTR_AMDGPU}
187 + )
188 + !video_cards_r600? (
189 + video_cards_radeonsi? (
190 + ${CLANG_DEPSTR_AMDGPU}
191 + )
192 + )
193 + !video_cards_r600? (
194 + !video_cards_radeonsi? (
195 + video_cards_radeon? (
196 + ${CLANG_DEPSTR_AMDGPU}
197 + )
198 + )
199 + )
200 + !video_cards_r600? (
201 + !video_cards_radeon? (
202 + !video_cards_radeonsi? (
203 + ${CLANG_DEPSTR}
204 + )
205 + )
206 + )
207 + )
208 + !opencl? (
209 + video_cards_r600? (
210 + ${LLVM_DEPSTR_AMDGPU}
211 + )
212 + !video_cards_r600? (
213 + video_cards_radeonsi? (
214 + ${LLVM_DEPSTR_AMDGPU}
215 + )
216 + )
217 + !video_cards_r600? (
218 + !video_cards_radeonsi? (
219 + video_cards_radeon? (
220 + ${LLVM_DEPSTR_AMDGPU}
221 + )
222 + )
223 + )
224 + !video_cards_r600? (
225 + !video_cards_radeon? (
226 + !video_cards_radeonsi? (
227 + ${LLVM_DEPSTR}
228 + )
229 + )
230 + )
231 + )
232 + )
233 +"
234 +unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
235 +
236 +DEPEND="${RDEPEND}
237 + ${PYTHON_DEPS}
238 + opencl? (
239 + >=sys-devel/gcc-4.6
240 + )
241 + sys-devel/bison
242 + sys-devel/flex
243 + sys-devel/gettext
244 + virtual/pkgconfig
245 + valgrind? ( dev-util/valgrind )
246 + x11-base/xorg-proto
247 + x11-libs/libXrandr[${MULTILIB_USEDEP}]
248 + $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
249 +"
250 +
251 +S="${WORKDIR}/${MY_P}"
252 +EGIT_CHECKOUT_DIR=${S}
253 +
254 +QA_WX_LOAD="
255 +x86? (
256 + !pic? (
257 + usr/lib*/libglapi.so.0.0.0
258 + usr/lib*/libGLESv1_CM.so.1.0.0
259 + usr/lib*/libGLESv2.so.2.0.0
260 + usr/lib*/libGL.so.1.2.0
261 + usr/lib*/libOSMesa.so.8.0.0
262 + )
263 +)"
264 +
265 +llvm_check_deps() {
266 + local flags=${MULTILIB_USEDEP}
267 + if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
268 + then
269 + flags+=",llvm_targets_AMDGPU(-)"
270 + fi
271 +
272 + if use opencl; then
273 + has_version "sys-devel/clang[${flags}]" || return 1
274 + fi
275 + has_version "sys-devel/llvm[${flags}]"
276 +}
277 +
278 +pkg_pretend() {
279 + if use opencl; then
280 + if ! use video_cards_r600 &&
281 + ! use video_cards_radeonsi; then
282 + ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
283 + fi
284 + fi
285 +
286 + if use vaapi; then
287 + if ! use video_cards_r600 &&
288 + ! use video_cards_radeonsi &&
289 + ! use video_cards_nouveau; then
290 + ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
291 + fi
292 + fi
293 +
294 + if use vdpau; then
295 + if ! use video_cards_r300 &&
296 + ! use video_cards_r600 &&
297 + ! use video_cards_radeonsi &&
298 + ! use video_cards_nouveau; then
299 + ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
300 + fi
301 + fi
302 +
303 + if use xa; then
304 + if ! use video_cards_freedreno &&
305 + ! use video_cards_nouveau &&
306 + ! use video_cards_vmware; then
307 + ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
308 + fi
309 + fi
310 +
311 + if use xvmc; then
312 + if ! use video_cards_r600 &&
313 + ! use video_cards_nouveau; then
314 + ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
315 + fi
316 + fi
317 +
318 + if ! use gallium; then
319 + use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
320 + use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
321 + use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
322 + use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
323 + use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
324 + use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
325 + use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
326 + use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
327 + fi
328 +
329 + if ! use llvm; then
330 + use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
331 + fi
332 +}
333 +
334 +pkg_setup() {
335 + # warning message for bug 459306
336 + if use llvm && has_version sys-devel/llvm[!debug=]; then
337 + ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
338 + ewarn "detected! This can cause problems. For details, see bug 459306."
339 + fi
340 +
341 + if use llvm; then
342 + llvm_pkg_setup
343 + fi
344 + python-any-r1_pkg_setup
345 +}
346 +
347 +multilib_src_configure() {
348 + local emesonargs=()
349 +
350 + if use classic; then
351 + # Intel code
352 + dri_driver_enable video_cards_i915 i915
353 + dri_driver_enable video_cards_i965 i965
354 + if ! use video_cards_i915 && \
355 + ! use video_cards_i965; then
356 + dri_driver_enable video_cards_intel i915 i965
357 + fi
358 +
359 + # Nouveau code
360 + dri_driver_enable video_cards_nouveau nouveau
361 +
362 + # ATI code
363 + dri_driver_enable video_cards_r100 r100
364 + dri_driver_enable video_cards_r200 r200
365 + if ! use video_cards_r100 && \
366 + ! use video_cards_r200; then
367 + dri_driver_enable video_cards_radeon r100 r200
368 + fi
369 + fi
370 +
371 + emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
372 +
373 + if use gallium; then
374 + emesonargs+=(
375 + $(meson_use llvm)
376 + $(meson_use lm_sensors lmsensors)
377 + $(meson_use unwind libunwind)
378 + )
379 +
380 + if use video_cards_r300 ||
381 + use video_cards_r600 ||
382 + use video_cards_radeonsi ||
383 + use video_cards_nouveau ||
384 + use video_cards_vmware; then
385 + emesonargs+=($(meson_use d3d9 gallium-nine))
386 + else
387 + emesonargs+=(-Dgallium-nine=false)
388 + fi
389 +
390 + if use video_cards_r600 ||
391 + use video_cards_radeonsi ||
392 + use video_cards_nouveau; then
393 + emesonargs+=($(meson_use vaapi gallium-va))
394 + use vaapi && emesonargs+=( -Dva-libs-path=/usr/$(get_libdir)/va/drivers )
395 + else
396 + emesonargs+=(-Dgallium-va=false)
397 + fi
398 +
399 + if use video_cards_r300 ||
400 + use video_cards_r600 ||
401 + use video_cards_radeonsi ||
402 + use video_cards_nouveau; then
403 + emesonargs+=($(meson_use vdpau gallium-vdpau))
404 + else
405 + emesonargs+=(-Dgallium-vdpau=false)
406 + fi
407 +
408 + if use video_cards_freedreno ||
409 + use video_cards_nouveau ||
410 + use video_cards_vmware; then
411 + emesonargs+=($(meson_use xa gallium-xa))
412 + else
413 + emesonargs+=(-Dgallium-xa=false)
414 + fi
415 +
416 + if use video_cards_r600 ||
417 + use video_cards_nouveau; then
418 + emesonargs+=($(meson_use xvmc gallium-xvmc))
419 + else
420 + emesonargs+=(-Dgallium-xvmc=false)
421 + fi
422 +
423 + gallium_enable video_cards_vc4 vc4
424 + gallium_enable video_cards_vivante etnaviv
425 + gallium_enable video_cards_vmware svga
426 + gallium_enable video_cards_nouveau nouveau
427 + gallium_enable video_cards_imx imx
428 +
429 + # Only one i915 driver (classic vs gallium). Default to classic.
430 + if ! use classic; then
431 + gallium_enable video_cards_i915 i915
432 + if ! use video_cards_i915 && \
433 + ! use video_cards_i965; then
434 + gallium_enable video_cards_intel i915
435 + fi
436 + fi
437 +
438 + gallium_enable video_cards_r300 r300
439 + gallium_enable video_cards_r600 r600
440 + gallium_enable video_cards_radeonsi radeonsi
441 + if ! use video_cards_r300 && \
442 + ! use video_cards_r600; then
443 + gallium_enable video_cards_radeon r300 r600
444 + fi
445 +
446 + gallium_enable video_cards_freedreno freedreno
447 + gallium_enable video_cards_virgl virgl
448 +
449 + # opencl stuff
450 + emesonargs+=(
451 + -Dgallium-opencl="$(usex opencl icd disabled)"
452 + )
453 + fi
454 +
455 + if use vulkan; then
456 + vulkan_enable video_cards_i965 intel
457 + vulkan_enable video_cards_radeonsi amd
458 + fi
459 +
460 + # x86 hardened pax_kernel needs glx-rts, bug 240956
461 + if [[ ${ABI} == x86 ]]; then
462 + emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
463 + fi
464 +
465 + # on abi_x86_32 hardened we need to have asm disable
466 + if [[ ${ABI} == x86* ]] && use pic; then
467 + emesonargs+=( -Dasm=false )
468 + fi
469 +
470 + if use gallium; then
471 + gallium_enable -- swrast
472 + emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
473 + else
474 + dri_driver_enable -- swrast
475 + emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
476 + fi
477 +
478 + driver_list() {
479 + local drivers="$(sort -u <<< "${1// /$'\n'}")"
480 + echo "${drivers//$'\n'/,}"
481 + }
482 +
483 + emesonargs+=(
484 + $(meson_use test build-tests)
485 + -Dglx=dri
486 + -Dshared-glapi=true
487 + $(meson_use dri3)
488 + $(meson_use egl)
489 + $(meson_use gbm)
490 + $(meson_use gles1)
491 + $(meson_use gles2)
492 + $(meson_use selinux)
493 + -Dvalgrind=$(usex valgrind auto false)
494 + -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
495 + -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
496 + -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
497 + --buildtype $(usex debug debug plain)
498 + -Db_ndebug=$(usex debug false true)
499 + )
500 + meson_src_configure
501 +}
502 +
503 +multilib_src_compile() {
504 + meson_src_compile
505 +}
506 +
507 +multilib_src_install() {
508 + meson_src_install
509 +}
510 +
511 +multilib_src_install_all() {
512 + einstalldocs
513 +}
514 +
515 +multilib_src_test() {
516 + meson_src_test
517 +}
518 +
519 +pkg_postinst() {
520 + # Switch to the xorg implementation.
521 + echo
522 + eselect opengl set --use-old ${OPENGL_DIR}
523 +}
524 +
525 +# $1 - VIDEO_CARDS flag (check skipped for "--")
526 +# other args - names of DRI drivers to enable
527 +dri_driver_enable() {
528 + if [[ $1 == -- ]] || use $1; then
529 + shift
530 + DRI_DRIVERS+=("$@")
531 + fi
532 +}
533 +
534 +gallium_enable() {
535 + if [[ $1 == -- ]] || use $1; then
536 + shift
537 + GALLIUM_DRIVERS+=("$@")
538 + fi
539 +}
540 +
541 +vulkan_enable() {
542 + if [[ $1 == -- ]] || use $1; then
543 + shift
544 + VULKAN_DRIVERS+=("$@")
545 + fi
546 +}