OSDN Git Service

spirv: OpImageQueryLod requires a sampler
[android-x86/external-mesa.git] / meson_options.txt
1 # Copyright © 2017-2018 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   ],
28   description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
29 )
30 option(
31   'dri3',
32   type : 'combo',
33   value : 'auto',
34   choices : ['auto', 'true', 'false'],
35   description : 'enable support for dri3'
36 )
37 option(
38   'dri-drivers',
39   type : 'array',
40   value : ['auto'],
41   choices : ['', 'auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
42   description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
43 )
44 option(
45   'dri-drivers-path',
46   type : 'string',
47   value : '',
48   description : 'Location to install dri drivers. Default: $libdir/dri.'
49 )
50 option(
51   'dri-search-path',
52   type : 'string',
53   value : '',
54   description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
55 )
56 option(
57   'gallium-drivers',
58   type : 'array',
59   value : ['auto'],
60   choices : [
61     '', 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
62     'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
63     'swr', 'panfrost', 'iris'
64   ],
65   description : 'List of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
66 )
67 option(
68   'gallium-extra-hud',
69   type : 'boolean',
70   value : false,
71   description : 'Enable HUD block/NIC I/O HUD status support',
72 )
73 option(
74   'gallium-vdpau',
75   type : 'combo',
76   value : 'auto',
77   choices : ['auto', 'true', 'false'],
78   description : 'enable gallium vdpau state tracker.',
79 )
80 option(
81   'vdpau-libs-path',
82   type : 'string',
83   value : '',
84   description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
85 )
86 option(
87   'gallium-xvmc',
88   type : 'combo',
89   value : 'auto',
90   choices : ['auto', 'true', 'false'],
91   description : 'enable gallium xvmc state tracker.',
92 )
93 option(
94   'xvmc-libs-path',
95   type : 'string',
96   value : '',
97   description : 'path to put xvmc libraries. defaults to $libdir.'
98 )
99 option(
100   'gallium-omx',
101   type : 'combo',
102   value : 'auto',
103   choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
104   description : 'enable gallium omx state tracker.',
105 )
106 option(
107   'omx-libs-path',
108   type : 'string',
109   value : '',
110   description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
111 )
112 option(
113   'gallium-va',
114   type : 'combo',
115   value : 'auto',
116   choices : ['auto', 'true', 'false'],
117   description : 'enable gallium va state tracker.',
118 )
119 option(
120   'va-libs-path',
121   type : 'string',
122   value : '',
123   description : 'path to put va libraries. defaults to $libdir/dri.'
124 )
125 option(
126   'gallium-xa',
127   type : 'combo',
128   value : 'auto',
129   choices : ['auto', 'true', 'false'],
130   description : 'enable gallium xa state tracker.',
131 )
132 option(
133   'gallium-nine',
134   type : 'boolean',
135   value : false,
136   description : 'build gallium "nine" Direct3D 9.x state tracker.',
137 )
138 option(
139   'gallium-opencl',
140   type : 'combo',
141   choices : ['icd', 'standalone', 'disabled'],
142   value : 'disabled',
143   description : 'build gallium "clover" OpenCL state tracker.',
144 )
145 option(
146   'd3d-drivers-path',
147   type : 'string',
148   value : '',
149   description : 'Location of D3D drivers. Default: $libdir/d3d',
150 )
151 option(
152   'vulkan-drivers',
153   type : 'array',
154   value : ['auto'],
155   choices : ['', 'auto', 'amd', 'intel'],
156   description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
157 )
158 option(
159   'shader-cache',
160   type : 'boolean',
161   value : true,
162   description : 'Build with on-disk shader cache support'
163 )
164 option(
165   'vulkan-icd-dir',
166   type : 'string',
167   value : '',
168   description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
169 )
170 option(
171   'vulkan-overlay-layer',
172   type : 'boolean',
173   value : false,
174   description : 'Whether to build the vulkan overlay layer'
175 )
176 option(
177   'shared-glapi',
178   type : 'boolean',
179   value : true,
180   description : 'Whether to build a shared or static glapi'
181 )
182 option(
183   'gles1',
184   type : 'boolean',
185   value : true,
186   description : 'Build support for OpenGL ES 1.x'
187 )
188 option(
189   'gles2',
190   type : 'boolean',
191   value : true,
192   description : 'Build support for OpenGL ES 2.x and 3.x'
193 )
194 option(
195   'opengl',
196   type : 'boolean',
197   value : true,
198   description : 'Build support for OpenGL (all versions)'
199 )
200 option(
201   'gbm',
202   type : 'combo',
203   value : 'auto',
204   choices : ['auto', 'true', 'false'],
205   description : 'Build support for gbm platform'
206 )
207 option(
208   'glx',
209   type : 'combo',
210   value : 'auto',
211   choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
212   description : 'Build support for GLX platform'
213 )
214 option(
215   'egl',
216   type : 'combo',
217   value : 'auto',
218   choices : ['auto', 'true', 'false'],
219   description : 'Build support for EGL platform'
220 )
221 option(
222   'glvnd',
223   type : 'boolean',
224   value : false,
225   description : 'Enable GLVND support.'
226 )
227 option(
228   'asm',
229   type : 'boolean',
230   value : true,
231   description : 'Build assembly code if possible'
232 )
233 option(
234    'glx-read-only-text',
235    type : 'boolean',
236    value : false,
237    description : 'Disable writable .text section on x86 (decreases performance)'
238 )
239 option(
240   'llvm',
241   type : 'combo',
242   value : 'auto',
243   choices : ['auto', 'true', 'false'],
244   description : 'Build with LLVM support.'
245 )
246 option(
247   'shared-llvm',
248   type : 'boolean',
249   value : true,
250   description : 'Whether to link llvm shared or statically.'
251 )
252 option(
253   'valgrind',
254   type : 'combo',
255   value : 'auto',
256   choices : ['auto', 'true', 'false'],
257   description : 'Build with valgrind support'
258 )
259 option(
260   'libunwind',
261   type : 'combo',
262   value : 'auto',
263   choices : ['auto', 'true', 'false'],
264   description : 'Use libunwind for stack-traces'
265 )
266 option(
267   'lmsensors',
268   type : 'combo',
269   value : 'auto',
270   choices : ['auto', 'true', 'false'],
271   description : 'Enable HUD lmsensors support.'
272 )
273 option(
274   'build-tests',
275   type : 'boolean',
276   value : false,
277   description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
278 )
279 option(
280   'selinux',
281   type : 'boolean',
282   value : false,
283   description : 'Build an SELinux-aware Mesa'
284 )
285 option(
286   'osmesa',
287   type : 'combo',
288   value : 'none',
289   choices : ['none', 'classic', 'gallium'],
290   description : 'Build OSmesa.'
291 )
292 option(
293   'osmesa-bits',
294   type : 'combo',
295   value : '8',
296   choices : ['8', '16', '32'],
297   description : 'Number of channel bits for OSMesa.'
298 )
299 option(
300   'swr-arches',
301   type : 'array',
302   value : ['avx', 'avx2'],
303   choices : ['avx', 'avx2', 'knl', 'skx'],
304   description : 'Architectures to build SWR support for.',
305 )
306 option(
307   'tools',
308   type : 'array',
309   value : [],
310   choices : ['etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'all'],
311   description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
312 )
313 option(
314   'power8',
315   type : 'combo',
316   value : 'auto',
317   choices : ['auto', 'true', 'false'],
318   description : 'Enable power8 optimizations.',
319 )
320 option(
321   'xlib-lease',
322   type : 'combo',
323   value : 'auto',
324   choices : ['auto', 'true', 'false'],
325   description : 'Enable VK_EXT_acquire_xlib_display.'
326 )
327 option(
328   'glx-direct',
329   type : 'boolean',
330   value : true,
331   description : 'Enable direct rendering in GLX and EGL for DRI',
332 )