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',
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',
57 deprecated: {'true': 'enabled', 'false': 'disabled'},
58 description : 'enable support for dri3'
65 description : 'Location to install dri drivers. Default: $libdir/dri.'
72 description : 'Locations to search for dri drivers, passed as colon ' +
73 'separated list. Default: dri-drivers-path.'
80 description : 'Controls the use of expat. ' +
81 'Cannot be disabled if xmlconfig is enabled.'
89 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
90 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
91 'panfrost', 'iris', 'lima', 'zink', 'd3d12', 'asahi', 'crocus', 'all',
93 description : 'List of gallium drivers to build. If this is set to auto ' +
94 'all drivers applicable to the target OS/architecture ' +
102 description : 'Enable HUD block/NIC I/O HUD status support',
108 deprecated: {'true': 'enabled', 'false': 'disabled'},
109 description : 'enable gallium vdpau frontend.',
116 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
123 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
124 description : 'enable gallium omx frontend.',
131 description : 'path to put omx libraries. defaults to omx-bellagio ' +
132 'pkg-config pluginsdir.'
138 deprecated: {'true': 'enabled', 'false': 'disabled'},
139 description : 'enable gallium va frontend.',
146 description : 'path to put va libraries. defaults to $libdir/dri.'
152 deprecated: {'true': 'enabled', 'false': 'disabled'},
153 description : 'enable gallium xa frontend.',
160 description : 'build gallium "nine" Direct3D 9.x frontend.',
167 description : 'build gallium D3D10 WDDM UMD frontend.',
173 choices : ['icd', 'standalone', 'disabled'],
175 description : 'build gallium "clover" OpenCL frontend.',
182 description : 'build gallium "rusticl" OpenCL frontend.',
186 'gallium-wgl-dll-name',
188 value : 'libgallium_wgl',
189 description : 'name of gallium wgl target DLL built for Windows. ' +
190 'defaults to libgallium_wgl.dll to match DRI',
194 'gallium-d3d10-dll-name',
196 value : 'libgallium_d3d10',
197 description : 'name of gallium d3d10 target DLL built for Windows. ' +
198 'defaults to libgallium_d3d10.dll to match DRI',
205 description : 'build gallium "clover" OpenCL frontend with SPIR-V ' +
213 choices : ['spirv', 'spirv64', 'all'],
214 description : 'Link libclc SPIR-V statically.',
221 description : 'Location of D3D drivers. Default: $libdir/d3d',
228 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk',
229 'panfrost', 'swrast', 'virtio', 'imagination-experimental',
230 'microsoft-experimental', 'nouveau', 'all'],
231 description : 'List of vulkan drivers to build. If this is set to auto ' +
232 'all drivers applicable to the target OS/architecture ' +
236 # Note that currently turnip supports msm and kgsl, while the gallium driver
237 # support msm and virtio. This is a temporary situation with virtio support
238 # for turnip and kgsl support for gallium planned/in-progress.
243 choices : ['msm', 'kgsl', 'virtio', 'wsl'],
244 description : 'List of kernel-mode drivers to enable for freedreno ' +
245 'gallium and vulkan driver',
252 description : 'Enable Services backend for Imagination Technologies ' +
259 deprecated: {'true': 'enabled', 'false': 'disabled'},
260 description : 'Build with on-disk shader cache support.',
264 'shader-cache-default',
267 description : 'If set to false, the feature is only activated when ' +
268 'environment variable MESA_SHADER_CACHE_DISABLE is set ' +
273 'shader-cache-max-size',
276 description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' +
277 'variable. If set, determines the maximum size of the ' +
278 'on-disk cache of compiled shader programs, can be overriden ' +
279 'by enviroment variable if needed. Should be set to a number ' +
280 'optionally followed by ``K``, ``M``, or ``G`` to specify ' +
281 'a size in kilobytes, megabytes, or gigabytes. By default, ' +
282 'gigabytes will be assumed. And if unset, a maximum size of ' +
290 description : 'Location relative to prefix to put vulkan icds on install. ' +
291 'Default: $datadir/vulkan/icd.d'
298 description : 'Location of the MoltenVk SDK. Default: '
305 choices : ['device-select', 'intel-nullhw', 'overlay'],
306 description : 'List of vulkan layers to build'
312 deprecated: {'true': 'enabled', 'false': 'disabled'},
313 description : 'Whether to build a shared or static glapi. Defaults to ' +
314 'disabled on Windows, enabled elsewhere'
320 deprecated: {'true': 'enabled', 'false': 'disabled'},
321 description : 'Build support for OpenGL ES 1.x'
327 deprecated: {'true': 'enabled', 'false': 'disabled'},
328 description : 'Build support for OpenGL ES 2.x and 3.x'
335 description : 'Build support for desktop OpenGL'
341 deprecated: {'true': 'enabled', 'false': 'disabled'},
342 description : 'Build support for gbm platform'
349 description : 'Locations to search for gbm backends, passed as colon ' +
350 'separated list. Default: $libdir/gbm.'
357 choices : ['auto', 'disabled', 'dri', 'xlib'],
358 description : 'Build support for GLX platform'
364 deprecated: {'true': 'enabled', 'false': 'disabled'},
365 description : 'Build support for EGL platform'
371 deprecated: {'true': 'enabled', 'false': 'disabled'},
372 description : 'Enable GLVND support.'
379 deprecated: {'true': 'enabled', 'false': 'disabled'},
380 description : 'Build support for the Microsoft CLC to DXIL compiler'
387 description : 'Build support for the SPIR-V to DXIL library'
394 description : 'Vendor name string to use for glvnd libraries'
398 'glx-read-only-text',
401 description : 'Disable writable .text section on x86 (decreases performance)'
407 deprecated: {'true': 'enabled', 'false': 'disabled'},
408 description : 'Build with LLVM support.'
414 deprecated: {'true': 'enabled', 'false': 'disabled'},
415 description : 'Whether to link LLVM shared or statically.'
422 description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' +
430 description : 'Whether to use LLVM for the AMD drivers, if LLVM ' +
437 deprecated: {'true': 'enabled', 'false': 'disabled'},
438 description : 'Build with valgrind support'
444 deprecated: {'true': 'enabled', 'false': 'disabled'},
445 description : 'Use libunwind for stack-traces'
451 deprecated: {'true': 'enabled', 'false': 'disabled'},
452 description : 'Enable HUD lmsensors support.'
459 description : 'Build unit tests. Currently this will build *all* unit ' +
460 'tests except the ACO tests, which may build more than expected.'
464 'enable-glcpp-tests',
467 description : 'Build glcpp unit tests. These are flaky on CI.'
474 description : 'Build ACO tests. These require RADV and glslang but not ' +
479 'install-intel-gpu-tests',
482 description : 'Build and install Intel unit tests which require the GPU. ' +
483 'This option is for developers and the Intel CI system only.'
490 description : 'Build an SELinux-aware Mesa. This currently disables ' +
491 'execmem support at runtime unless SELinux is configured ' +
492 'with allow_execmem.'
499 description : 'Does nothing, left here for a while to avoid build breakages.',
506 description : 'Build OSmesa.'
513 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui',
514 'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination',
515 'all', 'dlclose-skip'],
516 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
522 deprecated: {'true': 'enabled', 'false': 'disabled'},
523 description : 'Enable power8 optimizations.',
529 deprecated: {'true': 'enabled', 'false': 'disabled'},
530 description : 'Enable VK_EXT_acquire_xlib_display.'
537 description : 'Enable direct rendering in GLX and EGL for DRI',
540 option('egl-lib-suffix',
543 description : 'Suffix to append to EGL library name. Default: none.'
550 description : 'Suffix to append to GLES library names. Default: none.'
554 'platform-sdk-version',
559 description : 'Android Platform SDK version. Default: Nougat version.'
565 deprecated: {'true': 'enabled', 'false': 'disabled'},
566 description : 'Allow using KCMP_FILE to compare file descriptions. ' +
567 'auto = allowed everywhere except on Android'
573 deprecated: {'true': 'enabled', 'false': 'disabled'},
574 description : 'Use ZSTD instead of ZLIB in some cases.'
580 deprecated: {'true': 'enabled', 'false': 'disabled'},
582 description : 'Use ZLIB to build driver. Default: enabled'
589 description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true',
596 description : 'Enable performance analysis with Perfetto. Default: false'
603 choices : ['auto', 'panfrost', 'intel', 'freedreno'],
604 description : 'List of Perfetto datasources to build. If this is set to ' +
605 '`auto`, datasources that can not be build are skipped. ' +
613 description : 'Enable TensorFlow Lite delegate. Default: false'
620 description : 'Enable tracing markers for gpuvis. Default: false'
624 'custom-shader-replacement',
627 description : 'Enable a custom shader replacement mechanism. Note that ' +
628 'enabling this option requires adding/generating a ' +
629 'shader_replacement.h file that can be included (see ' +
637 description : 'Build gallium VMware/svga driver with mksGuestStats ' +
645 description : 'Build vulkan drivers with BETA extensions enabled.'
651 deprecated: {'true': 'enabled'},
654 'enabled', 'system', 'auto'
656 description : 'Build the intel-clc compiler or use a system version.'
663 description : 'Install the intel-clc compiler (if needed for cross builds).'
669 deprecated: {'true': 'enabled', 'false': 'disabled'},
670 description : 'Build Ray Tracing on supported hardware.'
676 value : ['all_free'],
678 'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', 'av1dec', 'av1enc', 'vp9dec'
680 description : 'List of codecs to build support for. ' +
681 'Distros might want to consult their legal department before ' +
682 'enabling these. This is used for all video APIs (vaapi, ' +
683 'vdpau, vulkan). Non-patent encumbered codecs will be ' +
684 'enabled by default with the all_free default value.'
688 'gallium-d3d12-video',
691 deprecated: {'true': 'enabled', 'false': 'disabled'},
692 description : 'build gallium d3d12 with video support.',
696 'gallium-d3d12-graphics',
699 description : 'build gallium d3d12 with graphics pipeline support.',
706 description : 'Override build id for shader cache keys (hex string). ' +
707 'Can be extracted with readelf -x .note.gnu.build-id'
711 'min-windows-version',
716 description : 'Minimum Windows version to support. Defaults to Windows 8.'
723 deprecated: {'true': 'enabled', 'false': 'disabled'},
724 description : 'Build custom xmlconfig (driconf) support. If disabled, ' +
725 'the default driconf file is hardcoded into Mesa. ' +