pan/mdg: remove ins->br_compact and ins->branch_extended
[mesa.git] / meson_options.txt
1 # Copyright © 2017-2019 Intel Corporation
2
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE.
20
21 option(
22 'platforms',
23 type : 'array',
24 value : ['auto'],
25 choices : [
26 'auto', 'x11', 'wayland', 'drm', 'surfaceless', 'haiku', 'android',
27 'windows',
28 ],
29 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
30 )
31 option(
32 'dri3',
33 type : 'combo',
34 value : 'auto',
35 choices : ['auto', 'true', 'false', 'disabled', 'enabled'],
36 description : 'enable support for dri3'
37 )
38 option(
39 'dri-drivers',
40 type : 'array',
41 value : ['auto'],
42 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
43 description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
44 )
45 option(
46 'dri-drivers-path',
47 type : 'string',
48 value : '',
49 description : 'Location to install dri drivers. Default: $libdir/dri.'
50 )
51 option(
52 'dri-search-path',
53 type : 'string',
54 value : '',
55 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
56 )
57 option(
58 'gallium-drivers',
59 type : 'array',
60 value : ['auto'],
61 choices : [
62 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
63 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
64 'swr', 'panfrost', 'iris', 'lima', 'zink'
65 ],
66 description : 'List of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
67 )
68 option(
69 'gallium-extra-hud',
70 type : 'boolean',
71 value : false,
72 description : 'Enable HUD block/NIC I/O HUD status support',
73 )
74 option(
75 'gallium-vdpau',
76 type : 'combo',
77 value : 'auto',
78 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
79 description : 'enable gallium vdpau frontend.',
80 )
81 option(
82 'vdpau-libs-path',
83 type : 'string',
84 value : '',
85 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
86 )
87 option(
88 'gallium-xvmc',
89 type : 'combo',
90 value : 'auto',
91 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
92 description : 'enable gallium xvmc frontend.',
93 )
94 option(
95 'xvmc-libs-path',
96 type : 'string',
97 value : '',
98 description : 'path to put xvmc libraries. defaults to $libdir.'
99 )
100 option(
101 'gallium-omx',
102 type : 'combo',
103 value : 'auto',
104 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
105 description : 'enable gallium omx frontend.',
106 )
107 option(
108 'omx-libs-path',
109 type : 'string',
110 value : '',
111 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
112 )
113 option(
114 'gallium-va',
115 type : 'combo',
116 value : 'auto',
117 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
118 description : 'enable gallium va frontend.',
119 )
120 option(
121 'va-libs-path',
122 type : 'string',
123 value : '',
124 description : 'path to put va libraries. defaults to $libdir/dri.'
125 )
126 option(
127 'gallium-xa',
128 type : 'combo',
129 value : 'auto',
130 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
131 description : 'enable gallium xa frontend.',
132 )
133 option(
134 'gallium-nine',
135 type : 'boolean',
136 value : false,
137 description : 'build gallium "nine" Direct3D 9.x frontend.',
138 )
139 option(
140 'gallium-opencl',
141 type : 'combo',
142 choices : ['icd', 'standalone', 'disabled'],
143 value : 'disabled',
144 description : 'build gallium "clover" OpenCL frontend.',
145 )
146 option(
147 'opencl-spirv',
148 type : 'boolean',
149 value : false,
150 description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.',
151 )
152 option(
153 'd3d-drivers-path',
154 type : 'string',
155 value : '',
156 description : 'Location of D3D drivers. Default: $libdir/d3d',
157 )
158 option(
159 'vulkan-drivers',
160 type : 'array',
161 value : ['auto'],
162 choices : ['auto', 'amd', 'freedreno', 'intel'],
163 description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
164 )
165 option(
166 'shader-cache',
167 type : 'combo',
168 value : 'auto',
169 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
170 description : 'Build with on-disk shader cache support'
171 )
172 option(
173 'vulkan-icd-dir',
174 type : 'string',
175 value : '',
176 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
177 )
178 option(
179 'vulkan-overlay-layer',
180 type : 'boolean',
181 value : false,
182 description : 'Whether to build the vulkan overlay layer'
183 )
184 option(
185 'vulkan-device-select-layer',
186 type : 'boolean',
187 value : false,
188 description : 'Whether to build the vulkan device select layer'
189 )
190 option(
191 'shared-glapi',
192 type : 'combo',
193 value : 'auto',
194 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
195 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
196 )
197 option(
198 'gles1',
199 type : 'combo',
200 value : 'auto',
201 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
202 description : 'Build support for OpenGL ES 1.x'
203 )
204 option(
205 'gles2',
206 type : 'combo',
207 value : 'auto',
208 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
209 description : 'Build support for OpenGL ES 2.x and 3.x'
210 )
211 option(
212 'opengl',
213 type : 'boolean',
214 value : true,
215 description : 'Build support for OpenGL (all versions)'
216 )
217 option(
218 'gbm',
219 type : 'combo',
220 value : 'auto',
221 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
222 description : 'Build support for gbm platform'
223 )
224 option(
225 'glx',
226 type : 'combo',
227 value : 'auto',
228 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
229 description : 'Build support for GLX platform'
230 )
231 option(
232 'egl',
233 type : 'combo',
234 value : 'auto',
235 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
236 description : 'Build support for EGL platform'
237 )
238 option(
239 'glvnd',
240 type : 'boolean',
241 value : false,
242 description : 'Enable GLVND support.'
243 )
244 option(
245 'glx-read-only-text',
246 type : 'boolean',
247 value : false,
248 description : 'Disable writable .text section on x86 (decreases performance)'
249 )
250 option(
251 'llvm',
252 type : 'combo',
253 value : 'auto',
254 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
255 description : 'Build with LLVM support.'
256 )
257 option(
258 'shared-llvm',
259 type : 'combo',
260 value : 'auto',
261 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
262 description : 'Whether to link LLVM shared or statically.'
263 )
264 option(
265 'valgrind',
266 type : 'combo',
267 value : 'auto',
268 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
269 description : 'Build with valgrind support'
270 )
271 option(
272 'libunwind',
273 type : 'combo',
274 value : 'auto',
275 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
276 description : 'Use libunwind for stack-traces'
277 )
278 option(
279 'lmsensors',
280 type : 'combo',
281 value : 'auto',
282 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
283 description : 'Enable HUD lmsensors support.'
284 )
285 option(
286 'build-tests',
287 type : 'boolean',
288 value : false,
289 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
290 )
291 option(
292 'build-aco-tests',
293 type : 'boolean',
294 value : false,
295 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
296 )
297 option(
298 'install-intel-gpu-tests',
299 type : 'boolean',
300 value : false,
301 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
302 )
303 option(
304 'selinux',
305 type : 'boolean',
306 value : false,
307 description : 'Build an SELinux-aware Mesa'
308 )
309 option(
310 'osmesa',
311 type : 'combo',
312 value : 'none',
313 choices : ['none', 'classic', 'gallium'],
314 description : 'Build OSmesa.'
315 )
316 option(
317 'osmesa-bits',
318 type : 'combo',
319 value : '8',
320 choices : ['8', '16', '32'],
321 description : 'Number of channel bits for OSMesa.'
322 )
323 option(
324 'swr-arches',
325 type : 'array',
326 value : ['avx', 'avx2'],
327 choices : ['avx', 'avx2', 'knl', 'skx'],
328 description : 'Architectures to build SWR support for.',
329 )
330 option(
331 'shared-swr',
332 type : 'boolean',
333 value : true,
334 description : 'Whether to link SWR shared or statically.',
335 )
336
337 option(
338 'tools',
339 type : 'array',
340 value : [],
341 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
342 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
343 )
344 option(
345 'power8',
346 type : 'combo',
347 value : 'auto',
348 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
349 description : 'Enable power8 optimizations.',
350 )
351 option(
352 'xlib-lease',
353 type : 'combo',
354 value : 'auto',
355 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
356 description : 'Enable VK_EXT_acquire_xlib_display.'
357 )
358 option(
359 'glx-direct',
360 type : 'boolean',
361 value : true,
362 description : 'Enable direct rendering in GLX and EGL for DRI',
363 )
364 option(
365 'prefer-iris',
366 type : 'boolean',
367 value : true,
368 description : 'Prefer new Intel iris driver over older i965 driver'
369 )
370 option('egl-lib-suffix',
371 type : 'string',
372 value : '',
373 description : 'Suffix to append to EGL library name. Default: none.'
374 )
375 option(
376 'gles-lib-suffix',
377 type : 'string',
378 value : '',
379 description : 'Suffix to append to GLES library names. Default: none.'
380 )
381 option(
382 'platform-sdk-version',
383 type : 'integer',
384 min : 25,
385 max : 28,
386 value : 25,
387 description : 'Android Platform SDK version. Default: Nougat version.'
388 )
389 option(
390 'zstd',
391 type : 'combo',
392 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
393 value : 'auto',
394 description : 'Use ZSTD instead of ZLIB in some cases.'
395 )