VirtualBox

source: vbox/trunk/src/VBox/Additions/3D/mesa/mesa-24.0.2/meson_options.txt@ 104894

最後變更 在這個檔案從104894是 103996,由 vboxsync 提交於 10 月 前

Additions/3D/mesa: export mesa-24.0.2 to OSE. bugref:10606

  • 屬性 svn:eol-style 設為 native
檔案大小: 16.3 KB
 
1# Copyright © 2017-2019 Intel Corporation
2# SPDX-License-Identifier: MIT
3
4option(
5 'platforms',
6 type : 'array',
7 value : ['auto'],
8 choices : [
9 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
10 ],
11 description : 'window systems to support. If this is set to `auto`, all ' +
12 'platforms applicable will be enabled.'
13)
14
15option(
16 'egl-native-platform',
17 type : 'combo',
18 value : 'auto',
19 choices : [
20 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
21 'surfaceless', 'drm',
22 ],
23 description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY',
24)
25
26option(
27 'android-stub',
28 type : 'boolean',
29 value : false,
30 description : 'Build against android-stub',
31)
32
33option(
34 'android-strict',
35 type : 'boolean',
36 value : true,
37 description : 'Enable strict Android compliance. Disabling may cause CTS ' +
38 'failures or other problems, but allows drivers to expose ' +
39 'capabilities that are normally hidden. Default: true'
40)
41
42option(
43 'android-libbacktrace',
44 type : 'feature',
45 description : 'Use Android\'s libbacktrace',
46)
47
48option(
49 'dri3',
50 type : 'feature',
51 deprecated: {'true': 'enabled', 'false': 'disabled'},
52 description : 'enable support for dri3'
53)
54
55option(
56 'dri-drivers-path',
57 type : 'string',
58 value : '',
59 description : 'Location to install dri drivers. Default: $libdir/dri.'
60)
61
62option(
63 'dri-search-path',
64 type : 'string',
65 value : '',
66 description : 'Locations to search for dri drivers, passed as colon ' +
67 'separated list. Default: dri-drivers-path.'
68)
69
70option(
71 'expat',
72 type : 'feature',
73 value : 'auto',
74 description : 'Controls the use of expat. ' +
75 'Cannot be disabled if xmlconfig is enabled.'
76)
77
78option(
79 'gallium-drivers',
80 type : 'array',
81 value : ['auto'],
82 choices : [
83 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
84 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
85 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus', 'all',
86 ],
87 description : 'List of gallium drivers to build. If this is set to auto ' +
88 'all drivers applicable to the target OS/architecture ' +
89 'will be built'
90)
91
92option(
93 'gallium-extra-hud',
94 type : 'boolean',
95 value : false,
96 description : 'Enable HUD block/NIC I/O HUD status support',
97)
98
99option(
100 'gallium-vdpau',
101 type : 'feature',
102 deprecated: {'true': 'enabled', 'false': 'disabled'},
103 description : 'enable gallium vdpau frontend.',
104)
105
106option(
107 'vdpau-libs-path',
108 type : 'string',
109 value : '',
110 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
111)
112
113option(
114 'gallium-omx',
115 type : 'combo',
116 value : 'auto',
117 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
118 description : 'enable gallium omx frontend.',
119)
120
121option(
122 'omx-libs-path',
123 type : 'string',
124 value : '',
125 description : 'path to put omx libraries. defaults to omx-bellagio ' +
126 'pkg-config pluginsdir.'
127)
128
129option(
130 'gallium-va',
131 type : 'feature',
132 deprecated: {'true': 'enabled', 'false': 'disabled'},
133 description : 'enable gallium va frontend.',
134)
135
136option(
137 'va-libs-path',
138 type : 'string',
139 value : '',
140 description : 'path to put va libraries. defaults to $libdir/dri.'
141)
142
143option(
144 'gallium-xa',
145 type : 'feature',
146 deprecated: {'true': 'enabled', 'false': 'disabled'},
147 description : 'enable gallium xa frontend.',
148)
149
150option(
151 'gallium-nine',
152 type : 'boolean',
153 value : false,
154 description : 'build gallium "nine" Direct3D 9.x frontend.',
155)
156
157option(
158 'gallium-d3d10umd',
159 type : 'boolean',
160 value : false,
161 description : 'build gallium D3D10 WDDM UMD frontend.',
162)
163
164option(
165 'gallium-opencl',
166 type : 'combo',
167 choices : ['icd', 'standalone', 'disabled'],
168 value : 'disabled',
169 description : 'build gallium "clover" OpenCL frontend.',
170)
171
172option(
173 'gallium-rusticl',
174 type : 'boolean',
175 value : false,
176 description : 'build gallium "rusticl" OpenCL frontend.',
177)
178
179option(
180 'gallium-windows-dll-name',
181 type : 'string',
182 value : 'libgallium_wgl',
183 description : 'name of gallium megadriver DLL built for Windows. ' +
184 'defaults to libgallium_wgl.dll to match DRI',
185)
186
187option(
188 'opencl-spirv',
189 type : 'boolean',
190 value : false,
191 description : 'build gallium "clover" OpenCL frontend with SPIR-V ' +
192 'binary support.',
193)
194
195option(
196 'static-libclc',
197 type : 'array',
198 value : [],
199 choices : ['spirv', 'spirv64', 'all'],
200 description : 'Link libclc SPIR-V statically.',
201)
202
203option(
204 'opencl-external-clang-headers',
205 type : 'feature',
206 description : 'Use system Clang headers at runtime for OpenCL kernel ' +
207 'compilation.',
208)
209
210option(
211 'd3d-drivers-path',
212 type : 'string',
213 value : '',
214 description : 'Location of D3D drivers. Default: $libdir/d3d',
215)
216
217option(
218 'vulkan-drivers',
219 type : 'array',
220 value : ['auto'],
221 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
222 'panfrost', 'swrast', 'virtio', 'imagination-experimental',
223 'microsoft-experimental', 'nouveau-experimental', 'all'],
224 description : 'List of vulkan drivers to build. If this is set to auto ' +
225 'all drivers applicable to the target OS/architecture ' +
226 'will be built'
227)
228
229# Note that currently turnip supports msm and kgsl, while the gallium driver
230# support msm and virtio. This is a temporary situation with virtio support
231# for turnip and kgsl support for gallium planned/in-progress.
232option(
233 'freedreno-kmds',
234 type : 'array',
235 value : ['msm'],
236 choices : ['msm', 'kgsl', 'virtio'],
237 description : 'List of kernel-mode drivers to enable for freedreno ' +
238 'gallium and vulkan driver',
239)
240
241option(
242 'imagination-srv',
243 type : 'boolean',
244 value : false,
245 description : 'Enable Services backend for Imagination Technologies ' +
246 'vulkan driver',
247)
248
249option(
250 'shader-cache',
251 type : 'feature',
252 deprecated: {'true': 'enabled', 'false': 'disabled'},
253 description : 'Build with on-disk shader cache support.',
254)
255
256option(
257 'shader-cache-default',
258 type : 'boolean',
259 value : true,
260 description : 'If set to false, the feature is only activated when ' +
261 'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
262 'to false',
263)
264
265option(
266 'shader-cache-max-size',
267 type : 'string',
268 value : '',
269 description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
270 'variable. If set, determines the maximum size of the ' +
271 'on-disk cache of compiled shader programs, can be overriden ' +
272 'by enviroment variable if needed. Should be set to a number ' +
273 'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
274 'a size in kilobytes, megabytes, or gigabytes. By default, ' +
275 'gigabytes will be assumed. And if unset, a maximum size of ' +
276 '1GB will be used.'
277)
278
279option(
280 'vulkan-icd-dir',
281 type : 'string',
282 value : '',
283 description : 'Location relative to prefix to put vulkan icds on install. ' +
284 'Default: $datadir/vulkan/icd.d'
285)
286
287option(
288 'moltenvk-dir',
289 type : 'string',
290 value : '',
291 description : 'Location of the MoltenVk SDK. Default: '
292)
293
294option(
295 'vulkan-layers',
296 type : 'array',
297 value : [],
298 choices : ['device-select', 'intel-nullhw', 'overlay'],
299 description : 'List of vulkan layers to build'
300)
301
302option(
303 'shared-glapi',
304 type : 'feature',
305 deprecated: {'true': 'enabled', 'false': 'disabled'},
306 description : 'Whether to build a shared or static glapi. Defaults to ' +
307 'disabled on Windows, enabled elsewhere'
308)
309
310option(
311 'gles1',
312 type : 'feature',
313 deprecated: {'true': 'enabled', 'false': 'disabled'},
314 description : 'Build support for OpenGL ES 1.x'
315)
316
317option(
318 'gles2',
319 type : 'feature',
320 deprecated: {'true': 'enabled', 'false': 'disabled'},
321 description : 'Build support for OpenGL ES 2.x and 3.x'
322)
323
324option(
325 'opengl',
326 type : 'boolean',
327 value : true,
328 description : 'Build support for desktop OpenGL'
329)
330
331option(
332 'gbm',
333 type : 'feature',
334 deprecated: {'true': 'enabled', 'false': 'disabled'},
335 description : 'Build support for gbm platform'
336)
337
338option(
339 'gbm-backends-path',
340 type : 'string',
341 value : '',
342 description : 'Locations to search for gbm backends, passed as colon ' +
343 'separated list. Default: $libdir/gbm.'
344)
345
346option(
347 'glx',
348 type : 'combo',
349 value : 'auto',
350 choices : ['auto', 'disabled', 'dri', 'xlib'],
351 description : 'Build support for GLX platform'
352)
353
354option(
355 'egl',
356 type : 'feature',
357 deprecated: {'true': 'enabled', 'false': 'disabled'},
358 description : 'Build support for EGL platform'
359)
360
361option(
362 'glvnd',
363 type : 'boolean',
364 value : false,
365 description : 'Enable GLVND support.'
366)
367
368option(
369 'microsoft-clc',
370 type : 'feature',
371 value : 'auto',
372 deprecated: {'true': 'enabled', 'false': 'disabled'},
373 description : 'Build support for the Microsoft CLC to DXIL compiler'
374)
375
376option(
377 'spirv-to-dxil',
378 type : 'boolean',
379 value : false,
380 description : 'Build support for the SPIR-V to DXIL library'
381)
382
383option(
384 'glvnd-vendor-name',
385 type : 'string',
386 value : 'mesa',
387 description : 'Vendor name string to use for glvnd libraries'
388)
389
390option(
391 'glx-read-only-text',
392 type : 'boolean',
393 value : false,
394 description : 'Disable writable .text section on x86 (decreases performance)'
395)
396
397option(
398 'llvm',
399 type : 'feature',
400 deprecated: {'true': 'enabled', 'false': 'disabled'},
401 description : 'Build with LLVM support.'
402)
403
404option(
405 'shared-llvm',
406 type : 'feature',
407 deprecated: {'true': 'enabled', 'false': 'disabled'},
408 description : 'Whether to link LLVM shared or statically.'
409)
410
411option(
412 'draw-use-llvm',
413 type : 'boolean',
414 value : true,
415 description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
416 'is included.'
417)
418
419option(
420 'valgrind',
421 type : 'feature',
422 deprecated: {'true': 'enabled', 'false': 'disabled'},
423 description : 'Build with valgrind support'
424)
425
426option(
427 'libunwind',
428 type : 'feature',
429 deprecated: {'true': 'enabled', 'false': 'disabled'},
430 description : 'Use libunwind for stack-traces'
431)
432
433option(
434 'lmsensors',
435 type : 'feature',
436 deprecated: {'true': 'enabled', 'false': 'disabled'},
437 description : 'Enable HUD lmsensors support.'
438)
439
440option(
441 'build-tests',
442 type : 'boolean',
443 value : false,
444 description : 'Build unit tests. Currently this will build *all* unit ' +
445 'tests except the ACO tests, which may build more than expected.'
446)
447
448option(
449 'enable-glcpp-tests',
450 type : 'boolean',
451 value : true,
452 description : 'Build glcpp unit tests. These are flaky on CI.'
453)
454
455option(
456 'build-aco-tests',
457 type : 'boolean',
458 value : false,
459 description : 'Build ACO tests. These require RADV and glslang but not ' +
460 'an AMD GPU.'
461)
462
463option(
464 'install-intel-gpu-tests',
465 type : 'boolean',
466 value : false,
467 description : 'Build and install Intel unit tests which require the GPU. ' +
468 'This option is for developers and the Intel CI system only.'
469)
470
471option(
472 'selinux',
473 type : 'boolean',
474 value : false,
475 description : 'Build an SELinux-aware Mesa. This currently disables ' +
476 'execmem support at runtime unless SELinux is configured ' +
477 'with allow_execmem.'
478)
479
480option(
481 'execmem',
482 type : 'boolean',
483 deprecated : true,
484 description : 'Does nothing, left here for a while to avoid build breakages.',
485)
486
487option(
488 'osmesa',
489 type : 'boolean',
490 value : false,
491 description : 'Build OSmesa.'
492)
493
494option(
495 'tools',
496 type : 'array',
497 value : [],
498 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui',
499 'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination',
500 'all', 'dlclose-skip'],
501 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
502)
503
504option(
505 'power8',
506 type : 'feature',
507 deprecated: {'true': 'enabled', 'false': 'disabled'},
508 description : 'Enable power8 optimizations.',
509)
510
511option(
512 'xlib-lease',
513 type : 'feature',
514 deprecated: {'true': 'enabled', 'false': 'disabled'},
515 description : 'Enable VK_EXT_acquire_xlib_display.'
516)
517
518option(
519 'glx-direct',
520 type : 'boolean',
521 value : true,
522 description : 'Enable direct rendering in GLX and EGL for DRI',
523)
524
525option('egl-lib-suffix',
526 type : 'string',
527 value : '',
528 description : 'Suffix to append to EGL library name. Default: none.'
529)
530
531option(
532 'gles-lib-suffix',
533 type : 'string',
534 value : '',
535 description : 'Suffix to append to GLES library names. Default: none.'
536)
537
538option(
539 'platform-sdk-version',
540 type : 'integer',
541 min : 25,
542 max : 10000,
543 value : 25,
544 description : 'Android Platform SDK version. Default: Nougat version.'
545)
546
547option(
548 'allow-kcmp',
549 type : 'feature',
550 deprecated: {'true': 'enabled', 'false': 'disabled'},
551 description : 'Allow using KCMP_FILE to compare file descriptions. ' +
552 'auto = allowed everywhere except on Android'
553)
554
555option(
556 'zstd',
557 type : 'feature',
558 deprecated: {'true': 'enabled', 'false': 'disabled'},
559 description : 'Use ZSTD instead of ZLIB in some cases.'
560)
561
562option(
563 'zlib',
564 type : 'feature',
565 deprecated: {'true': 'enabled', 'false': 'disabled'},
566 value : 'enabled',
567 description : 'Use ZLIB to build driver. Default: enabled'
568)
569
570option(
571 'sse2',
572 type : 'boolean',
573 value : true,
574 description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
575)
576
577option(
578 'perfetto',
579 type : 'boolean',
580 value : false,
581 description : 'Enable performance analysis with Perfetto. Default: false'
582)
583
584option(
585 'datasources',
586 type : 'array',
587 value : ['auto'],
588 choices : ['auto', 'panfrost', 'intel', 'freedreno'],
589 description : 'List of Perfetto datasources to build. If this is set to ' +
590 '`auto`, datasources that can not be build are skipped. ' +
591 'Default: [`auto`]'
592)
593
594option(
595 'gpuvis',
596 type : 'boolean',
597 value : false,
598 description : 'Enable tracing markers for gpuvis. Default: false'
599)
600
601option(
602 'custom-shader-replacement',
603 type : 'string',
604 value : '',
605 description : 'Enable a custom shader replacement mechanism. Note that ' +
606 'enabling this option requires adding/generating a ' +
607 'shader_replacement.h file that can be included (see ' +
608 'shaderapi.c).'
609)
610
611option(
612 'vmware-mks-stats',
613 type : 'boolean',
614 value : false,
615 description : 'Build gallium VMware/svga driver with mksGuestStats ' +
616 'instrumentation.'
617)
618
619option(
620 'vulkan-beta',
621 type : 'boolean',
622 value : false,
623 description : 'Build vulkan drivers with BETA extensions enabled.'
624)
625
626option(
627 'intel-clc',
628 type : 'combo',
629 deprecated: {'true': 'enabled', 'false': 'disabled'},
630 value : 'disabled',
631 choices : [
632 'enabled', 'disabled', 'system',
633 ],
634 description : 'Build the intel-clc compiler (enables Vulkan Intel ' +
635 'Ray Tracing on supported hardware).'
636)
637
638option(
639 'video-codecs',
640 type : 'array',
641 value : ['all_free'],
642 choices: [
643 'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', 'av1dec', 'av1enc', 'vp9dec'
644 ],
645 description : 'List of codecs to build support for. ' +
646 'Distros might want to consult their legal department before ' +
647 'enabling these. This is used for all video APIs (vaapi, ' +
648 'vdpau, vulkan). Non-patent encumbered codecs will be ' +
649 'enabled by default with the all_free default value.'
650)
651
652option(
653 'gallium-d3d12-video',
654 type : 'feature',
655 value : 'auto',
656 deprecated: {'true': 'enabled', 'false': 'disabled'},
657 description : 'build gallium d3d12 with video support.',
658)
659
660option(
661 'radv-build-id',
662 type : 'string',
663 value : '',
664 description : 'Override build id for shader cache keys (hex string). ' +
665 'Can be extracted with readelf -x .note.gnu.build-id'
666)
667
668option(
669 'min-windows-version',
670 type : 'integer',
671 min : 7,
672 max : 11,
673 value : 8,
674 description : 'Minimum Windows version to support. Defaults to Windows 8.'
675)
676
677option(
678 'xmlconfig',
679 type : 'feature',
680 value : 'auto',
681 deprecated: {'true': 'enabled', 'false': 'disabled'},
682 description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
683 'the default driconf file is hardcoded into Mesa. ' +
684 'Requires expat.'
685)
686
687option (
688 'intel-xe-kmd',
689 type : 'feature',
690 value : 'disabled',
691 description: 'Enable Intel Xe KMD support.'
692)
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette