1 # Copyright © 2017-2019 Intel Corporation
2 # SPDX-License-Identifier: MIT
9 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
11 description : 'window systems to support. If this is set to `auto`, all ' +
12 'platforms applicable will be enabled.'
16 'egl-native-platform',
20 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
23 description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY',
30 description : 'Build against android-stub',
34 'android-libbacktrace',
36 description : 'Use Android\'s libbacktrace',
42 deprecated: {'true': 'enabled', 'false': 'disabled'},
43 description : 'enable support for dri3'
50 description : 'Location to install dri drivers. Default: $libdir/dri.'
57 description : 'Locations to search for dri drivers, passed as colon ' +
58 'separated list. Default: dri-drivers-path.'
65 description : 'Controls the use of expat. ' +
66 'Cannot be disabled if xmlconfig is enabled.'
74 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
75 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
76 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus'
78 description : 'List of gallium drivers to build. If this is set to auto ' +
79 'all drivers applicable to the target OS/architecture ' +
87 description : 'Enable HUD block/NIC I/O HUD status support',
93 deprecated: {'true': 'enabled', 'false': 'disabled'},
94 description : 'enable gallium vdpau frontend.',
101 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
108 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
109 description : 'enable gallium omx frontend.',
116 description : 'path to put omx libraries. defaults to omx-bellagio ' +
117 'pkg-config pluginsdir.'
123 deprecated: {'true': 'enabled', 'false': 'disabled'},
124 description : 'enable gallium va frontend.',
131 description : 'path to put va libraries. defaults to $libdir/dri.'
137 deprecated: {'true': 'enabled', 'false': 'disabled'},
138 description : 'enable gallium xa frontend.',
145 description : 'build gallium "nine" Direct3D 9.x frontend.',
152 description : 'build gallium D3D10 WDDM UMD frontend.',
158 choices : ['icd', 'standalone', 'disabled'],
160 description : 'build gallium "clover" OpenCL frontend.',
167 description : 'build gallium "rusticl" OpenCL frontend.',
171 'gallium-windows-dll-name',
173 value : 'libgallium_wgl',
174 description : 'name of gallium megadriver DLL built for Windows. ' +
175 'defaults to libgallium_wgl.dll to match DRI',
182 description : 'build gallium "clover" OpenCL frontend with SPIR-V ' +
190 choices : ['spirv', 'spirv64', 'all'],
191 description : 'Link libclc SPIR-V statically.',
195 'opencl-external-clang-headers',
197 description : 'Use system Clang headers at runtime for OpenCL kernel ' +
205 description : 'Location of D3D drivers. Default: $libdir/d3d',
212 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
213 'panfrost', 'swrast', 'virtio', 'imagination-experimental',
214 'microsoft-experimental', 'nouveau-experimental'],
215 description : 'List of vulkan drivers to build. If this is set to auto ' +
216 'all drivers applicable to the target OS/architecture ' +
220 # Note that currently turnip supports msm and kgsl, while the gallium driver
221 # support msm and virtio. This is a temporary situation with virtio support
222 # for turnip and kgsl support for gallium planned/in-progress.
227 choices : ['msm', 'kgsl', 'virtio'],
228 description : 'List of kernel-mode drivers to enable for freedreno ' +
229 'gallium and vulkan driver',
236 description : 'Enable Services backend for Imagination Technologies ' +
243 deprecated: {'true': 'enabled', 'false': 'disabled'},
244 description : 'Build with on-disk shader cache support.',
248 'shader-cache-default',
251 description : 'If set to false, the feature is only activated when ' +
252 'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
257 'shader-cache-max-size',
260 description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
261 'variable. If set, determines the maximum size of the ' +
262 'on-disk cache of compiled shader programs, can be overriden ' +
263 'by enviroment variable if needed. Should be set to a number ' +
264 'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
265 'a size in kilobytes, megabytes, or gigabytes. By default, ' +
266 'gigabytes will be assumed. And if unset, a maximum size of ' +
274 description : 'Location relative to prefix to put vulkan icds on install. ' +
275 'Default: $datadir/vulkan/icd.d'
282 description : 'Location of the MoltenVk SDK. Default: '
289 choices : ['device-select', 'intel-nullhw', 'overlay'],
290 description : 'List of vulkan layers to build'
296 deprecated: {'true': 'enabled', 'false': 'disabled'},
297 description : 'Whether to build a shared or static glapi. Defaults to ' +
298 'disabled on Windows, enabled elsewhere'
304 deprecated: {'true': 'enabled', 'false': 'disabled'},
305 description : 'Build support for OpenGL ES 1.x'
311 deprecated: {'true': 'enabled', 'false': 'disabled'},
312 description : 'Build support for OpenGL ES 2.x and 3.x'
319 description : 'Build support for desktop OpenGL'
325 deprecated: {'true': 'enabled', 'false': 'disabled'},
326 description : 'Build support for gbm platform'
333 description : 'Locations to search for gbm backends, passed as colon ' +
334 'separated list. Default: $libdir/gbm.'
341 choices : ['auto', 'disabled', 'dri', 'xlib'],
342 description : 'Build support for GLX platform'
348 deprecated: {'true': 'enabled', 'false': 'disabled'},
349 description : 'Build support for EGL platform'
356 description : 'Enable GLVND support.'
363 deprecated: {'true': 'enabled', 'false': 'disabled'},
364 description : 'Build support for the Microsoft CLC to DXIL compiler'
371 description : 'Build support for the SPIR-V to DXIL library'
378 description : 'Vendor name string to use for glvnd libraries'
382 'glx-read-only-text',
385 description : 'Disable writable .text section on x86 (decreases performance)'
391 deprecated: {'true': 'enabled', 'false': 'disabled'},
392 description : 'Build with LLVM support.'
398 deprecated: {'true': 'enabled', 'false': 'disabled'},
399 description : 'Whether to link LLVM shared or statically.'
406 description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
413 deprecated: {'true': 'enabled', 'false': 'disabled'},
414 description : 'Build with valgrind support'
420 deprecated: {'true': 'enabled', 'false': 'disabled'},
421 description : 'Use libunwind for stack-traces'
427 deprecated: {'true': 'enabled', 'false': 'disabled'},
428 description : 'Enable HUD lmsensors support.'
435 description : 'Build unit tests. Currently this will build *all* unit ' +
436 'tests except the ACO tests, which may build more than expected.'
440 'enable-glcpp-tests',
443 description : 'Build glcpp unit tests. These are flaky on CI.'
450 description : 'Build ACO tests. These require RADV and glslang but not ' +
455 'install-intel-gpu-tests',
458 description : 'Build and install Intel unit tests which require the GPU. ' +
459 'This option is for developers and the Intel CI system only.'
466 description : 'Build an SELinux-aware Mesa. This currently disables ' +
467 'execmem support at runtime unless SELinux is configured ' +
468 'with allow_execmem.'
475 description : 'Does nothing, left here for a while to avoid build breakages.',
482 description : 'Build OSmesa.'
489 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui',
490 'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination',
491 'all', 'dlclose-skip'],
492 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
498 deprecated: {'true': 'enabled', 'false': 'disabled'},
499 description : 'Enable power8 optimizations.',
505 deprecated: {'true': 'enabled', 'false': 'disabled'},
506 description : 'Enable VK_EXT_acquire_xlib_display.'
513 description : 'Enable direct rendering in GLX and EGL for DRI',
516 option('egl-lib-suffix',
519 description : 'Suffix to append to EGL library name. Default: none.'
526 description : 'Suffix to append to GLES library names. Default: none.'
530 'platform-sdk-version',
535 description : 'Android Platform SDK version. Default: Nougat version.'
541 deprecated: {'true': 'enabled', 'false': 'disabled'},
542 description : 'Allow using KCMP_FILE to compare file descriptions. ' +
543 'auto = allowed everywhere except on Android'
549 deprecated: {'true': 'enabled', 'false': 'disabled'},
550 description : 'Use ZSTD instead of ZLIB in some cases.'
556 deprecated: {'true': 'enabled', 'false': 'disabled'},
558 description : 'Use ZLIB to build driver. Default: enabled'
565 description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
572 description : 'Enable performance analysis with Perfetto. Default: false'
579 choices : ['auto', 'panfrost', 'intel', 'freedreno'],
580 description : 'List of Perfetto datasources to build. If this is set to ' +
581 '`auto`, datasources that can not be build are skipped. ' +
589 description : 'Enable tracing markers for gpuvis. Default: false'
593 'custom-shader-replacement',
596 description : 'Enable a custom shader replacement mechanism. Note that ' +
597 'enabling this option requires adding/generating a ' +
598 'shader_replacement.h file that can be included (see ' +
606 description : 'Build gallium VMware/svga driver with mksGuestStats ' +
614 description : 'Build vulkan drivers with BETA extensions enabled.'
620 deprecated: {'true': 'enabled', 'false': 'disabled'},
622 description : 'Build the intel-clc compiler (enables Vulkan Intel ' +
623 'Ray Tracing on supported hardware).'
631 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc'
633 description : 'List of patent encumbered codecs to build support for. ' +
634 'Distros might want to consult their legal department before ' +
635 'enabling these. This is used for all video APIs (vaapi, ' +
636 'vdpau, vulkan). Non-patent encumbered codecs will be ' +
637 'enabled by default.'
641 'gallium-d3d12-video',
644 deprecated: {'true': 'enabled', 'false': 'disabled'},
645 description : 'build gallium d3d12 with video support.',
652 description : 'Override build id for shader cache keys (hex string). ' +
653 'Can be extracted with readelf -x .note.gnu.build-id'
657 'min-windows-version',
662 description : 'Minimum Windows version to support. Defaults to Windows 8.'
669 deprecated: {'true': 'enabled', 'false': 'disabled'},
670 description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
671 'the default driconf file is hardcoded into Mesa. ' +
679 description: 'Enable Intel Xe KMD support.'
686 description : 'Build support for legacy kernel uAPI.'