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