| 1 |
# Copyright © 2017-2019 Intel Corporation |
| 2 |
# SPDX-License-Identifier: MIT |
| 3 |
|
| 4 |
option( |
| 5 |
'split-debug', |
| 6 |
type : 'feature', |
| 7 |
value : 'disabled', |
| 8 |
description : 'split debug information (-gsplit-dwarf compile flag) and debug information in the gdb index format (--gdb-index)', |
| 9 |
) |
| 10 |
option( |
| 11 |
'platforms', |
| 12 |
type : 'array', |
| 13 |
value : ['auto'], |
| 14 |
choices : [ |
| 15 |
'auto', 'x11', 'wayland', 'haiku', 'android', 'windows', 'macos', |
| 16 |
], |
| 17 |
description : 'window systems to support. If this is set to `auto`, all ' + |
| 18 |
'platforms applicable will be enabled.' |
| 19 |
) |
| 20 |
|
| 21 |
option( |
| 22 |
'egl-native-platform', |
| 23 |
type : 'combo', |
| 24 |
value : 'auto', |
| 25 |
choices : [ |
| 26 |
'auto', 'x11', 'wayland', 'haiku', 'android', 'windows', |
| 27 |
'surfaceless', 'drm', |
| 28 |
], |
| 29 |
description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY', |
| 30 |
) |
| 31 |
|
| 32 |
option( |
| 33 |
'android-stub', |
| 34 |
type : 'boolean', |
| 35 |
value : false, |
| 36 |
description : 'Build against android-stub', |
| 37 |
) |
| 38 |
|
| 39 |
option( |
| 40 |
'android-strict', |
| 41 |
type : 'boolean', |
| 42 |
value : true, |
| 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' |
| 46 |
) |
| 47 |
|
| 48 |
option( |
| 49 |
'android-libbacktrace', |
| 50 |
type : 'feature', |
| 51 |
description : 'Use Android\'s libbacktrace', |
| 52 |
) |
| 53 |
|
| 54 |
option( |
| 55 |
'android-libperfetto', |
| 56 |
type : 'feature', |
| 57 |
description : 'Use Android\'s libperfetto', |
| 58 |
) |
| 59 |
|
| 60 |
option( |
| 61 |
'dri-drivers-path', |
| 62 |
type : 'string', |
| 63 |
value : '', |
| 64 |
description : 'Location to install dri drivers. Default: $libdir/dri.' |
| 65 |
) |
| 66 |
|
| 67 |
option( |
| 68 |
'unversion-libgallium', |
| 69 |
type : 'boolean', |
| 70 |
value : false, |
| 71 |
description : 'Do not include mesa version in libgallium DSO filename. ' + |
| 72 |
'Do not enable unless you know what you are doing. Default: false' |
| 73 |
) |
| 74 |
|
| 75 |
option( |
| 76 |
'expat', |
| 77 |
type : 'feature', |
| 78 |
value : 'auto', |
| 79 |
description : 'Controls the use of expat. ' + |
| 80 |
'Cannot be disabled if xmlconfig is enabled.' |
| 81 |
) |
| 82 |
|
| 83 |
option( |
| 84 |
'gallium-drivers', |
| 85 |
type : 'array', |
| 86 |
value : ['auto'], |
| 87 |
choices : [ |
| 88 |
'all', 'auto', |
| 89 |
'asahi', 'crocus', 'd3d12', 'ethosu', 'etnaviv', 'freedreno', 'i915', 'iris', |
| 90 |
'lima', 'llvmpipe', 'nouveau', 'panfrost', 'r300', 'r600', 'radeonsi', |
| 91 |
'rocket', 'softpipe', 'svga', 'tegra', 'v3d', 'vc4', 'virgl', 'zink', |
| 92 |
], |
| 93 |
description : 'List of gallium drivers to build. If this is set to auto ' + |
| 94 |
'all drivers applicable to the target OS/architecture ' + |
| 95 |
'will be built.' |
| 96 |
) |
| 97 |
|
| 98 |
option( |
| 99 |
'gallium-extra-hud', |
| 100 |
type : 'boolean', |
| 101 |
value : false, |
| 102 |
description : 'Enable HUD block/NIC I/O HUD status support', |
| 103 |
) |
| 104 |
|
| 105 |
option( |
| 106 |
'gallium-va', |
| 107 |
type : 'feature', |
| 108 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 109 |
description : 'enable gallium va frontend.', |
| 110 |
) |
| 111 |
|
| 112 |
option( |
| 113 |
'gallium-mediafoundation', |
| 114 |
type : 'feature', |
| 115 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 116 |
description : 'enable gallium mediafoundation frontend.', |
| 117 |
) |
| 118 |
|
| 119 |
option( |
| 120 |
'gallium-mediafoundation-test', |
| 121 |
type : 'boolean', |
| 122 |
value : false, |
| 123 |
description : 'enable gallium mediafoundation frontend tests.', |
| 124 |
) |
| 125 |
|
| 126 |
option( |
| 127 |
'va-libs-path', |
| 128 |
type : 'string', |
| 129 |
value : '', |
| 130 |
description : 'path to put va libraries. defaults to $libdir/dri.' |
| 131 |
) |
| 132 |
|
| 133 |
option( |
| 134 |
'gallium-d3d10umd', |
| 135 |
type : 'boolean', |
| 136 |
value : false, |
| 137 |
description : 'build gallium D3D10 WDDM UMD frontend.', |
| 138 |
) |
| 139 |
|
| 140 |
option( |
| 141 |
'gallium-rusticl', |
| 142 |
type : 'boolean', |
| 143 |
value : false, |
| 144 |
description : 'build gallium "rusticl" OpenCL frontend.', |
| 145 |
) |
| 146 |
|
| 147 |
option( |
| 148 |
'gallium-rusticl-enable-drivers', |
| 149 |
type : 'array', |
| 150 |
value : ['auto'], |
| 151 |
choices : ['auto', 'asahi', 'freedreno', 'radeonsi'], |
| 152 |
description : 'List of gallium drivers for which rusticl will be enabled ' + |
| 153 |
'by default', |
| 154 |
) |
| 155 |
|
| 156 |
option( |
| 157 |
'gallium-wgl-dll-name', |
| 158 |
type : 'string', |
| 159 |
value : 'libgallium_wgl', |
| 160 |
description : 'name of gallium wgl target DLL built for Windows. ' + |
| 161 |
'defaults to libgallium_wgl.dll to match DRI', |
| 162 |
) |
| 163 |
|
| 164 |
option( |
| 165 |
'gallium-d3d10-dll-name', |
| 166 |
type : 'string', |
| 167 |
value : 'libgallium_d3d10', |
| 168 |
description : 'name of gallium d3d10 target DLL built for Windows. ' + |
| 169 |
'defaults to libgallium_d3d10.dll to match DRI', |
| 170 |
) |
| 171 |
|
| 172 |
option( |
| 173 |
'mediafoundation-store-dll', |
| 174 |
type : 'boolean', |
| 175 |
value : false, |
| 176 |
description : 'Selects whether the gallium mediafoundation DLL is built for the store. ', |
| 177 |
) |
| 178 |
|
| 179 |
option( |
| 180 |
'mediafoundation-codecs', |
| 181 |
type : 'array', |
| 182 |
value : ['all'], |
| 183 |
choices: [ |
| 184 |
'all', 'h264enc', 'h265enc', 'av1enc' |
| 185 |
], |
| 186 |
description : 'List of codecs to build mediafoundation frontend DLLs for. ' + |
| 187 |
'These will generate different MFT DLLs per codec and link' + |
| 188 |
'against the gallium drivers which uses the video-codecs option' |
| 189 |
) |
| 190 |
|
| 191 |
option( |
| 192 |
'static-libclc', |
| 193 |
type : 'array', |
| 194 |
value : [], |
| 195 |
choices : ['spirv', 'spirv64', 'all'], |
| 196 |
description : 'Link libclc SPIR-V statically.', |
| 197 |
) |
| 198 |
|
| 199 |
option( |
| 200 |
'd3d-drivers-path', |
| 201 |
type : 'string', |
| 202 |
value : '', |
| 203 |
description : 'Location of D3D drivers. Default: $libdir/d3d', |
| 204 |
) |
| 205 |
|
| 206 |
option( |
| 207 |
'vulkan-drivers', |
| 208 |
type : 'array', |
| 209 |
value : ['auto'], |
| 210 |
choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'intel_hasvk', |
| 211 |
'panfrost', 'swrast', 'virtio', 'imagination', |
| 212 |
'microsoft-experimental', 'nouveau', 'asahi', 'gfxstream', |
| 213 |
'kosmickrisp', 'all'], |
| 214 |
description : 'List of vulkan drivers to build. If this is set to auto ' + |
| 215 |
'all drivers applicable to the target OS/architecture ' + |
| 216 |
'will be built' |
| 217 |
) |
| 218 |
|
| 219 |
# Note that the freedreno gallium driver doesn't support KGSL. |
| 220 |
# On those systems, zink with Turnip should be used instead. |
| 221 |
# WSL is only supported for the replay tool. |
| 222 |
option( |
| 223 |
'freedreno-kmds', |
| 224 |
type : 'array', |
| 225 |
value : ['msm'], |
| 226 |
choices : ['msm', 'kgsl', 'virtio', 'wsl'], |
| 227 |
description : 'List of kernel-mode drivers to enable for freedreno ' + |
| 228 |
'gallium and vulkan driver', |
| 229 |
) |
| 230 |
|
| 231 |
option( |
| 232 |
'amdgpu-virtio', |
| 233 |
type : 'boolean', |
| 234 |
value : false, |
| 235 |
description : 'use experimental virtio backend for radeonsi/radv', |
| 236 |
) |
| 237 |
option( |
| 238 |
'imagination-srv', |
| 239 |
type : 'boolean', |
| 240 |
value : false, |
| 241 |
description : 'Enable Services backend for Imagination Technologies ' + |
| 242 |
'vulkan driver', |
| 243 |
) |
| 244 |
|
| 245 |
option('imagination-uscgen-devices', |
| 246 |
type : 'array', |
| 247 |
value : [], |
| 248 |
choices : ['axe-1-16m', 'bxs-4-64', 'gx6250'], |
| 249 |
description : 'List of devices for which to pre-build USC program binaries.', |
| 250 |
) |
| 251 |
|
| 252 |
option( |
| 253 |
'shader-cache', |
| 254 |
type : 'feature', |
| 255 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 256 |
description : 'Build with on-disk shader cache support.', |
| 257 |
) |
| 258 |
|
| 259 |
option( |
| 260 |
'shader-cache-default', |
| 261 |
type : 'boolean', |
| 262 |
value : true, |
| 263 |
description : 'If set to false, the feature is only activated when ' + |
| 264 |
'environment variable MESA_SHADER_CACHE_DISABLE is set ' + |
| 265 |
'to false', |
| 266 |
) |
| 267 |
|
| 268 |
option( |
| 269 |
'shader-cache-max-size', |
| 270 |
type : 'string', |
| 271 |
value : '', |
| 272 |
description : 'Default value for MESA_SHADER_CACHE_MAX_SIZE enviroment ' + |
| 273 |
'variable. If set, determines the maximum size of the ' + |
| 274 |
'on-disk cache of compiled shader programs, can be overriden ' + |
| 275 |
'by enviroment variable if needed. Should be set to a number ' + |
| 276 |
'optionally followed by ``K``, ``M``, or ``G`` to specify ' + |
| 277 |
'a size in kilobytes, megabytes, or gigabytes. By default, ' + |
| 278 |
'gigabytes will be assumed. And if unset, a maximum size of ' + |
| 279 |
'1GB will be used.' |
| 280 |
) |
| 281 |
|
| 282 |
option( |
| 283 |
'vulkan-icd-dir', |
| 284 |
type : 'string', |
| 285 |
value : '', |
| 286 |
description : 'Location relative to prefix to put vulkan icds on install. ' + |
| 287 |
'Default: $datadir/vulkan/icd.d' |
| 288 |
) |
| 289 |
|
| 290 |
option( |
| 291 |
'vulkan-manifest-per-architecture', |
| 292 |
type : 'boolean', |
| 293 |
value : true, |
| 294 |
description : 'If true, Vulkan ICDs have a separate JSON manifest per ' + |
| 295 |
'architecture, for example lvp_icd.x86_64.json. ' + |
| 296 |
'(Recommended for non-default ${prefix}.) ' + |
| 297 |
'If false, all architectures share a single JSON manifest, ' + |
| 298 |
'for example lvp_icd.json, referencing the library by its ' + |
| 299 |
'basename. ' + |
| 300 |
'(Recommended for Unix OS distros installing into /usr.)' |
| 301 |
) |
| 302 |
|
| 303 |
option( |
| 304 |
'moltenvk-dir', |
| 305 |
type : 'string', |
| 306 |
value : '', |
| 307 |
description : 'Location of the MoltenVk SDK. Default: ' |
| 308 |
) |
| 309 |
|
| 310 |
option( |
| 311 |
'vulkan-layers', |
| 312 |
type : 'array', |
| 313 |
value : [], |
| 314 |
choices : [ |
| 315 |
'device-select', 'intel-nullhw', 'overlay', 'screenshot', 'anti-lag', |
| 316 |
'vram-report-limit', |
| 317 |
], |
| 318 |
description : 'List of vulkan layers to build' |
| 319 |
) |
| 320 |
|
| 321 |
option( |
| 322 |
'shared-glapi', |
| 323 |
type : 'feature', |
| 324 |
deprecated: true, |
| 325 |
description : 'Does nothing, left here for a while to avoid build breakages.', |
| 326 |
) |
| 327 |
|
| 328 |
option( |
| 329 |
'gles1', |
| 330 |
type : 'feature', |
| 331 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 332 |
description : 'Build support for OpenGL ES 1.x' |
| 333 |
) |
| 334 |
|
| 335 |
option( |
| 336 |
'gles2', |
| 337 |
type : 'feature', |
| 338 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 339 |
description : 'Build support for OpenGL ES 2.x and 3.x' |
| 340 |
) |
| 341 |
|
| 342 |
option( |
| 343 |
'opengl', |
| 344 |
type : 'boolean', |
| 345 |
value : true, |
| 346 |
description : 'Build support for desktop OpenGL' |
| 347 |
) |
| 348 |
|
| 349 |
option( |
| 350 |
'gbm', |
| 351 |
type : 'feature', |
| 352 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 353 |
description : 'Build support for gbm platform' |
| 354 |
) |
| 355 |
|
| 356 |
option( |
| 357 |
'libgbm-external', |
| 358 |
type: 'boolean', |
| 359 |
value: false, |
| 360 |
description: 'Whether to use external libgbm (default: use in-tree copy)' |
| 361 |
) |
| 362 |
|
| 363 |
option( |
| 364 |
'gbm-backends-path', |
| 365 |
type : 'string', |
| 366 |
value : '', |
| 367 |
description : 'Locations to search for gbm backends, passed as colon ' + |
| 368 |
'separated list. Default: $libdir/gbm.' |
| 369 |
) |
| 370 |
|
| 371 |
option( |
| 372 |
'glx', |
| 373 |
type : 'combo', |
| 374 |
value : 'auto', |
| 375 |
choices : ['auto', 'disabled', 'dri', 'xlib'], |
| 376 |
description : 'Build support for GLX platform' |
| 377 |
) |
| 378 |
|
| 379 |
option( |
| 380 |
'egl', |
| 381 |
type : 'feature', |
| 382 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 383 |
description : 'Build support for EGL platform' |
| 384 |
) |
| 385 |
|
| 386 |
option( |
| 387 |
'glvnd', |
| 388 |
type : 'feature', |
| 389 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 390 |
description : 'Enable GLVND support.' |
| 391 |
) |
| 392 |
|
| 393 |
option( |
| 394 |
'microsoft-clc', |
| 395 |
type : 'feature', |
| 396 |
value : 'auto', |
| 397 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 398 |
description : 'Build support for the Microsoft CLC to DXIL compiler' |
| 399 |
) |
| 400 |
|
| 401 |
option( |
| 402 |
'spirv-to-dxil', |
| 403 |
type : 'boolean', |
| 404 |
value : false, |
| 405 |
description : 'Build support for the SPIR-V to DXIL library' |
| 406 |
) |
| 407 |
|
| 408 |
option( |
| 409 |
'glvnd-vendor-name', |
| 410 |
type : 'string', |
| 411 |
value : 'mesa', |
| 412 |
description : 'Vendor name string to use for glvnd libraries' |
| 413 |
) |
| 414 |
|
| 415 |
option( |
| 416 |
'glx-read-only-text', |
| 417 |
type : 'boolean', |
| 418 |
value : false, |
| 419 |
description : 'Disable writable .text section on x86 (decreases performance)' |
| 420 |
) |
| 421 |
|
| 422 |
option( |
| 423 |
'llvm', |
| 424 |
type : 'feature', |
| 425 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 426 |
description : 'Build with LLVM support.' |
| 427 |
) |
| 428 |
|
| 429 |
option( |
| 430 |
'shared-llvm', |
| 431 |
type : 'feature', |
| 432 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 433 |
description : 'Whether to link LLVM shared or statically.' |
| 434 |
) |
| 435 |
|
| 436 |
option( |
| 437 |
'draw-use-llvm', |
| 438 |
type : 'boolean', |
| 439 |
value : true, |
| 440 |
description : 'Whether to use LLVM for the Gallium draw module, if LLVM ' + |
| 441 |
'is included.' |
| 442 |
) |
| 443 |
|
| 444 |
option( |
| 445 |
'amd-use-llvm', |
| 446 |
type : 'boolean', |
| 447 |
value : true, |
| 448 |
description : 'Whether to use LLVM for the AMD drivers, if LLVM ' + |
| 449 |
'is included.' |
| 450 |
) |
| 451 |
|
| 452 |
option ( |
| 453 |
'llvm-orcjit', |
| 454 |
type : 'boolean', |
| 455 |
value : false, |
| 456 |
description: 'Build llvmpipe with LLVM ORCJIT support. Has no effect when ' + |
| 457 |
'building for architectures without LLVM MCJIT support -- ' + |
| 458 |
'ORCJIT is the only choice on such architectures and will ' + |
| 459 |
'always be enabled.' |
| 460 |
) |
| 461 |
|
| 462 |
option( |
| 463 |
'valgrind', |
| 464 |
type : 'feature', |
| 465 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 466 |
description : 'Build with valgrind support' |
| 467 |
) |
| 468 |
|
| 469 |
option( |
| 470 |
'libunwind', |
| 471 |
type : 'feature', |
| 472 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 473 |
description : 'Use libunwind for stack-traces' |
| 474 |
) |
| 475 |
|
| 476 |
option( |
| 477 |
'lmsensors', |
| 478 |
type : 'feature', |
| 479 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 480 |
description : 'Enable HUD lmsensors support.' |
| 481 |
) |
| 482 |
|
| 483 |
option( |
| 484 |
'build-tests', |
| 485 |
type : 'boolean', |
| 486 |
value : false, |
| 487 |
description : 'Build unit tests. Currently this will build *all* unit ' + |
| 488 |
'tests except the ACO tests, which may build more than expected.' |
| 489 |
) |
| 490 |
|
| 491 |
option( |
| 492 |
'enable-glcpp-tests', |
| 493 |
type : 'boolean', |
| 494 |
value : true, |
| 495 |
description : 'Build glcpp unit tests. These are flaky on CI.' |
| 496 |
) |
| 497 |
|
| 498 |
option( |
| 499 |
'build-radv-tests', |
| 500 |
type : 'boolean', |
| 501 |
value : false, |
| 502 |
description : 'Build RADV tests. These do not require an AMD GPU.' |
| 503 |
) |
| 504 |
|
| 505 |
option( |
| 506 |
'build-aco-tests', |
| 507 |
type : 'boolean', |
| 508 |
value : false, |
| 509 |
description : 'Build ACO tests. These require RADV and glslang but not ' + |
| 510 |
'an AMD GPU.' |
| 511 |
) |
| 512 |
|
| 513 |
option( |
| 514 |
'install-intel-gpu-tests', |
| 515 |
type : 'boolean', |
| 516 |
value : false, |
| 517 |
description : 'Build and install Intel unit tests which require the GPU. ' + |
| 518 |
'This option is for developers and the Intel CI system only.' |
| 519 |
) |
| 520 |
|
| 521 |
option( |
| 522 |
'html-docs', |
| 523 |
type : 'feature', |
| 524 |
value : 'disabled', |
| 525 |
description : 'Build HTML documentation.' |
| 526 |
) |
| 527 |
|
| 528 |
option( |
| 529 |
'html-docs-path', |
| 530 |
type : 'string', |
| 531 |
value : '', |
| 532 |
description : 'Location to install HTML documentation. Default: $datadir/doc/mesa.' |
| 533 |
) |
| 534 |
|
| 535 |
option( |
| 536 |
'selinux', |
| 537 |
type : 'boolean', |
| 538 |
deprecated : true, |
| 539 |
description : 'Does nothing, left here for a while to avoid build breakages.', |
| 540 |
) |
| 541 |
|
| 542 |
option( |
| 543 |
'execmem', |
| 544 |
type : 'boolean', |
| 545 |
deprecated : true, |
| 546 |
description : 'Does nothing, left here for a while to avoid build breakages.', |
| 547 |
) |
| 548 |
|
| 549 |
option( |
| 550 |
'tools', |
| 551 |
type : 'array', |
| 552 |
value : [], |
| 553 |
choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', |
| 554 |
'nir', 'nouveau', 'lima', 'panfrost', 'asahi', 'imagination', |
| 555 |
'zink', 'all', 'dlclose-skip'], |
| 556 |
description : 'List of tools to build. (Note: `intel-ui` selects `intel`)', |
| 557 |
) |
| 558 |
|
| 559 |
option( |
| 560 |
'power8', |
| 561 |
type : 'feature', |
| 562 |
description : 'Does nothing, left here for a while to avoid build breakages.', |
| 563 |
deprecated: true, |
| 564 |
) |
| 565 |
|
| 566 |
option( |
| 567 |
'xlib-lease', |
| 568 |
type : 'feature', |
| 569 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 570 |
description : 'Enable VK_EXT_acquire_xlib_display.' |
| 571 |
) |
| 572 |
|
| 573 |
option( |
| 574 |
'glx-direct', |
| 575 |
type : 'boolean', |
| 576 |
value : true, |
| 577 |
description : 'Enable direct rendering in GLX and EGL for DRI', |
| 578 |
) |
| 579 |
|
| 580 |
option('egl-lib-suffix', |
| 581 |
type : 'string', |
| 582 |
value : '', |
| 583 |
description : 'Suffix to append to EGL library name. Default: none.' |
| 584 |
) |
| 585 |
|
| 586 |
option( |
| 587 |
'gles-lib-suffix', |
| 588 |
type : 'string', |
| 589 |
value : '', |
| 590 |
description : 'Suffix to append to GLES library names. Default: none.' |
| 591 |
) |
| 592 |
|
| 593 |
option( |
| 594 |
'platform-sdk-version', |
| 595 |
type : 'integer', |
| 596 |
min : 25, |
| 597 |
max : 10000, |
| 598 |
value : 35, |
| 599 |
description : 'Android Platform SDK version. Default: Android15 version.' |
| 600 |
) |
| 601 |
|
| 602 |
option( |
| 603 |
'allow-kcmp', |
| 604 |
type : 'feature', |
| 605 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 606 |
description : 'Allow using KCMP_FILE to compare file descriptions. ' + |
| 607 |
'auto = allowed everywhere except on Android' |
| 608 |
) |
| 609 |
|
| 610 |
option( |
| 611 |
'zstd', |
| 612 |
type : 'feature', |
| 613 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 614 |
description : 'Use ZSTD instead of ZLIB in some cases.' |
| 615 |
) |
| 616 |
|
| 617 |
option( |
| 618 |
'zlib', |
| 619 |
type : 'feature', |
| 620 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 621 |
value : 'enabled', |
| 622 |
description : 'Use ZLIB to build driver. Default: enabled' |
| 623 |
) |
| 624 |
|
| 625 |
option( |
| 626 |
'display-info', |
| 627 |
type : 'feature', |
| 628 |
description : 'Use libdisplay-info to build driver.' |
| 629 |
) |
| 630 |
|
| 631 |
option( |
| 632 |
'sse2', |
| 633 |
type : 'boolean', |
| 634 |
value : true, |
| 635 |
description : 'use msse2 flag for x86. Uses sse/sse2 instead of x87. Default: true', |
| 636 |
) |
| 637 |
|
| 638 |
option( |
| 639 |
'perfetto', |
| 640 |
type : 'boolean', |
| 641 |
value : false, |
| 642 |
description : 'Enable performance analysis with Perfetto. Default: false' |
| 643 |
) |
| 644 |
|
| 645 |
option( |
| 646 |
'datasources', |
| 647 |
type : 'array', |
| 648 |
value : ['auto'], |
| 649 |
choices : ['auto', 'panfrost', 'intel', 'freedreno'], |
| 650 |
description : 'List of Perfetto datasources to build. If this is set to ' + |
| 651 |
'`auto`, datasources that can not be build are skipped. ' + |
| 652 |
'Default: [`auto`]' |
| 653 |
) |
| 654 |
|
| 655 |
option( |
| 656 |
'teflon', |
| 657 |
type : 'boolean', |
| 658 |
value : false, |
| 659 |
description : 'Enable TensorFlow Lite delegate. Default: false' |
| 660 |
) |
| 661 |
|
| 662 |
option( |
| 663 |
'gpuvis', |
| 664 |
type : 'boolean', |
| 665 |
value : false, |
| 666 |
description : 'Enable tracing markers for gpuvis. Default: false' |
| 667 |
) |
| 668 |
|
| 669 |
option( |
| 670 |
'sysprof', |
| 671 |
type : 'boolean', |
| 672 |
value : false, |
| 673 |
description : 'Enable tracing markers for sysprof. Default: false' |
| 674 |
) |
| 675 |
|
| 676 |
option( |
| 677 |
'custom-shader-replacement', |
| 678 |
type : 'string', |
| 679 |
value : '', |
| 680 |
description : 'Enable a custom shader replacement mechanism. Note that ' + |
| 681 |
'enabling this option requires adding/generating a ' + |
| 682 |
'shader_replacement.h file that can be included (see ' + |
| 683 |
'shaderapi.c).' |
| 684 |
) |
| 685 |
|
| 686 |
option( |
| 687 |
'vmware-mks-stats', |
| 688 |
type : 'boolean', |
| 689 |
value : false, |
| 690 |
description : 'Build gallium VMware/svga driver with mksGuestStats ' + |
| 691 |
'instrumentation.' |
| 692 |
) |
| 693 |
|
| 694 |
option( |
| 695 |
'vulkan-beta', |
| 696 |
type : 'boolean', |
| 697 |
value : false, |
| 698 |
description : 'Build vulkan drivers with BETA extensions enabled.' |
| 699 |
) |
| 700 |
|
| 701 |
option( |
| 702 |
'intel-rt', |
| 703 |
type : 'feature', |
| 704 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 705 |
description : 'Build Ray Tracing on supported hardware.' |
| 706 |
) |
| 707 |
|
| 708 |
option( |
| 709 |
'intel-elk', |
| 710 |
type : 'boolean', |
| 711 |
value : true, |
| 712 |
description : 'Build ELK compiler (used for Gfx8 and earlier). ' + |
| 713 |
'This is required for Crocus and Hasvk, and it is ' + |
| 714 |
'optional for Iris and various developer tools.' |
| 715 |
) |
| 716 |
|
| 717 |
option( |
| 718 |
'video-codecs', |
| 719 |
type : 'array', |
| 720 |
value : ['all_free'], |
| 721 |
choices: [ |
| 722 |
'all', 'all_free', 'vc1dec', 'h264dec', 'h264enc', 'h265dec', 'h265enc', |
| 723 |
'av1dec', 'av1enc', 'vp9dec', 'mpeg12dec', 'jpegdec' |
| 724 |
], |
| 725 |
description : 'List of codecs to build support for. ' + |
| 726 |
'Distros might want to consult their legal department before ' + |
| 727 |
'enabling these. This is used for all video APIs (vaapi, ' + |
| 728 |
'vulkan). Non-patent encumbered codecs will be ' + |
| 729 |
'enabled by default with the all_free default value.' |
| 730 |
) |
| 731 |
|
| 732 |
option( |
| 733 |
'gallium-d3d12-video', |
| 734 |
type : 'feature', |
| 735 |
value : 'auto', |
| 736 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 737 |
description : 'build gallium d3d12 with video support.', |
| 738 |
) |
| 739 |
|
| 740 |
option( |
| 741 |
'gallium-d3d12-graphics', |
| 742 |
type : 'feature', |
| 743 |
value : 'auto', |
| 744 |
description : 'build gallium d3d12 with graphics pipeline support.', |
| 745 |
) |
| 746 |
|
| 747 |
option( |
| 748 |
'radv-build-id', |
| 749 |
type : 'string', |
| 750 |
value : '', |
| 751 |
description : 'Override build id for shader cache keys (hex string). ' + |
| 752 |
'Can be extracted with readelf -x .note.gnu.build-id' |
| 753 |
) |
| 754 |
|
| 755 |
option( |
| 756 |
'radeonsi-build-id', |
| 757 |
type : 'string', |
| 758 |
value : '', |
| 759 |
description : 'Override build id for shader cache keys (hex string). ' + |
| 760 |
'Can be extracted with readelf -x .note.gnu.build-id' |
| 761 |
) |
| 762 |
|
| 763 |
option( |
| 764 |
'min-windows-version', |
| 765 |
type : 'integer', |
| 766 |
min : 7, |
| 767 |
max : 11, |
| 768 |
value : 8, |
| 769 |
description : 'Minimum Windows version to support. Defaults to Windows 8.' |
| 770 |
) |
| 771 |
|
| 772 |
option( |
| 773 |
'xmlconfig', |
| 774 |
type : 'feature', |
| 775 |
value : 'auto', |
| 776 |
deprecated: {'true': 'enabled', 'false': 'disabled'}, |
| 777 |
description : 'Build custom xmlconfig (driconf) support. If disabled, ' + |
| 778 |
'the default driconf file is hardcoded into Mesa. ' + |
| 779 |
'Requires expat.' |
| 780 |
) |
| 781 |
|
| 782 |
option( |
| 783 |
'legacy-wayland', |
| 784 |
type : 'array', |
| 785 |
value : [], |
| 786 |
description : 'Build legacy Wayland support features.', |
| 787 |
choices : [ |
| 788 |
'bind-wayland-display', |
| 789 |
], |
| 790 |
) |
| 791 |
|
| 792 |
option( |
| 793 |
'legacy-x11', |
| 794 |
type : 'array', |
| 795 |
value : [], |
| 796 |
description : 'Build legacy X11 support features.', |
| 797 |
deprecated : true, |
| 798 |
choices : [ |
| 799 |
], |
| 800 |
) |
| 801 |
|
| 802 |
option( |
| 803 |
'mesa-clc', |
| 804 |
type : 'combo', |
| 805 |
value : 'auto', |
| 806 |
choices : [ |
| 807 |
'enabled', 'system', 'auto' |
| 808 |
], |
| 809 |
description : 'Build the mesa-clc compiler or use a system version.' |
| 810 |
) |
| 811 |
|
| 812 |
option( |
| 813 |
'install-mesa-clc', |
| 814 |
type : 'boolean', |
| 815 |
value : false, |
| 816 |
description : 'Install the mesa-clc compiler (if needed for cross builds).' |
| 817 |
) |
| 818 |
|
| 819 |
option( |
| 820 |
'mesa-clc-bundle-headers', |
| 821 |
type : 'combo', |
| 822 |
value : 'auto', |
| 823 |
choices : [ |
| 824 |
'enabled', 'auto' |
| 825 |
], |
| 826 |
description : 'Bundle the OpenCL headers into the mesa-clc binary (default to bundle if static LLVM is used). Note, it might require rebuilding mesa-clc if opencl-c.h or opencl-c-base.h are changed (e.g. on Clang upgrades).' |
| 827 |
) |
| 828 |
|
| 829 |
option( |
| 830 |
'precomp-compiler', |
| 831 |
type : 'combo', |
| 832 |
value : 'auto', |
| 833 |
choices : [ |
| 834 |
'enabled', 'system', 'auto' |
| 835 |
], |
| 836 |
description : 'Build drivers internal shader compilers or use a system version' |
| 837 |
) |
| 838 |
|
| 839 |
option( |
| 840 |
'install-precomp-compiler', |
| 841 |
type : 'boolean', |
| 842 |
value : false, |
| 843 |
description : 'Install the drivers internal shader compilers (if needed for cross builds).' |
| 844 |
) |
| 845 |
|
| 846 |
option( |
| 847 |
'allow-fallback-for', |
| 848 |
type : 'array', |
| 849 |
value : ['perfetto'], |
| 850 |
choices : [ |
| 851 |
'libdrm', 'libva', 'perfetto', |
| 852 |
], |
| 853 |
description : 'Allows the fallback mechanism if the dependency is not available on the system, or too old.' |
| 854 |
) |
| 855 |
|
| 856 |
option( |
| 857 |
'virtgpu_kumquat', |
| 858 |
type : 'boolean', |
| 859 |
value : false, |
| 860 |
description : 'Build virtgpu_kumquat (only useful with gfxstream currently)' |
| 861 |
) |
| 862 |
|
| 863 |
option( |
| 864 |
'spirv-tools', |
| 865 |
type : 'feature', |
| 866 |
description : 'Use SPIRV-Tools for dumping SPIR-V for debugging purposes (required by CLC)' |
| 867 |
) |
| 868 |
|
| 869 |
option( |
| 870 |
'allow-broken-lto', |
| 871 |
type : 'boolean', |
| 872 |
value : false, |
| 873 |
description : 'Manual override switch to enable LTO, which is unsupported due to being broken. WARNING: This option may break your driver randomly!' |
| 874 |
) |
| 875 |
|
| 876 |
option( |
| 877 |
'intel-virtio-experimental', |
| 878 |
type : 'boolean', |
| 879 |
value : false, |
| 880 |
description : 'use experimental virtio backend for intel driver', |
| 881 |
) |