1 # Copyright © 2017-2019 Intel Corporation
2 # SPDX-License-Identifier: MIT
8 description : 'split debug information (-gsplit-dwarf compile flag) and debug information in the gdb index format (--gdb-index)',
15 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows', 'macos',
17 description : 'window systems to support. If this is set to `auto`, all ' +
18 'platforms applicable will be enabled.'
22 'egl-native-platform',
26 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
29 description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY',
36 description : 'Build against android-stub',
43 description : 'Enable strict Android compliance. Disabling may cause CTS ' +
44 'failures or other problems, but allows drivers to expose ' +
45 'capabilities that are normally hidden. Default: true'
49 'android-libbacktrace',
51 description : 'Use Android\'s libbacktrace',
58 description : 'Location to install dri drivers. Default: $libdir/dri.'
62 'unversion-libgallium',
65 description : 'Do not include mesa version in libgallium DSO filename. ' +
66 'Do not enable unless you know what you are doing. Default: false'
73 description : 'Controls the use of expat. ' +
74 'Cannot be disabled if xmlconfig is enabled.'
82 'auto', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
83 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
84 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus', 'all',
85 'softpipe', 'llvmpipe',
87 description : 'List of gallium drivers to build. If this is set to auto ' +
88 'all drivers applicable to the target OS/architecture ' +
96 description : 'Enable HUD block/NIC I/O HUD status support',
102 deprecated: {'true': 'enabled', 'false': 'disabled'},
103 description : 'enable gallium vdpau frontend.',
110 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
116 deprecated: {'true': 'enabled', 'false': 'disabled'},
117 description : 'enable gallium va frontend.',
124 description : 'path to put va libraries. defaults to $libdir/dri.'
130 deprecated: {'true': 'enabled', 'false': 'disabled'},
131 description : 'enable gallium xa frontend.',
138 description : 'build gallium "nine" Direct3D 9.x frontend.',
145 description : 'build gallium D3D10 WDDM UMD frontend.',
151 choices : ['icd', 'standalone', 'disabled'],
153 description : 'build gallium "clover" OpenCL frontend.',
160 description : 'build gallium "rusticl" OpenCL frontend.',
164 'gallium-rusticl-enable-drivers',
166 value : ['auto', 'asahi'],
167 description : 'List of gallium drivers for which rusticl will be enabled ' +
172 'gallium-wgl-dll-name',
174 value : 'libgallium_wgl',
175 description : 'name of gallium wgl target DLL built for Windows. ' +
176 'defaults to libgallium_wgl.dll to match DRI',
180 'gallium-d3d10-dll-name',
182 value : 'libgallium_d3d10',
183 description : 'name of gallium d3d10 target DLL built for Windows. ' +
184 'defaults to libgallium_d3d10.dll to match DRI',
191 choices : ['spirv', 'spirv64', 'all'],
192 description : 'Link libclc SPIR-V statically.',
199 description : 'Location of D3D drivers. Default: $libdir/d3d',
206 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
207 'panfrost', 'swrast', 'virtio', 'imagination-experimental',
208 'microsoft-experimental', 'nouveau', 'asahi', 'gfxstream',
210 description : 'List of vulkan drivers to build. If this is set to auto ' +
211 'all drivers applicable to the target OS/architecture ' +
215 # Note that currently turnip supports msm and kgsl, while the gallium driver
216 # support msm and virtio. This is a temporary situation with virtio support
217 # for turnip and kgsl support for gallium planned/in-progress.
222 choices : ['msm', 'kgsl', 'virtio', 'wsl'],
223 description : 'List of kernel-mode drivers to enable for freedreno ' +
224 'gallium and vulkan driver',
231 description : 'use experimental virtio backend for radeonsi/radv',
237 description : 'Enable Services backend for Imagination Technologies ' +
244 deprecated: {'true': 'enabled', 'false': 'disabled'},
245 description : 'Build with on-disk shader cache support.',
249 'shader-cache-default',
252 description : 'If set to false, the feature is only activated when ' +
253 'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
258 'shader-cache-max-size',
261 description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
262 'variable. If set, determines the maximum size of the ' +
263 'on-disk cache of compiled shader programs, can be overriden ' +
264 'by enviroment variable if needed. Should be set to a number ' +
265 'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
266 'a size in kilobytes, megabytes, or gigabytes. By default, ' +
267 'gigabytes will be assumed. And if unset, a maximum size of ' +
275 description : 'Location relative to prefix to put vulkan icds on install. ' +
276 'Default: $datadir/vulkan/icd.d'
283 description : 'Location of the MoltenVk SDK. Default: '
291 'device-select', 'intel-nullhw', 'overlay', 'screenshot',
294 description : 'List of vulkan layers to build'
300 deprecated: {'true': 'enabled', 'false': 'disabled'},
301 description : 'Whether to build a shared or static glapi. Defaults to ' +
302 'disabled on Windows, enabled elsewhere'
308 deprecated: {'true': 'enabled', 'false': 'disabled'},
309 description : 'Build support for OpenGL ES 1.x'
315 deprecated: {'true': 'enabled', 'false': 'disabled'},
316 description : 'Build support for OpenGL ES 2.x and 3.x'
323 description : 'Build support for desktop OpenGL'
329 deprecated: {'true': 'enabled', 'false': 'disabled'},
330 description : 'Build support for gbm platform'
337 description : 'Locations to search for gbm backends, passed as colon ' +
338 'separated list. Default: $libdir/gbm.'
345 choices : ['auto', 'disabled', 'dri', 'xlib'],
346 description : 'Build support for GLX platform'
352 deprecated: {'true': 'enabled', 'false': 'disabled'},
353 description : 'Build support for EGL platform'
359 deprecated: {'true': 'enabled', 'false': 'disabled'},
360 description : 'Enable GLVND support.'
367 deprecated: {'true': 'enabled', 'false': 'disabled'},
368 description : 'Build support for the Microsoft CLC to DXIL compiler'
375 description : 'Build support for the SPIR-V to DXIL library'
382 description : 'Vendor name string to use for glvnd libraries'
386 'glx-read-only-text',
389 description : 'Disable writable .text section on x86 (decreases performance)'
395 deprecated: {'true': 'enabled', 'false': 'disabled'},
396 description : 'Build with LLVM support.'
402 deprecated: {'true': 'enabled', 'false': 'disabled'},
403 description : 'Whether to link LLVM shared or statically.'
410 description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
418 description : 'Whether to use LLVM for the AMD drivers, if LLVM ' +
426 description: 'Build llvmpipe with LLVM ORCJIT support. Has no effect when ' +
427 'building for architectures without LLVM MCJIT support -- ' +
428 'ORCJIT is the only choice on such architectures and will ' +
435 deprecated: {'true': 'enabled', 'false': 'disabled'},
436 description : 'Build with valgrind support'
442 deprecated: {'true': 'enabled', 'false': 'disabled'},
443 description : 'Use libunwind for stack-traces'
449 deprecated: {'true': 'enabled', 'false': 'disabled'},
450 description : 'Enable HUD lmsensors support.'
457 description : 'Build unit tests. Currently this will build *all* unit ' +
458 'tests except the ACO tests, which may build more than expected.'
462 'enable-glcpp-tests',
465 description : 'Build glcpp unit tests. These are flaky on CI.'
472 description : 'Build ACO tests. These require RADV and glslang but not ' +
477 'install-intel-gpu-tests',
480 description : 'Build and install Intel unit tests which require the GPU. ' +
481 'This option is for developers and the Intel CI system only.'
488 description : 'Build HTML documentation.'
495 description : 'Location to install HTML documentation. Default: $datadir/doc/mesa.'
502 description : 'Does nothing, left here for a while to avoid build breakages.',
509 description : 'Does nothing, left here for a while to avoid build breakages.',
516 description : 'Build OSmesa.'
523 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui',
524 'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination',
525 'all', 'dlclose-skip'],
526 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
532 deprecated: {'true': 'enabled', 'false': 'disabled'},
533 description : 'Enable power8 optimizations.',
539 deprecated: {'true': 'enabled', 'false': 'disabled'},
540 description : 'Enable VK_EXT_acquire_xlib_display.'
547 description : 'Enable direct rendering in GLX and EGL for DRI',
550 option('egl-lib-suffix',
553 description : 'Suffix to append to EGL library name. Default: none.'
560 description : 'Suffix to append to GLES library names. Default: none.'
564 'platform-sdk-version',
569 description : 'Android Platform SDK version. Default: Nougat version.'
575 deprecated: {'true': 'enabled', 'false': 'disabled'},
576 description : 'Allow using KCMP_FILE to compare file descriptions. ' +
577 'auto = allowed everywhere except on Android'
583 deprecated: {'true': 'enabled', 'false': 'disabled'},
584 description : 'Use ZSTD instead of ZLIB in some cases.'
590 deprecated: {'true': 'enabled', 'false': 'disabled'},
592 description : 'Use ZLIB to build driver. Default: enabled'
599 description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
606 description : 'Enable performance analysis with Perfetto. Default: false'
613 choices : ['auto', 'panfrost', 'intel', 'freedreno'],
614 description : 'List of Perfetto datasources to build. If this is set to ' +
615 '`auto`, datasources that can not be build are skipped. ' +
623 description : 'Enable TensorFlow Lite delegate. Default: false'
630 description : 'Enable tracing markers for gpuvis. Default: false'
634 'custom-shader-replacement',
637 description : 'Enable a custom shader replacement mechanism. Note that ' +
638 'enabling this option requires adding/generating a ' +
639 'shader_replacement.h file that can be included (see ' +
647 description : 'Build gallium VMware/svga driver with mksGuestStats ' +
655 description : 'Build vulkan drivers with BETA extensions enabled.'
661 deprecated: {'true': 'enabled'},
664 'enabled', 'system', 'auto'
666 description : 'Build the intel-clc compiler or use a system version.'
673 description : 'Build the BVH structure using GRL.'
680 description : 'Install the intel-clc compiler (if needed for cross builds).'
686 deprecated: {'true': 'enabled', 'false': 'disabled'},
687 description : 'Build Ray Tracing on supported hardware.'
694 description : 'Build ELK compiler (used for Gfx8 and earlier). ' +
695 'This is required for Crocus and Hasvk, and it is ' +
696 'optional for Iris and various developer tools.'
702 value : ['all_free'],
704 'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', 'av1dec', 'av1enc', 'vp9dec'
706 description : 'List of codecs to build support for. ' +
707 'Distros might want to consult their legal department before ' +
708 'enabling these. This is used for all video APIs (vaapi, ' +
709 'vdpau, vulkan). Non-patent encumbered codecs will be ' +
710 'enabled by default with the all_free default value.'
714 'gallium-d3d12-video',
717 deprecated: {'true': 'enabled', 'false': 'disabled'},
718 description : 'build gallium d3d12 with video support.',
722 'gallium-d3d12-graphics',
725 description : 'build gallium d3d12 with graphics pipeline support.',
732 description : 'Override build id for shader cache keys (hex string). ' +
733 'Can be extracted with readelf -x .note.gnu.build-id'
737 'min-windows-version',
742 description : 'Minimum Windows version to support. Defaults to Windows 8.'
749 deprecated: {'true': 'enabled', 'false': 'disabled'},
750 description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
751 'the default driconf file is hardcoded into Mesa. ' +
759 description : 'Build legacy X11 support features.',
770 'enabled', 'system', 'auto'
772 description : 'Build the mesa-clc compiler or use a system version.'
779 description : 'Install the mesa-clc compiler (if needed for cross builds).'
787 'enabled', 'system', 'auto'
789 description : 'Build drivers internal shader compilers or use a system version'
793 'install-precomp-compiler',
796 description : 'Install the drivers internal shader compilers (if needed for cross builds).'