android: radeonsi/gfx10: generate gfx10_format_table.h (v2)
[mesa.git] / docs / envvars.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <title>Environment Variables</title>
6 <link rel="stylesheet" type="text/css" href="mesa.css">
7 </head>
8 <body>
9
10 <div class="header">
11 The Mesa 3D Graphics Library
12 </div>
13
14 <iframe src="contents.html"></iframe>
15 <div class="content">
16
17 <h1>Environment Variables</h1>
18
19 <p>
20 Normally, no environment variables need to be set. Most of the environment
21 variables used by Mesa/Gallium are for debugging purposes, but they can
22 sometimes be useful for debugging end-user issues.
23 </p>
24
25
26 <h2>LibGL environment variables</h2>
27
28 <dl>
29 <dt><code>LIBGL_DEBUG</code></dt>
30 <dd>If defined debug information will be printed to stderr.
31 If set to <code>verbose</code> additional information will be
32 printed.</dd>
33 <dt><code>LIBGL_DRIVERS_PATH</code></dt>
34 <dd>colon-separated list of paths to search for DRI drivers</dd>
35 <dt><code>LIBGL_ALWAYS_INDIRECT</code></dt>
36 <dd>if set to <code>true</code>, forces an indirect rendering
37 context/connection.</dd>
38 <dt><code>LIBGL_ALWAYS_SOFTWARE</code></dt>
39 <dd>if set to <code>true</code>, always use software rendering</dd>
40 <dt><code>LIBGL_NO_DRAWARRAYS</code></dt>
41 <dd>if set to <code>true</code>, do not use DrawArrays GLX protocol
42 (for debugging)</dd>
43 <dt><code>LIBGL_SHOW_FPS</code></dt>
44 <dd>print framerate to stdout based on the number of
45 <code>glXSwapBuffers</code> calls per second.</dd>
46 <dt><code>LIBGL_DRI3_DISABLE</code></dt>
47 <dd>disable DRI3 if set to <code>true</code>.</dd>
48 </dl>
49
50 <h2>Core Mesa environment variables</h2>
51
52 <dl>
53 <dt><code>MESA_NO_ASM</code></dt>
54 <dd>if set, disables all assembly language optimizations</dd>
55 <dt><code>MESA_NO_MMX</code></dt>
56 <dd>if set, disables Intel MMX optimizations</dd>
57 <dt><code>MESA_NO_3DNOW</code></dt>
58 <dd>if set, disables AMD 3DNow! optimizations</dd>
59 <dt><code>MESA_NO_SSE</code></dt>
60 <dd>if set, disables Intel SSE optimizations</dd>
61 <dt><code>MESA_NO_ERROR</code></dt>
62 <dd>if set to 1, error checking is disabled as per <code>KHR_no_error</code>.
63 This will result in undefined behaviour for invalid use of the api, but
64 can reduce CPU use for apps that are known to be error free.</dd>
65 <dt><code>MESA_DEBUG</code></dt>
66 <dd>if set, error messages are printed to stderr. For example,
67 if the application generates a <code>GL_INVALID_ENUM</code> error, a
68 corresponding error message indicating where the error occurred, and
69 possibly why, will be printed to stderr. For release builds,
70 <code>MESA_DEBUG</code> defaults to off (no debug output).
71 <code>MESA_DEBUG</code> accepts the following comma-separated list of
72 named flags, which adds extra behaviour to just set
73 <code>MESA_DEBUG=1</code>:
74 <dl>
75 <dt><code>silent</code></dt>
76 <dd>turn off debug messages. Only useful for debug builds.</dd>
77 <dt><code>flush</code></dt>
78 <dd>flush after each drawing command</dd>
79 <dt><code>incomplete_tex</code></dt>
80 <dd>extra debug messages when a texture is incomplete</dd>
81 <dt><code>incomplete_fbo</code></dt>
82 <dd>extra debug messages when a fbo is incomplete</dd>
83 <dt><code>context</code></dt>
84 <dd>create a debug context (see <code>GLX_CONTEXT_DEBUG_BIT_ARB</code>)
85 and print error and performance messages to stderr (or
86 <code>MESA_LOG_FILE</code>).</dd>
87 </dl>
88 </dd>
89 <dt><code>MESA_LOG_FILE</code></dt>
90 <dd>specifies a file name for logging all errors, warnings,
91 etc., rather than stderr</dd>
92 <dt><code>MESA_TEX_PROG</code></dt>
93 <dd>if set, implement conventional texture env modes with
94 fragment programs (intended for developers only)</dd>
95 <dt><code>MESA_TNL_PROG</code></dt>
96 <dd>if set, implement conventional vertex transformation operations with
97 vertex programs (intended for developers only). Setting this variable
98 automatically sets the <code>MESA_TEX_PROG</code> variable as well.</dd>
99 <dt><code>MESA_EXTENSION_OVERRIDE</code></dt>
100 <dd>can be used to enable/disable extensions. A value such as
101 <code>GL_EXT_foo -GL_EXT_bar</code> will enable the
102 <code>GL_EXT_foo</code> extension and disable the
103 <code>GL_EXT_bar</code> extension.</dd>
104 <dt><code>MESA_EXTENSION_MAX_YEAR</code></dt>
105 <dd>The <code>GL_EXTENSIONS</code> string returned by Mesa is sorted by
106 extension year. If this variable is set to year X, only extensions
107 defined on or before year X will be reported. This is to work-around a
108 bug in some games where the extension string is copied into a fixed-size
109 buffer without truncating. If the extension string is too long, the
110 buffer overrun can cause the game to crash. This is a work-around for
111 that.</dd>
112 <dt><code>MESA_GL_VERSION_OVERRIDE</code></dt>
113 <dd>changes the value returned by
114 <code>glGetString(GL_VERSION)</code> and possibly the GL API type.
115 <ul>
116 <li>The format should be <code>MAJOR.MINOR[FC|COMPAT]</code>
117 <li><code>FC</code> is an optional suffix that indicates a forward
118 compatible context. This is only valid for versions &gt;= 3.0.
119 <li><code>COMPAT</code> is an optional suffix that indicates a
120 compatibility context or <code>GL_ARB_compatibility</code> support.
121 This is only valid for versions &gt;= 3.1.
122 <li>GL versions &lt;= 3.0 are set to a compatibility (non-Core)
123 profile
124 <li>GL versions = 3.1, depending on the driver, it may or may not
125 have the <code>ARB_compatibility</code> extension enabled.
126 <li>GL versions &gt;= 3.2 are set to a Core profile
127 <li>Examples:
128 <dl>
129 <dt><code>2.1</code></dt>
130 <dd>select a compatibility (non-Core) profile with GL version 2.1.</dd>
131 <dt><code>3.0</code></dt>
132 <dd>select a compatibility (non-Core) profile with GL version 3.0.</dd>
133 <dt><code>3.0FC</code></dt>
134 <dd>select a Core+Forward Compatible profile with GL version 3.0.</dd>
135 <dt><code>3.1</code></dt>
136 <dd>select GL version 3.1 with <code>GL_ARB_compatibility</code>
137 enabled per the driver default.</dd>
138 <dt><code>3.1FC</code></dt>
139 <dd>select GL version 3.1 with forward compatibility and
140 <code>GL_ARB_compatibility</code> disabled.</dd>
141 <dt><code>3.1COMPAT</code></dt>
142 <dd>select GL version 3.1 with <code>GL_ARB_compatibility</code>
143 enabled.</dd>
144 <dt><code>X.Y</code></dt>
145 <dd>override GL version to X.Y without changing the profile.</dd>
146 <dt><code>X.YFC</code></dt>
147 <dd>select a Core+Forward Compatible profile with GL version X.Y.</dd>
148 <dt><code>X.YCOMPAT</code></dt>
149 <dd>select a Compatibility profile with GL version X.Y.</dd>
150 </dl>
151 <li>Mesa may not really implement all the features of the given
152 version. (for developers only)
153 </ul>
154 </dd>
155 <dt><code>MESA_GLES_VERSION_OVERRIDE</code></dt>
156 <dd>changes the value returned by <code>glGetString(GL_VERSION)</code>
157 for OpenGL ES.
158 <ul>
159 <li> The format should be <code>MAJOR.MINOR</code>
160 <li> Examples: <code>2.0</code>, <code>3.0</code>, <code>3.1</code>
161 <li> Mesa may not really implement all the features of the given version.
162 (for developers only)
163 </ul>
164 </dd>
165 <dt><code>MESA_GLSL_VERSION_OVERRIDE</code></dt>
166 <dd>changes the value returned by
167 <code>glGetString(GL_SHADING_LANGUAGE_VERSION)</code>.
168 Valid values are integers, such as <code>130</code>. Mesa will not
169 really implement all the features of the given language version if
170 it's higher than what's normally reported. (for developers only)
171 </dd>
172 <dt><code>MESA_GLSL_CACHE_DISABLE</code></dt>
173 <dd>if set to <code>true</code>, disables the GLSL shader cache</dd>
174 <dt><code>MESA_GLSL_CACHE_MAX_SIZE</code></dt>
175 <dd>if set, determines the maximum size of the on-disk cache of compiled GLSL
176 programs. Should be set to a number optionally followed by <code>K</code>,
177 <code>M</code>, or <code>G</code> to specify a size in kilobytes,
178 megabytes, or gigabytes. By default, gigabytes will be assumed. And if
179 unset, a maximum size of 1GB will be used. Note: A separate cache might
180 be created for each architecture that Mesa is installed for on your
181 system. For example under the default settings you may end up with a 1GB
182 cache for x86_64 and another 1GB cache for i386.</dd>
183 <dt><code>MESA_GLSL_CACHE_DIR</code></dt>
184 <dd>if set, determines the directory to be used for the on-disk cache of
185 compiled GLSL programs. If this variable is not set, then the cache will
186 be stored in <code>$XDG_CACHE_HOME/mesa_shader_cache</code> (if that
187 variable is set), or else within <code>.cache/mesa_shader_cache</code>
188 within the user's home directory.
189 </dd>
190 <dt><code>MESA_GLSL</code></dt>
191 <dd><a href="shading.html#envvars">shading language compiler options</a></dd>
192 <dt><code>MESA_NO_MINMAX_CACHE</code></dt>
193 <dd>when set, the minmax index cache is globally disabled.</dd>
194 <dt><code>MESA_SHADER_CAPTURE_PATH</code></dt>
195 <dd>see <a href="shading.html#capture">Capturing Shaders</a></dd>
196 <dt><code>MESA_SHADER_DUMP_PATH</code> and <code>MESA_SHADER_READ_PATH</code></dt>
197 <dd>see <a href="shading.html#replacement">Experimenting with Shader Replacements</a></dd>
198 <dt><code>MESA_VK_VERSION_OVERRIDE</code></dt>
199 <dd>changes the Vulkan physical device version
200 as returned in <code>VkPhysicalDeviceProperties::apiVersion</code>.
201 <ul>
202 <li>The format should be <code>MAJOR.MINOR[.PATCH]</code></li>
203 <li>This will not let you force a version higher than the driver's
204 instance version as advertised by
205 <code>vkEnumerateInstanceVersion</code></li>
206 <li>This can be very useful for debugging but some features may not be
207 implemented correctly. (For developers only)</li>
208 </ul>
209 </dd>
210 </dl>
211
212
213 <h2>NIR passes enviroment variables</h2>
214 <p>
215 The following are only applicable for drivers that uses NIR, as they
216 modify the behaviour for the common NIR_PASS and NIR_PASS_V macros,
217 that wrap calls to NIR lowering/optimizations.
218 </p>
219
220 <dl>
221 <dt><code>NIR_PRINT</code></dt>
222 <dd>If defined, the resulting NIR shader will be printed out at each succesful NIR lowering/optimization call.</dd>
223 <dt><code>NIR_TEST_CLONE</code></dt>
224 <dd>If defined, cloning a NIR shader would be tested at each succesful NIR lowering/optimization call.</dd>
225 <dt><code>NIR_TEST_SERIALIZE</code></dt>
226 <dd>If defined, serialize and deserialize a NIR shader would be tested at each succesful NIR lowering/optimization call.</dd>
227 </dl>
228
229
230 <h2>Mesa Xlib driver environment variables</h2>
231
232 <p>
233 The following are only applicable to the Mesa Xlib software driver.
234 See the <a href="xlibdriver.html">Xlib software driver page</a> for details.
235 </p>
236 <dl>
237 <dt><code>MESA_RGB_VISUAL</code></dt>
238 <dd>specifies the X visual and depth for RGB mode</dd>
239 <dt><code>MESA_CI_VISUAL</code></dt>
240 <dd>specifies the X visual and depth for CI mode</dd>
241 <dt><code>MESA_BACK_BUFFER</code></dt>
242 <dd>specifies how to implement the back color buffer, either
243 <code>pixmap</code> or <code>ximage</code></dd>
244 <dt><code>MESA_GAMMA</code></dt>
245 <dd>gamma correction coefficients for red, green, blue channels</dd>
246 <dt><code>MESA_XSYNC</code></dt>
247 <dd>enable synchronous X behavior (for debugging only)</dd>
248 <dt><code>MESA_GLX_FORCE_CI</code></dt>
249 <dd>if set, force GLX to treat 8bpp visuals as CI visuals</dd>
250 <dt><code>MESA_GLX_FORCE_ALPHA</code></dt>
251 <dd>if set, forces RGB windows to have an alpha channel.</dd>
252 <dt><code>MESA_GLX_DEPTH_BITS</code></dt>
253 <dd>specifies default number of bits for depth buffer.</dd>
254 <dt><code>MESA_GLX_ALPHA_BITS</code></dt>
255 <dd>specifies default number of bits for alpha channel.</dd>
256 </dl>
257
258
259 <h2>i945/i965 driver environment variables (non-Gallium)</h2>
260
261 <dl>
262 <dt><code>INTEL_NO_HW</code></dt>
263 <dd>if set to 1, prevents batches from being submitted to the hardware.
264 This is useful for debugging hangs, etc.</dd>
265 <dt><code>INTEL_DEBUG</code></dt>
266 <dd>a comma-separated list of named flags, which do various things:
267 <dl>
268 <dt><code>ann</code></dt>
269 <dd>annotate IR in assembly dumps</dd>
270 <dt><code>aub</code></dt>
271 <dd>dump batches into an AUB trace for use with simulation tools</dd>
272 <dt><code>bat</code></dt>
273 <dd>emit batch information</dd>
274 <dt><code>blit</code></dt>
275 <dd>emit messages about blit operations</dd>
276 <dt><code>blorp</code></dt>
277 <dd>emit messages about the blorp operations (blits &amp; clears)</dd>
278 <dt><code>buf</code></dt>
279 <dd>emit messages about buffer objects</dd>
280 <dt><code>clip</code></dt>
281 <dd>emit messages about the clip unit (for old gens, includes the CLIP program)</dd>
282 <dt><code>color</code></dt>
283 <dd>use color in output</dd>
284 <dt><code>cs</code></dt>
285 <dd>dump shader assembly for compute shaders</dd>
286 <dt><code>do32</code></dt>
287 <dd>generate compute shader SIMD32 programs even if workgroup size doesn't exceed the SIMD16 limit</dd>
288 <dt><code>dri</code></dt>
289 <dd>emit messages about the DRI interface</dd>
290 <dt><code>fbo</code></dt>
291 <dd>emit messages about framebuffers</dd>
292 <dt><code>fs</code></dt>
293 <dd>dump shader assembly for fragment shaders</dd>
294 <dt><code>gs</code></dt>
295 <dd>dump shader assembly for geometry shaders</dd>
296 <dt><code>hex</code></dt>
297 <dd>print instruction hex dump with the disassembly</dd>
298 <dt><code>l3</code></dt>
299 <dd>emit messages about the new L3 state during transitions</dd>
300 <dt><code>miptree</code></dt>
301 <dd>emit messages about miptrees</dd>
302 <dt><code>no8</code></dt>
303 <dd>don't generate SIMD8 fragment shader</dd>
304 <dt><code>no16</code></dt>
305 <dd>suppress generation of 16-wide fragment shaders. useful for debugging broken shaders</dd>
306 <dt><code>nocompact</code></dt>
307 <dd>disable instruction compaction</dd>
308 <dt><code>nodualobj</code></dt>
309 <dd>suppress generation of dual-object geometry shader code</dd>
310 <dt><code>norbc</code></dt>
311 <dd>disable single sampled render buffer compression</dd>
312 <dt><code>optimizer</code></dt>
313 <dd>dump shader assembly to files at each optimization pass and iteration that make progress</dd>
314 <dt><code>perf</code></dt>
315 <dd>emit messages about performance issues</dd>
316 <dt><code>perfmon</code></dt>
317 <dd>emit messages about <code>AMD_performance_monitor</code></dd>
318 <dt><code>pix</code></dt>
319 <dd>emit messages about pixel operations</dd>
320 <dt><code>prim</code></dt>
321 <dd>emit messages about drawing primitives</dd>
322 <dt><code>reemit</code></dt>
323 <dd>mark all state dirty on each draw call</dd>
324 <dt><code>sf</code></dt>
325 <dd>emit messages about the strips &amp; fans unit (for old gens, includes the SF program)</dd>
326 <dt><code>shader_time</code></dt>
327 <dd>record how much GPU time is spent in each shader</dd>
328 <dt><code>spill_fs</code></dt>
329 <dd>force spilling of all registers in the scalar backend (useful to debug spilling code)</dd>
330 <dt><code>spill_vec4</code></dt>
331 <dd>force spilling of all registers in the vec4 backend (useful to debug spilling code)</dd>
332 <dt><code>state</code></dt>
333 <dd>emit messages about state flag tracking</dd>
334 <dt><code>submit</code></dt>
335 <dd>emit batchbuffer usage statistics</dd>
336 <dt><code>sync</code></dt>
337 <dd>after sending each batch, emit a message and wait for that batch to finish rendering</dd>
338 <dt><code>tcs</code></dt>
339 <dd>dump shader assembly for tessellation control shaders</dd>
340 <dt><code>tes</code></dt>
341 <dd>dump shader assembly for tessellation evaluation shaders</dd>
342 <dt><code>tex</code></dt>
343 <dd>emit messages about textures.</dd>
344 <dt><code>urb</code></dt>
345 <dd>emit messages about URB setup</dd>
346 <dt><code>vert</code></dt>
347 <dd>emit messages about vertex assembly</dd>
348 <dt><code>vs</code></dt>
349 <dd>dump shader assembly for vertex shaders</dd>
350 </dl>
351 </dd>
352 <dt><code>INTEL_SCALAR_VS</code> (or <code>TCS</code>, <code>TES</code>,
353 <code>GS</code>)</dt>
354 <dd>force scalar/vec4 mode for a shader stage (Gen8-9 only)</dd>
355 <dt><code>INTEL_PRECISE_TRIG</code></dt>
356 <dd>if set to 1, true or yes, then the driver prefers accuracy over
357 performance in trig functions.</dd>
358 </dl>
359
360
361 <h2>Radeon driver environment variables (radeon, r200, and r300g)</h2>
362
363 <dl>
364 <dt><code>RADEON_NO_TCL</code></dt>
365 <dd>if set, disable hardware-accelerated Transform/Clip/Lighting.</dd>
366 </dl>
367
368
369 <h2>EGL environment variables</h2>
370
371 <p>
372 Mesa EGL supports different sets of environment variables. See the
373 <a href="egl.html">Mesa EGL</a> page for the details.
374 </p>
375
376
377 <h2>Gallium environment variables</h2>
378
379 <dl>
380 <dt><code>GALLIUM_HUD</code></dt>
381 <dd>draws various information on the screen, like framerate,
382 cpu load, driver statistics, performance counters, etc.
383 Set <code>GALLIUM_HUD=help</code> and run e.g.
384 <code>glxgears</code> for more info.</dd>
385 <dt><code>GALLIUM_HUD_PERIOD</code></dt>
386 <dd>sets the hud update rate in seconds (float). Use zero
387 to update every frame. The default period is 1/2 second.</dd>
388 <dt><code>GALLIUM_HUD_VISIBLE</code></dt>
389 <dd>control default visibility, defaults to true.</dd>
390 <dt><code>GALLIUM_HUD_TOGGLE_SIGNAL</code></dt>
391 <dd>toggle visibility via user specified signal.
392 Especially useful to toggle hud at specific points of application and
393 disable for unencumbered viewing the rest of the time. For example, set
394 <code>GALLIUM_HUD_VISIBLE</code> to <code>false</code> and
395 <code>GALLIUM_HUD_TOGGLE_SIGNAL</code> to <code>10</code>
396 (<code>SIGUSR1</code>).
397 Use <code>kill -10 &lt;pid&gt;</code> to toggle the hud as desired.</dd>
398 <dt><code>GALLIUM_HUD_DUMP_DIR</code></dt>
399 <dd>specifies a directory for writing the displayed hud values into files.</dd>
400 <dt><code>GALLIUM_DRIVER</code></dt>
401 <dd>useful in combination with <code>LIBGL_ALWAYS_SOFTWARE=true</code> for
402 choosing one of the software renderers <code>softpipe</code>,
403 <code>llvmpipe</code> or <code>swr</code>.</dd>
404 <dt><code>GALLIUM_LOG_FILE</code></dt>
405 <dd>specifies a file for logging all errors, warnings, etc.
406 rather than stderr.</dd>
407 <dt><code>GALLIUM_PRINT_OPTIONS</code></dt>
408 <dd>if non-zero, print all the Gallium environment variables which are
409 used, and their current values.</dd>
410 <dt><code>GALLIUM_DUMP_CPU</code></dt>
411 <dd>if non-zero, print information about the CPU on start-up</dd>
412 <dt><code>TGSI_PRINT_SANITY</code></dt>
413 <dd>if set, do extra sanity checking on TGSI shaders and
414 print any errors to stderr.</dd>
415 <dt><code>DRAW_FSE</code></dt>
416 <dd>???</dd>
417 <dt><code>DRAW_NO_FSE</code></dt>
418 <dd>???</dd>
419 <dt><code>DRAW_USE_LLVM</code></dt>
420 <dd>if set to zero, the draw module will not use LLVM to execute
421 shaders, vertex fetch, etc.</dd>
422 <dt><code>ST_DEBUG</code></dt>
423 <dd>controls debug output from the Mesa/Gallium state tracker.
424 Setting to <code>tgsi</code>, for example, will print all the TGSI
425 shaders. See <code>src/mesa/state_tracker/st_debug.c</code> for other
426 options.</dd>
427 </dl>
428
429 <h3>Clover state tracker environment variables</h3>
430
431 <dl>
432 <dt><code>CLOVER_EXTRA_BUILD_OPTIONS</code></dt>
433 <dd>allows specifying additional compiler and linker
434 options. Specified options are appended after the options set by the OpenCL
435 program in <code>clBuildProgram</code>.</dd>
436 <dt><code>CLOVER_EXTRA_COMPILE_OPTIONS</code></dt>
437 <dd>allows specifying additional compiler
438 options. Specified options are appended after the options set by the OpenCL
439 program in <code>clCompileProgram</code>.</dd>
440 <dt><code>CLOVER_EXTRA_LINK_OPTIONS</code></dt>
441 <dd>allows specifying additional linker
442 options. Specified options are appended after the options set by the OpenCL
443 program in <code>clLinkProgram</code>.</dd>
444 </dl>
445
446
447 <h3>Softpipe driver environment variables</h3>
448 <dl>
449 <dt><code>SOFTPIPE_DUMP_FS</code></dt>
450 <dd>if set, the softpipe driver will print fragment shaders to stderr</dd>
451 <dt><code>SOFTPIPE_DUMP_GS</code></dt>
452 <dd>if set, the softpipe driver will print geometry shaders to stderr</dd>
453 <dt><code>SOFTPIPE_NO_RAST</code></dt>
454 <dd>if set, rasterization is no-op'd. For profiling purposes.</dd>
455 <dt><code>SOFTPIPE_USE_LLVM</code></dt>
456 <dd>if set, the softpipe driver will try to use LLVM JIT for
457 vertex shading processing.</dd>
458 </dl>
459
460
461 <h3>LLVMpipe driver environment variables</h3>
462 <dl>
463 <dt><code>LP_NO_RAST</code></dt>
464 <dd>if set LLVMpipe will no-op rasterization</dd>
465 <dt><code>LP_DEBUG</code></dt>
466 <dd>a comma-separated list of debug options is accepted. See the
467 source code for details.</dd>
468 <dt><code>LP_PERF</code></dt>
469 <dd>a comma-separated list of options to selectively no-op various
470 parts of the driver. See the source code for details.</dd>
471 <dt><code>LP_NUM_THREADS</code></dt>
472 <dd>an integer indicating how many threads to use for rendering.
473 Zero turns off threading completely. The default value is the number of CPU
474 cores present.</dd>
475 </dl>
476
477 <h3>VMware SVGA driver environment variables</h3>
478 <dl>
479 <dt><code>SVGA_FORCE_SWTNL</code></dt>
480 <dd>force use of software vertex transformation</dd>
481 <dt><code>SVGA_NO_SWTNL</code></dt>
482 <dd>don't allow software vertex transformation fallbacks (will often result
483 in incorrect rendering).</dd>
484 <dt><code>SVGA_DEBUG</code></dt>
485 <dd>for dumping shaders, constant buffers, etc. See the code for
486 details.</dd>
487 <dt><code>SVGA_EXTRA_LOGGING</code></dt>
488 <dd>if set, enables extra logging to the <code>vmware.log</code> file,
489 such as the OpenGL program's name and command line arguments.</dd>
490 <dt><code>SVGA_NO_LOGGING</code></dt>
491 <dd>if set, disables logging to the <code>vmware.log</code> file. This is
492 useful when using Valgrind because it otherwise crashes when
493 initializing the host log feature.</dd>
494 </dl>
495 <p>See the driver code for other, lesser-used variables.</p>
496
497 <h3>WGL environment variables</h3>
498 <dl>
499 <dt><code>WGL_SWAP_INTERVAL</code></dt>
500 <dd>to set a swap interval, equivalent to calling
501 <code>wglSwapIntervalEXT()</code> in an application. If this
502 environment variable is set, application calls to
503 <code>wglSwapIntervalEXT()</code> will have no effect.</dd>
504 </dl>
505
506 <h3>VA-API state tracker environment variables</h3>
507 <dl>
508 <dt><code>VAAPI_MPEG4_ENABLED</code></dt>
509 <dd>enable MPEG4 for VA-API, disabled by default.</dd>
510 </dl>
511
512
513 <h3>VC4 driver environment variables</h3>
514 <dl>
515 <dt><code>VC4_DEBUG</code></dt>
516 <dd>a comma-separated list of named flags, which do various things:
517 <dl>
518 <dt><code>cl</code></dt>
519 <dd>dump command list during creation</dd>
520 <dt><code>qpu</code></dt>
521 <dd>dump generated QPU instructions</dd>
522 <dt><code>qir</code></dt>
523 <dd>dump QPU IR during program compile</dd>
524 <dt><code>nir</code></dt>
525 <dd>dump NIR during program compile</dd>
526 <dt><code>tgsi</code></dt>
527 <dd>dump TGSI during program compile</dd>
528 <dt><code>shaderdb</code></dt>
529 <dd>dump program compile information for shader-db analysis</dd>
530 <dt><code>perf</code></dt>
531 <dd>print during performance-related events</dd>
532 <dt><code>norast</code></dt>
533 <dd>skip actual hardware execution of commands</dd>
534 <dt><code>always_flush</code></dt>
535 <dd>flush after each draw call</dd>
536 <dt><code>always_sync</code></dt>
537 <dd>wait for finish after each flush</dd>
538 <dt><code>dump</code></dt>
539 <dd>write a GPU command stream trace file (VC4 simulator only)</dd>
540 </dl>
541 </dd>
542 </dl>
543
544
545 <p>
546 Other Gallium drivers have their own environment variables. These may change
547 frequently so the source code should be consulted for details.
548 </p>
549
550 </div>
551 </body>
552 </html>