radeonsi: allow out-of-order rasterization in commutative blending cases
[mesa.git] / src / util / xmlpool / t_options.h
1 /*
2 * XML DRI client-side driver configuration
3 * Copyright (C) 2003 Felix Kuehling
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * FELIX KUEHLING, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 *
23 */
24 /**
25 * \file t_options.h
26 * \brief Templates of common options
27 * \author Felix Kuehling
28 *
29 * This file defines macros for common options that can be used to
30 * construct driConfigOptions in the drivers. This file is only a
31 * template containing English descriptions for options wrapped in
32 * gettext(). xgettext can be used to extract translatable
33 * strings. These strings can then be translated by anyone familiar
34 * with GNU gettext. gen_xmlpool.py takes this template and fills in
35 * all the translations. The result (options.h) is included by
36 * xmlpool.h which in turn can be included by drivers.
37 *
38 * The macros used to describe otions in this file are defined in
39 * ../xmlpool.h.
40 */
41
42 /* This is needed for xgettext to extract translatable strings.
43 * gen_xmlpool.py will discard this line. */
44 #include <libintl.h>
45
46 /*
47 * predefined option sections and options with multi-lingual descriptions
48 */
49
50
51 /**
52 * \brief Debugging options
53 */
54 #define DRI_CONF_SECTION_DEBUG \
55 DRI_CONF_SECTION_BEGIN \
56 DRI_CONF_DESC(en,gettext("Debugging"))
57
58 #define DRI_CONF_NO_RAST(def) \
59 DRI_CONF_OPT_BEGIN_B(no_rast, def) \
60 DRI_CONF_DESC(en,gettext("Disable 3D acceleration")) \
61 DRI_CONF_OPT_END
62
63 #define DRI_CONF_PERFORMANCE_BOXES(def) \
64 DRI_CONF_OPT_BEGIN_B(performance_boxes, def) \
65 DRI_CONF_DESC(en,gettext("Show performance boxes")) \
66 DRI_CONF_OPT_END
67
68 #define DRI_CONF_ALWAYS_FLUSH_BATCH(def) \
69 DRI_CONF_OPT_BEGIN_B(always_flush_batch, def) \
70 DRI_CONF_DESC(en,gettext("Enable flushing batchbuffer after each draw call")) \
71 DRI_CONF_OPT_END
72
73 #define DRI_CONF_ALWAYS_FLUSH_CACHE(def) \
74 DRI_CONF_OPT_BEGIN_B(always_flush_cache, def) \
75 DRI_CONF_DESC(en,gettext("Enable flushing GPU caches with each draw call")) \
76 DRI_CONF_OPT_END
77
78 #define DRI_CONF_DISABLE_THROTTLING(def) \
79 DRI_CONF_OPT_BEGIN_B(disable_throttling, def) \
80 DRI_CONF_DESC(en,gettext("Disable throttling on first batch after flush")) \
81 DRI_CONF_OPT_END
82
83 #define DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN(def) \
84 DRI_CONF_OPT_BEGIN_B(force_glsl_extensions_warn, def) \
85 DRI_CONF_DESC(en,gettext("Force GLSL extension default behavior to 'warn'")) \
86 DRI_CONF_OPT_END
87
88 #define DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED(def) \
89 DRI_CONF_OPT_BEGIN_B(disable_blend_func_extended, def) \
90 DRI_CONF_DESC(en,gettext("Disable dual source blending")) \
91 DRI_CONF_OPT_END
92
93 #define DRI_CONF_DUAL_COLOR_BLEND_BY_LOCATION(def) \
94 DRI_CONF_OPT_BEGIN_B(dual_color_blend_by_location, def) \
95 DRI_CONF_DESC(en,gettext("Identify dual color blending sources by location rather than index")) \
96 DRI_CONF_OPT_END
97
98 #define DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS(def) \
99 DRI_CONF_OPT_BEGIN_B(disable_glsl_line_continuations, def) \
100 DRI_CONF_DESC(en,gettext("Disable backslash-based line continuations in GLSL source")) \
101 DRI_CONF_OPT_END
102
103 #define DRI_CONF_DISABLE_SHADER_BIT_ENCODING(def) \
104 DRI_CONF_OPT_BEGIN_B(disable_shader_bit_encoding, def) \
105 DRI_CONF_DESC(en,gettext("Disable GL_ARB_shader_bit_encoding")) \
106 DRI_CONF_OPT_END
107
108 #define DRI_CONF_FORCE_GLSL_VERSION(def) \
109 DRI_CONF_OPT_BEGIN_V(force_glsl_version, int, def, "0:999") \
110 DRI_CONF_DESC(en,gettext("Force a default GLSL version for shaders that lack an explicit #version line")) \
111 DRI_CONF_OPT_END
112
113 #define DRI_CONF_ALLOW_GLSL_EXTENSION_DIRECTIVE_MIDSHADER(def) \
114 DRI_CONF_OPT_BEGIN_B(allow_glsl_extension_directive_midshader, def) \
115 DRI_CONF_DESC(en,gettext("Allow GLSL #extension directives in the middle of shaders")) \
116 DRI_CONF_OPT_END
117
118 #define DRI_CONF_ALLOW_GLSL_BUILTIN_VARIABLE_REDECLARATION(def) \
119 DRI_CONF_OPT_BEGIN_B(allow_glsl_builtin_variable_redeclaration, def) \
120 DRI_CONF_DESC(en,gettext("Allow GLSL built-in variables to be redeclared verbatim")) \
121 DRI_CONF_OPT_END
122
123 #define DRI_CONF_ALLOW_HIGHER_COMPAT_VERSION(def) \
124 DRI_CONF_OPT_BEGIN_B(allow_higher_compat_version, def) \
125 DRI_CONF_DESC(en,gettext("Allow a higher compat profile (version 3.1+) for apps that request it")) \
126 DRI_CONF_OPT_END
127
128 #define DRI_CONF_FORCE_GLSL_ABS_SQRT(def) \
129 DRI_CONF_OPT_BEGIN_B(force_glsl_abs_sqrt, def) \
130 DRI_CONF_DESC(en,gettext("Force computing the absolute value for sqrt() and inversesqrt()")) \
131 DRI_CONF_OPT_END
132
133 #define DRI_CONF_GLSL_CORRECT_DERIVATIVES_AFTER_DISCARD(def) \
134 DRI_CONF_OPT_BEGIN_B(glsl_correct_derivatives_after_discard, def) \
135 DRI_CONF_DESC(en,gettext("Implicit and explicit derivatives after a discard behave as if the discard didn't happen")) \
136 DRI_CONF_OPT_END
137
138
139 /**
140 * \brief Image quality-related options
141 */
142 #define DRI_CONF_SECTION_QUALITY \
143 DRI_CONF_SECTION_BEGIN \
144 DRI_CONF_DESC(en,gettext("Image Quality"))
145
146 #define DRI_CONF_EXCESS_MIPMAP(def) \
147 DRI_CONF_OPT_BEGIN_B(excess_mipmap, def) \
148 DRI_CONF_DESC(en,"Enable extra mipmap level") \
149 DRI_CONF_OPT_END
150
151 #define DRI_CONF_TEXTURE_DEPTH_FB 0
152 #define DRI_CONF_TEXTURE_DEPTH_32 1
153 #define DRI_CONF_TEXTURE_DEPTH_16 2
154 #define DRI_CONF_TEXTURE_DEPTH_FORCE_16 3
155 #define DRI_CONF_TEXTURE_DEPTH(def) \
156 DRI_CONF_OPT_BEGIN_V(texture_depth,enum,def,"0:3") \
157 DRI_CONF_DESC_BEGIN(en,gettext("Texture color depth")) \
158 DRI_CONF_ENUM(0,gettext("Prefer frame buffer color depth")) \
159 DRI_CONF_ENUM(1,gettext("Prefer 32 bits per texel")) \
160 DRI_CONF_ENUM(2,gettext("Prefer 16 bits per texel")) \
161 DRI_CONF_ENUM(3,gettext("Force 16 bits per texel")) \
162 DRI_CONF_DESC_END \
163 DRI_CONF_OPT_END
164
165 #define DRI_CONF_DEF_MAX_ANISOTROPY(def,range) \
166 DRI_CONF_OPT_BEGIN_V(def_max_anisotropy,float,def,range) \
167 DRI_CONF_DESC(en,gettext("Initial maximum value for anisotropic texture filtering")) \
168 DRI_CONF_OPT_END
169
170 #define DRI_CONF_NO_NEG_LOD_BIAS(def) \
171 DRI_CONF_OPT_BEGIN_B(no_neg_lod_bias, def) \
172 DRI_CONF_DESC(en,gettext("Forbid negative texture LOD bias")) \
173 DRI_CONF_OPT_END
174
175 #define DRI_CONF_FORCE_S3TC_ENABLE(def) \
176 DRI_CONF_OPT_BEGIN_B(force_s3tc_enable, def) \
177 DRI_CONF_DESC(en,gettext("Enable S3TC texture compression even if software support is not available")) \
178 DRI_CONF_OPT_END
179
180 #define DRI_CONF_PRECISE_TRIG(def) \
181 DRI_CONF_OPT_BEGIN_B(precise_trig, def) \
182 DRI_CONF_DESC(en,gettext("Prefer accuracy over performance in trig functions")) \
183 DRI_CONF_OPT_END
184
185 #define DRI_CONF_COLOR_REDUCTION_ROUND 0
186 #define DRI_CONF_COLOR_REDUCTION_DITHER 1
187 #define DRI_CONF_COLOR_REDUCTION(def) \
188 DRI_CONF_OPT_BEGIN_V(color_reduction,enum,def,"0:1") \
189 DRI_CONF_DESC_BEGIN(en,gettext("Initial color reduction method")) \
190 DRI_CONF_ENUM(0,gettext("Round colors")) \
191 DRI_CONF_ENUM(1,gettext("Dither colors")) \
192 DRI_CONF_DESC_END \
193 DRI_CONF_OPT_END
194
195 #define DRI_CONF_ROUND_TRUNC 0
196 #define DRI_CONF_ROUND_ROUND 1
197 #define DRI_CONF_ROUND_MODE(def) \
198 DRI_CONF_OPT_BEGIN_V(round_mode,enum,def,"0:1") \
199 DRI_CONF_DESC_BEGIN(en,gettext("Color rounding method")) \
200 DRI_CONF_ENUM(0,gettext("Round color components downward")) \
201 DRI_CONF_ENUM(1,gettext("Round to nearest color")) \
202 DRI_CONF_DESC_END \
203 DRI_CONF_OPT_END
204
205 #define DRI_CONF_DITHER_XERRORDIFF 0
206 #define DRI_CONF_DITHER_XERRORDIFFRESET 1
207 #define DRI_CONF_DITHER_ORDERED 2
208 #define DRI_CONF_DITHER_MODE(def) \
209 DRI_CONF_OPT_BEGIN_V(dither_mode,enum,def,"0:2") \
210 DRI_CONF_DESC_BEGIN(en,gettext("Color dithering method")) \
211 DRI_CONF_ENUM(0,gettext("Horizontal error diffusion")) \
212 DRI_CONF_ENUM(1,gettext("Horizontal error diffusion, reset error at line start")) \
213 DRI_CONF_ENUM(2,gettext("Ordered 2D color dithering")) \
214 DRI_CONF_DESC_END \
215 DRI_CONF_OPT_END
216
217 #define DRI_CONF_FLOAT_DEPTH(def) \
218 DRI_CONF_OPT_BEGIN_B(float_depth, def) \
219 DRI_CONF_DESC(en,gettext("Floating point depth buffer")) \
220 DRI_CONF_OPT_END
221
222 #define DRI_CONF_PP_CELSHADE(def) \
223 DRI_CONF_OPT_BEGIN_V(pp_celshade,enum,def,"0:1") \
224 DRI_CONF_DESC(en,gettext("A post-processing filter to cel-shade the output")) \
225 DRI_CONF_OPT_END
226
227 #define DRI_CONF_PP_NORED(def) \
228 DRI_CONF_OPT_BEGIN_V(pp_nored,enum,def,"0:1") \
229 DRI_CONF_DESC(en,gettext("A post-processing filter to remove the red channel")) \
230 DRI_CONF_OPT_END
231
232 #define DRI_CONF_PP_NOGREEN(def) \
233 DRI_CONF_OPT_BEGIN_V(pp_nogreen,enum,def,"0:1") \
234 DRI_CONF_DESC(en,gettext("A post-processing filter to remove the green channel")) \
235 DRI_CONF_OPT_END
236
237 #define DRI_CONF_PP_NOBLUE(def) \
238 DRI_CONF_OPT_BEGIN_V(pp_noblue,enum,def,"0:1") \
239 DRI_CONF_DESC(en,gettext("A post-processing filter to remove the blue channel")) \
240 DRI_CONF_OPT_END
241
242 #define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
243 DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa,int,def, # min ":" # max ) \
244 DRI_CONF_DESC(en,gettext("Morphological anti-aliasing based on Jimenez\\\' MLAA. 0 to disable, 8 for default quality")) \
245 DRI_CONF_OPT_END
246
247 #define DRI_CONF_PP_JIMENEZMLAA_COLOR(def,min,max) \
248 DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa_color,int,def, # min ":" # max ) \
249 DRI_CONF_DESC(en,gettext("Morphological anti-aliasing based on Jimenez\\\' MLAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL apps")) \
250 DRI_CONF_OPT_END
251
252
253
254 /**
255 * \brief Performance-related options
256 */
257 #define DRI_CONF_SECTION_PERFORMANCE \
258 DRI_CONF_SECTION_BEGIN \
259 DRI_CONF_DESC(en,gettext("Performance"))
260
261 #define DRI_CONF_TCL_SW 0
262 #define DRI_CONF_TCL_PIPELINED 1
263 #define DRI_CONF_TCL_VTXFMT 2
264 #define DRI_CONF_TCL_CODEGEN 3
265 #define DRI_CONF_TCL_MODE(def) \
266 DRI_CONF_OPT_BEGIN_V(tcl_mode,enum,def,"0:3") \
267 DRI_CONF_DESC_BEGIN(en,gettext("TCL mode (Transformation, Clipping, Lighting)")) \
268 DRI_CONF_ENUM(0,gettext("Use software TCL pipeline")) \
269 DRI_CONF_ENUM(1,gettext("Use hardware TCL as first TCL pipeline stage")) \
270 DRI_CONF_ENUM(2,gettext("Bypass the TCL pipeline")) \
271 DRI_CONF_ENUM(3,gettext("Bypass the TCL pipeline with state-based machine code generated on-the-fly")) \
272 DRI_CONF_DESC_END \
273 DRI_CONF_OPT_END
274
275 #define DRI_CONF_FTHROTTLE_BUSY 0
276 #define DRI_CONF_FTHROTTLE_USLEEPS 1
277 #define DRI_CONF_FTHROTTLE_IRQS 2
278 #define DRI_CONF_FTHROTTLE_MODE(def) \
279 DRI_CONF_OPT_BEGIN_V(fthrottle_mode,enum,def,"0:2") \
280 DRI_CONF_DESC_BEGIN(en,gettext("Method to limit rendering latency")) \
281 DRI_CONF_ENUM(0,gettext("Busy waiting for the graphics hardware")) \
282 DRI_CONF_ENUM(1,gettext("Sleep for brief intervals while waiting for the graphics hardware")) \
283 DRI_CONF_ENUM(2,gettext("Let the graphics hardware emit a software interrupt and sleep")) \
284 DRI_CONF_DESC_END \
285 DRI_CONF_OPT_END
286
287 #define DRI_CONF_VBLANK_NEVER 0
288 #define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
289 #define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
290 #define DRI_CONF_VBLANK_ALWAYS_SYNC 3
291 #define DRI_CONF_VBLANK_MODE(def) \
292 DRI_CONF_OPT_BEGIN_V(vblank_mode,enum,def,"0:3") \
293 DRI_CONF_DESC_BEGIN(en,gettext("Synchronization with vertical refresh (swap intervals)")) \
294 DRI_CONF_ENUM(0,gettext("Never synchronize with vertical refresh, ignore application's choice")) \
295 DRI_CONF_ENUM(1,gettext("Initial swap interval 0, obey application's choice")) \
296 DRI_CONF_ENUM(2,gettext("Initial swap interval 1, obey application's choice")) \
297 DRI_CONF_ENUM(3,gettext("Always synchronize with vertical refresh, application chooses the minimum swap interval")) \
298 DRI_CONF_DESC_END \
299 DRI_CONF_OPT_END
300
301 #define DRI_CONF_HYPERZ_DISABLED 0
302 #define DRI_CONF_HYPERZ_ENABLED 1
303 #define DRI_CONF_HYPERZ(def) \
304 DRI_CONF_OPT_BEGIN_B(hyperz, def) \
305 DRI_CONF_DESC(en,gettext("Use HyperZ to boost performance")) \
306 DRI_CONF_OPT_END
307
308 #define DRI_CONF_MAX_TEXTURE_UNITS(def,min,max) \
309 DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
310 DRI_CONF_DESC(en,gettext("Number of texture units used")) \
311 DRI_CONF_OPT_END
312
313 #define DRI_CONF_TEXTURE_BLEND_QUALITY(def,range) \
314 DRI_CONF_OPT_BEGIN_V(texture_blend_quality,float,def,range) \
315 DRI_CONF_DESC(en,gettext("Texture filtering quality vs. speed, AKA “brilinear” texture filtering")) \
316 DRI_CONF_OPT_END
317
318 #define DRI_CONF_TEXTURE_HEAPS_ALL 0
319 #define DRI_CONF_TEXTURE_HEAPS_CARD 1
320 #define DRI_CONF_TEXTURE_HEAPS_GART 2
321 #define DRI_CONF_TEXTURE_HEAPS(def) \
322 DRI_CONF_OPT_BEGIN_V(texture_heaps,enum,def,"0:2") \
323 DRI_CONF_DESC_BEGIN(en,gettext("Used types of texture memory")) \
324 DRI_CONF_ENUM(0,gettext("All available memory")) \
325 DRI_CONF_ENUM(1,gettext("Only card memory (if available)")) \
326 DRI_CONF_ENUM(2,gettext("Only GART (AGP/PCIE) memory (if available)")) \
327 DRI_CONF_DESC_END \
328 DRI_CONF_OPT_END
329
330 #define DRI_CONF_MESA_GLTHREAD(def) \
331 DRI_CONF_OPT_BEGIN_B(mesa_glthread, def) \
332 DRI_CONF_DESC(en,gettext("Enable offloading GL driver work to a separate thread")) \
333 DRI_CONF_OPT_END
334
335 #define DRI_CONF_MESA_NO_ERROR(def) \
336 DRI_CONF_OPT_BEGIN_B(mesa_no_error, def) \
337 DRI_CONF_DESC(en,gettext("Disable GL driver error checking")) \
338 DRI_CONF_OPT_END
339
340 #define DRI_CONF_DISABLE_EXT_BUFFER_AGE(def) \
341 DRI_CONF_OPT_BEGIN_B(glx_disable_ext_buffer_age, def) \
342 DRI_CONF_DESC(en, gettext("Disable the GLX_EXT_buffer_age extension")) \
343 DRI_CONF_OPT_END
344
345 #define DRI_CONF_DISABLE_OML_SYNC_CONTROL(def) \
346 DRI_CONF_OPT_BEGIN_B(glx_disable_oml_sync_control, def) \
347 DRI_CONF_DESC(en, gettext("Disable the GLX_OML_sync_control extension")) \
348 DRI_CONF_OPT_END
349
350
351 /**
352 * \brief Software-fallback options. To allow using features (like
353 * GL_ARB_vertex_program) on GPUs that don't otherwise support the feature.
354 */
355 #define DRI_CONF_SECTION_SOFTWARE \
356 DRI_CONF_SECTION_BEGIN \
357 DRI_CONF_DESC(en,gettext("Features that are not hardware-accelerated"))
358
359 #define DRI_CONF_ARB_VERTEX_PROGRAM(def) \
360 DRI_CONF_OPT_BEGIN_B(arb_vertex_program, def) \
361 DRI_CONF_DESC(en,gettext("Enable extension GL_ARB_vertex_program")) \
362 DRI_CONF_OPT_END
363
364
365
366 /**
367 * \brief Miscellaneous configuration options
368 */
369 #define DRI_CONF_SECTION_MISCELLANEOUS \
370 DRI_CONF_SECTION_BEGIN \
371 DRI_CONF_DESC(en,gettext("Miscellaneous"))
372
373 #define DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER(def) \
374 DRI_CONF_OPT_BEGIN_B(always_have_depth_buffer, def) \
375 DRI_CONF_DESC(en,gettext("Create all visuals with a depth buffer")) \
376 DRI_CONF_OPT_END
377
378 #define DRI_CONF_GLSL_ZERO_INIT(def) \
379 DRI_CONF_OPT_BEGIN_B(glsl_zero_init, def) \
380 DRI_CONF_DESC(en,gettext("Force uninitialized variables to default to zero")) \
381 DRI_CONF_OPT_END
382
383 /**
384 * \brief Initialization configuration options
385 */
386 #define DRI_CONF_SECTION_INITIALIZATION \
387 DRI_CONF_SECTION_BEGIN \
388 DRI_CONF_DESC(en,gettext("Initialization"))
389
390 #define DRI_CONF_DEVICE_ID_PATH_TAG(def) \
391 DRI_CONF_OPT_BEGIN(device_id, string, def) \
392 DRI_CONF_DESC(en,gettext("Define the graphic device to use if possible")) \
393 DRI_CONF_OPT_END
394
395 /**
396 * \brief Gallium-Nine specific configuration options
397 */
398
399 #define DRI_CONF_SECTION_NINE \
400 DRI_CONF_SECTION_BEGIN \
401 DRI_CONF_DESC(en,gettext("Gallium Nine"))
402
403 #define DRI_CONF_NINE_THROTTLE(def) \
404 DRI_CONF_OPT_BEGIN(throttle_value, int, def) \
405 DRI_CONF_DESC(en,gettext("Define the throttling value. -1 for no throttling, -2 for default (usually 2), 0 for glfinish behaviour")) \
406 DRI_CONF_OPT_END
407
408 #define DRI_CONF_NINE_THREADSUBMIT(def) \
409 DRI_CONF_OPT_BEGIN_B(thread_submit, def) \
410 DRI_CONF_DESC(en,gettext("Use an additional thread to submit buffers.")) \
411 DRI_CONF_OPT_END
412
413 #define DRI_CONF_NINE_OVERRIDEVENDOR(def) \
414 DRI_CONF_OPT_BEGIN(override_vendorid, int, def) \
415 DRI_CONF_DESC(en,gettext("Define the vendor_id to report. This allows faking another hardware vendor.")) \
416 DRI_CONF_OPT_END
417
418 #define DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE(def) \
419 DRI_CONF_OPT_BEGIN_B(discard_delayed_release, def) \
420 DRI_CONF_DESC(en,gettext("Whether to allow the display server to release buffers with a delay when using d3d's presentation mode DISCARD. Default to true. Set to false if suffering from lag (thread_submit=true can also help in this situation).")) \
421 DRI_CONF_OPT_END
422
423 #define DRI_CONF_NINE_TEARFREEDISCARD(def) \
424 DRI_CONF_OPT_BEGIN_B(tearfree_discard, def) \
425 DRI_CONF_DESC(en,gettext("Whether to make d3d's presentation mode DISCARD (games usually use that mode) Tear Free. If rendering above screen refresh, some frames will get skipped. false by default.")) \
426 DRI_CONF_OPT_END
427
428 #define DRI_CONF_NINE_CSMT(def) \
429 DRI_CONF_OPT_BEGIN(csmt_force, int, def) \
430 DRI_CONF_DESC(en,gettext("If set to 1, force gallium nine CSMT. If set to 0, disable it. By default (-1) CSMT is enabled on known thread-safe drivers.")) \
431 DRI_CONF_OPT_END
432
433 /**
434 * \brief radeonsi specific configuration options
435 */
436
437 #define DRI_CONF_RADEONSI_ENABLE_SISCHED(def) \
438 DRI_CONF_OPT_BEGIN_B(radeonsi_enable_sisched, def) \
439 DRI_CONF_DESC(en,gettext("Use the LLVM sisched option for shader compiles")) \
440 DRI_CONF_OPT_END
441
442 #define DRI_CONF_RADEONSI_ASSUME_NO_Z_FIGHTS(def) \
443 DRI_CONF_OPT_BEGIN_B(radeonsi_assume_no_z_fights, def) \
444 DRI_CONF_DESC(en,gettext("Assume no Z fights (enables aggressive out-of-order rasterization to improve performance; may cause rendering errors)")) \
445 DRI_CONF_OPT_END
446
447 #define DRI_CONF_RADEONSI_COMMUTATIVE_BLEND_ADD(def) \
448 DRI_CONF_OPT_BEGIN_B(radeonsi_commutative_blend_add, def) \
449 DRI_CONF_DESC(en,gettext("Commutative additive blending optimizations (may cause rendering errors)")) \
450 DRI_CONF_OPT_END