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.'
66 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
67 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
68 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus'
70 description : 'List of gallium drivers to build. If this is set to auto ' +
71 'all drivers applicable to the target OS/architecture ' +
79 description : 'Enable HUD block/NIC I/O HUD status support',
85 deprecated: {'true': 'enabled', 'false': 'disabled'},
86 description : 'enable gallium vdpau frontend.',
93 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
100 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
101 description : 'enable gallium omx frontend.',
108 description : 'path to put omx libraries. defaults to omx-bellagio ' +
109 'pkg-config pluginsdir.'
115 deprecated: {'true': 'enabled', 'false': 'disabled'},
116 description : 'enable gallium va frontend.',
123 description : 'path to put va libraries. defaults to $libdir/dri.'
129 deprecated: {'true': 'enabled', 'false': 'disabled'},
130 description : 'enable gallium xa frontend.',
137 description : 'build gallium "nine" Direct3D 9.x frontend.',
144 description : 'build gallium D3D10 WDDM UMD frontend.',
150 choices : ['icd', 'standalone', 'disabled'],
152 description : 'build gallium "clover" OpenCL frontend.',
159 description : 'build gallium "rusticl" OpenCL frontend.',
163 'gallium-windows-dll-name',
165 value : 'libgallium_wgl',
166 description : 'name of gallium megadriver DLL built for Windows. ' +
167 'defaults to libgallium_wgl.dll to match DRI',
174 description : 'build gallium "clover" OpenCL frontend with SPIR-V ' +
182 choices : ['spirv', 'spirv64', 'all'],
183 description : 'Link libclc SPIR-V statically.',
190 description : 'Location of D3D drivers. Default: $libdir/d3d',
197 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
198 'panfrost', 'swrast', 'imagination-experimental',
199 'microsoft-experimental', 'virtio-experimental'],
200 description : 'List of vulkan drivers to build. If this is set to auto ' +
201 'all drivers applicable to the target OS/architecture ' +
205 # Note that currently turnip supports msm and kgsl, while the gallium driver
206 # support msm and virtio. This is a temporary situation with virtio support
207 # for turnip and kgsl support for gallium planned/in-progress.
212 choices : ['msm', 'kgsl', 'virtio'],
213 description : 'List of kernel-mode drivers to enable for freedreno ' +
214 'gallium and vulkan driver',
221 description : 'Enable Services backend for Imagination Technologies ' +
228 deprecated: {'true': 'enabled', 'false': 'disabled'},
229 description : 'Build with on-disk shader cache support.',
233 'shader-cache-default',
236 description : 'If set to false, the feature is only activated when ' +
237 'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
242 'shader-cache-max-size',
245 description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
246 'variable. If set, determines the maximum size of the ' +
247 'on-disk cache of compiled shader programs, can be overriden ' +
248 'by enviroment variable if needed. Should be set to a number ' +
249 'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
250 'a size in kilobytes, megabytes, or gigabytes. By default, ' +
251 'gigabytes will be assumed. And if unset, a maximum size of ' +
259 description : 'Location relative to prefix to put vulkan icds on install. ' +
260 'Default: $datadir/vulkan/icd.d'
267 description : 'Location of the MoltenVk SDK. Default: '
274 choices : ['device-select', 'intel-nullhw', 'overlay'],
275 description : 'List of vulkan layers to build'
281 deprecated: {'true': 'enabled', 'false': 'disabled'},
282 description : 'Whether to build a shared or static glapi. Defaults to ' +
283 'false on Windows, true elsewhere'
289 deprecated: {'true': 'enabled', 'false': 'disabled'},
290 description : 'Build support for OpenGL ES 1.x'
296 deprecated: {'true': 'enabled', 'false': 'disabled'},
297 description : 'Build support for OpenGL ES 2.x and 3.x'
304 description : 'Build support for OpenGL (all versions)'
310 deprecated: {'true': 'enabled', 'false': 'disabled'},
311 description : 'Build support for gbm platform'
318 description : 'Locations to search for gbm backends, passed as colon ' +
319 'separated list. Default: $libdir/gbm.'
326 choices : ['auto', 'disabled', 'dri', 'xlib'],
327 description : 'Build support for GLX platform'
333 deprecated: {'true': 'enabled', 'false': 'disabled'},
334 description : 'Build support for EGL platform'
341 description : 'Enable GLVND support.'
348 deprecated: {'true': 'enabled', 'false': 'disabled'},
349 description : 'Build support for the Microsoft CLC to DXIL compiler'
356 description : 'Build support for the SPIR-V to DXIL library'
363 description : 'Vendor name string to use for glvnd libraries'
367 'glx-read-only-text',
370 description : 'Disable writable .text section on x86 (decreases performance)'
376 deprecated: {'true': 'enabled', 'false': 'disabled'},
377 description : 'Build with LLVM support.'
383 deprecated: {'true': 'enabled', 'false': 'disabled'},
384 description : 'Whether to link LLVM shared or statically.'
391 description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
398 deprecated: {'true': 'enabled', 'false': 'disabled'},
399 description : 'Build with valgrind support'
405 deprecated: {'true': 'enabled', 'false': 'disabled'},
406 description : 'Use libunwind for stack-traces'
412 deprecated: {'true': 'enabled', 'false': 'disabled'},
413 description : 'Enable HUD lmsensors support.'
420 description : 'Build unit tests. Currently this will build *all* unit ' +
421 'tests except the ACO tests, which may build more than expected.'
425 'enable-glcpp-tests',
428 description : 'Build glcpp unit tests. These are flaky on CI.'
435 description : 'Build ACO tests. These require RADV and glslang but not ' +
440 'install-intel-gpu-tests',
443 description : 'Build and install Intel unit tests which require the GPU. ' +
444 'This option is for developers and the Intel CI system only.'
451 description : 'Build an SELinux-aware Mesa. This currently disables ' +
452 'execmem support at runtime unless SELinux is configured ' +
453 'with allow_execmem.'
460 description : 'Enable execmem support. Without execmem, glapi will fail ' +
461 'to generate dynamic glapi stubs when entrypoints unknown ' +
462 'to glapi but known to DRI drivers are requested in ' +
463 'eglGetProcAddress or glXGetProcAddress. This should be ' +
464 'enabled unless the platform can guarantee glapi and DRI ' +
465 'drivers are always built from the same source tree.'
472 description : 'Build OSmesa.'
479 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui',
480 'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination',
481 'all', 'dlclose-skip'],
482 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
488 deprecated: {'true': 'enabled', 'false': 'disabled'},
489 description : 'Enable power8 optimizations.',
495 deprecated: {'true': 'enabled', 'false': 'disabled'},
496 description : 'Enable VK_EXT_acquire_xlib_display.'
503 description : 'Enable direct rendering in GLX and EGL for DRI',
506 option('egl-lib-suffix',
509 description : 'Suffix to append to EGL library name. Default: none.'
516 description : 'Suffix to append to GLES library names. Default: none.'
520 'platform-sdk-version',
525 description : 'Android Platform SDK version. Default: Nougat version.'
531 deprecated: {'true': 'enabled', 'false': 'disabled'},
532 description : 'Allow using KCMP_FILE to compare file descriptions. ' +
533 'auto = allowed everywhere except on Android'
539 deprecated: {'true': 'enabled', 'false': 'disabled'},
540 description : 'Use ZSTD instead of ZLIB in some cases.'
546 deprecated: {'true': 'enabled', 'false': 'disabled'},
548 description : 'Use ZLIB to build driver. Default: enabled'
555 description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
562 description : 'Enable performance analysis with Perfetto. Default: false'
569 choices : ['auto', 'panfrost', 'intel', 'freedreno'],
570 description : 'List of Perfetto datasources to build. If this is set to ' +
571 '`auto`, datasources that can not be build are skipped. ' +
576 'custom-shader-replacement',
579 description : 'Enable a custom shader replacement mechanism. Note that ' +
580 'enabling this option requires adding/generating a ' +
581 'shader_replacement.h file that can be included (see ' +
589 description : 'Build gallium VMware/svga driver with mksGuestStats ' +
597 description : 'Build vulkan drivers with BETA extensions enabled.'
603 deprecated: {'true': 'enabled', 'false': 'disabled'},
605 description : 'Build the intel-clc compiler (enables Vulkan Intel ' +
606 'Ray Tracing on supported hardware).'
614 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc'
616 description : 'List of patent encumbered codecs to build support for. ' +
617 'Distros might want to consult their legal department before ' +
618 'enabling these. This is used for all video APIs (vaapi, ' +
619 'vdpau, vulkan). Non-patent encumbered codecs will be ' +
620 'enabled by default.'
624 'gallium-d3d12-video',
627 deprecated: {'true': 'enabled', 'false': 'disabled'},
628 description : 'build gallium d3d12 with video support.',
635 description : 'Override build id for shader cache keys (hex string). ' +
636 'Can be extracted with readelf -x .note.gnu.build-id'
640 'min-windows-version',
645 description : 'Minimum Windows version to support. Defaults to Windows 8.'
652 deprecated: {'true': 'enabled', 'false': 'disabled'},
653 description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
654 'the default driconf file is hardcoded into Mesa. ' +
661 description: 'Enable Intel Xe KMD support.'