| 1 |
Environment Variables |
| 2 |
===================== |
| 3 |
|
| 4 |
Normally, no environment variables need to be set. Most of the |
| 5 |
environment variables used by Mesa/Gallium are for debugging purposes, |
| 6 |
but they can sometimes be useful for debugging end-user issues. |
| 7 |
|
| 8 |
Android System Properties |
| 9 |
------------------------- |
| 10 |
|
| 11 |
Android (generally) uses system properties rather than environment variables to |
| 12 |
control Mesa/Gallium behavior, although there are some exceptions to this. See |
| 13 |
:ref:`Android System Properties <android-android-system-properties>` for |
| 14 |
details on naming and how to set and get system property values. |
| 15 |
|
| 16 |
LibGL environment variables |
| 17 |
--------------------------- |
| 18 |
|
| 19 |
.. envvar:: LIBGL_DEBUG |
| 20 |
|
| 21 |
If defined debug information will be printed to stderr. If set to |
| 22 |
``verbose`` additional information will be printed. |
| 23 |
|
| 24 |
.. envvar:: LIBGL_ALWAYS_INDIRECT |
| 25 |
|
| 26 |
if set to ``true``, forces an indirect rendering context/connection. |
| 27 |
|
| 28 |
.. envvar:: LIBGL_ALWAYS_SOFTWARE |
| 29 |
|
| 30 |
if set to ``true``, always use software rendering |
| 31 |
|
| 32 |
.. envvar:: LIBGL_NO_DRAWARRAYS |
| 33 |
|
| 34 |
if set to ``true``, do not use DrawArrays GLX protocol (for |
| 35 |
debugging) |
| 36 |
|
| 37 |
.. envvar:: LIBGL_KOPPER_DISABLE |
| 38 |
|
| 39 |
disable Vulkan swapchains with Zink if set to ``true``. |
| 40 |
In general, this should not be used unless you know what you are |
| 41 |
doing. Some examples of "knowing what you are doing" include: |
| 42 |
- using a VK driver which has no WSI implementation for your display server |
| 43 |
- profiling the DRI frontend against your VK driver's WSI implementation |
| 44 |
|
| 45 |
.. envvar:: LIBGL_KOPPER_DRI2 |
| 46 |
|
| 47 |
if set to ``true``, allow loading Zink even if X11 does not support |
| 48 |
explicit DRM format modifiers. In general, this should not be used |
| 49 |
unless you know what you are doing. Some examples of "knowing what you |
| 50 |
are doing" include: |
| 51 |
- running xrdp |
| 52 |
- using a VK driver which doesn't support modifiers |
| 53 |
|
| 54 |
Core Mesa environment variables |
| 55 |
------------------------------- |
| 56 |
|
| 57 |
.. envvar:: MESA_NO_ERROR |
| 58 |
|
| 59 |
if set to 1, error checking is disabled as per :ext:`GL_KHR_no_error`. |
| 60 |
This will result in undefined behavior for invalid use of the API, but |
| 61 |
can reduce CPU use for apps that are known to be error free. |
| 62 |
|
| 63 |
.. envvar:: MESA_DEBUG |
| 64 |
|
| 65 |
if set, error messages are printed to stderr. For example, if the |
| 66 |
application generates a ``GL_INVALID_ENUM`` error, a corresponding |
| 67 |
error message indicating where the error occurred, and possibly why, |
| 68 |
will be printed to stderr. For release builds, :envvar:`MESA_DEBUG` |
| 69 |
defaults to off (no debug output). :envvar:`MESA_DEBUG` accepts the |
| 70 |
following comma-separated list of named flags, which adds extra |
| 71 |
behavior to just set :envvar:`MESA_DEBUG` to ``1``: |
| 72 |
|
| 73 |
``silent`` |
| 74 |
turn off debug messages. Only useful for debug builds. |
| 75 |
``flush`` |
| 76 |
flush after each drawing command |
| 77 |
``incomplete_tex`` |
| 78 |
extra debug messages when a texture is incomplete |
| 79 |
``incomplete_fbo`` |
| 80 |
extra debug messages when a FBO is incomplete |
| 81 |
``context`` |
| 82 |
create a debug context (see ``GLX_CONTEXT_DEBUG_BIT_ARB``) and |
| 83 |
print error and performance messages to stderr (or |
| 84 |
``MESA_LOG_FILE``). |
| 85 |
|
| 86 |
.. envvar:: MESA_PROCESS_NAME |
| 87 |
|
| 88 |
if set, overrides the process name string used internally for various |
| 89 |
purposes (e.g. for driconf option matching, logging, artifact storage, |
| 90 |
etc.). |
| 91 |
|
| 92 |
.. envvar:: MESA_LOG_LEVEL |
| 93 |
|
| 94 |
specifies the maximum log level |
| 95 |
|
| 96 |
.. envvar:: MESA_LOG_FILE |
| 97 |
|
| 98 |
specifies a file name for logging all errors, warnings, etc., rather |
| 99 |
than stderr |
| 100 |
|
| 101 |
.. envvar:: MESA_LOG_FILE_AUTO |
| 102 |
|
| 103 |
if set, creates a file in /tmp folder with mesa_<process_name>_<pid>_XXXXXX.log |
| 104 |
logging all errors, warnings, etc., rather than stderr. The XXXXXX will be replaced |
| 105 |
with alpha numeric character so for each run of the app a new log file will be |
| 106 |
created guaranteed. |
| 107 |
|
| 108 |
.. envvar:: MESA_LOG_PREFIX |
| 109 |
|
| 110 |
specifies what to to include in the log prefix (linux only) - default is ``tag,level`` |
| 111 |
|
| 112 |
.. envvar:: MESA_EXTENSION_OVERRIDE |
| 113 |
|
| 114 |
can be used to enable/disable extensions. A value such as |
| 115 |
``GL_EXT_foo -GL_EXT_bar`` will enable the ``GL_EXT_foo`` extension |
| 116 |
and disable the ``GL_EXT_bar`` extension. Note that this will override |
| 117 |
extensions override configured using driconf. |
| 118 |
|
| 119 |
.. envvar:: MESA_EXTENSION_MAX_YEAR |
| 120 |
|
| 121 |
The ``GL_EXTENSIONS`` string returned by Mesa is sorted by extension |
| 122 |
year. If this variable is set to year X, only extensions defined on |
| 123 |
or before year X will be reported. This is to work-around a bug in |
| 124 |
some games where the extension string is copied into a fixed-size |
| 125 |
buffer without truncating. If the extension string is too long, the |
| 126 |
buffer overrun can cause the game to crash. This is a work-around for |
| 127 |
that. |
| 128 |
|
| 129 |
.. envvar:: MESA_GL_VERSION_OVERRIDE |
| 130 |
|
| 131 |
changes the value returned by ``glGetString(GL_VERSION)`` and |
| 132 |
possibly the GL API type. |
| 133 |
|
| 134 |
- The format should be ``MAJOR.MINOR[FC|COMPAT]`` |
| 135 |
- ``FC`` is an optional suffix that indicates a forward compatible |
| 136 |
context. This is only valid for versions >= 3.0. |
| 137 |
- ``COMPAT`` is an optional suffix that indicates a compatibility |
| 138 |
context or :ext:`GL_ARB_compatibility` support. This is only valid |
| 139 |
for versions >= 3.1. |
| 140 |
- GL versions <= 3.0 are set to a compatibility (non-Core) profile |
| 141 |
- GL versions = 3.1, depending on the driver, it may or may not have |
| 142 |
the :ext:`GL_ARB_compatibility` extension enabled. |
| 143 |
- GL versions >= 3.2 are set to a Core profile |
| 144 |
- Examples: |
| 145 |
|
| 146 |
``2.1`` |
| 147 |
select a compatibility (non-Core) profile with GL version 2.1. |
| 148 |
``3.0`` |
| 149 |
select a compatibility (non-Core) profile with GL version 3.0. |
| 150 |
``3.0FC`` |
| 151 |
select a Core+Forward Compatible profile with GL version 3.0. |
| 152 |
``3.1`` |
| 153 |
select GL version 3.1 with :ext:`GL_ARB_compatibility` enabled |
| 154 |
per the driver default. |
| 155 |
``3.1FC`` |
| 156 |
select GL version 3.1 with forward compatibility and |
| 157 |
:ext:`GL_ARB_compatibility` disabled. |
| 158 |
``3.1COMPAT`` |
| 159 |
select GL version 3.1 with :ext:`GL_ARB_compatibility` enabled. |
| 160 |
``X.Y`` |
| 161 |
override GL version to X.Y without changing the profile. |
| 162 |
``X.YFC`` |
| 163 |
select a Core+Forward Compatible profile with GL version X.Y. |
| 164 |
``X.YCOMPAT`` |
| 165 |
select a Compatibility profile with GL version X.Y. |
| 166 |
|
| 167 |
- Mesa may not really implement all the features of the given |
| 168 |
version. (for developers only) |
| 169 |
|
| 170 |
.. envvar:: MESA_GLES_VERSION_OVERRIDE |
| 171 |
|
| 172 |
changes the value returned by ``glGetString(GL_VERSION)`` for OpenGL |
| 173 |
ES. |
| 174 |
|
| 175 |
- The format should be ``MAJOR.MINOR`` |
| 176 |
- Examples: ``2.0``, ``3.0``, ``3.1`` |
| 177 |
- Mesa may not really implement all the features of the given |
| 178 |
version. (for developers only) |
| 179 |
|
| 180 |
.. envvar:: MESA_GLSL_VERSION_OVERRIDE |
| 181 |
|
| 182 |
changes the value returned by |
| 183 |
``glGetString(GL_SHADING_LANGUAGE_VERSION)``. Valid values are |
| 184 |
integers, such as ``130``. Mesa will not really implement all the |
| 185 |
features of the given language version if it's higher than what's |
| 186 |
normally reported. (for developers only) |
| 187 |
|
| 188 |
.. envvar:: MESA_DRICONF_EXECUTABLE_OVERRIDE |
| 189 |
|
| 190 |
if set, overrides the "executable" string used specifically for driconf |
| 191 |
option matching. This takes higher precedence over more general process |
| 192 |
name override (e.g. MESA_PROCESS_NAME). |
| 193 |
|
| 194 |
.. envvar:: MESA_SHADER_CACHE_DISABLE |
| 195 |
|
| 196 |
if set to ``true``, disables the on-disk shader cache. If set to |
| 197 |
``false``, enables the on-disk shader cache when it is disabled by |
| 198 |
default. Note that EGL_ANDROID_blob_cache is still enabled even |
| 199 |
if on-disk shader cache is disabled. |
| 200 |
|
| 201 |
.. envvar:: MESA_SHADER_CACHE_MAX_SIZE |
| 202 |
|
| 203 |
if set, determines the maximum size of the on-disk cache of compiled |
| 204 |
shader programs. Should be set to a number optionally followed by |
| 205 |
``K``, ``M``, or ``G`` to specify a size in kilobytes, megabytes, or |
| 206 |
gigabytes. By default, gigabytes will be assumed. And if unset, a |
| 207 |
maximum size of 1GB will be used. |
| 208 |
|
| 209 |
.. note:: |
| 210 |
|
| 211 |
A separate cache might be created for each architecture that Mesa is |
| 212 |
installed for on your system. For example under the default settings |
| 213 |
you may end up with a 1GB cache for x86_64 and another 1GB cache for |
| 214 |
i386. |
| 215 |
|
| 216 |
.. envvar:: MESA_SHADER_CACHE_DIR |
| 217 |
|
| 218 |
if set, determines the directory to be used for the on-disk cache of |
| 219 |
compiled shader programs. If set then the cache will be stored in |
| 220 |
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache``. If this variable is not |
| 221 |
set, then the cache will be stored in |
| 222 |
``$XDG_CACHE_HOME/mesa_shader_cache`` (if that variable is set), or else |
| 223 |
within ``.cache/mesa_shader_cache`` within the user's home directory. |
| 224 |
|
| 225 |
.. envvar:: MESA_SHADER_CACHE_SHOW_STATS |
| 226 |
|
| 227 |
if set to ``true``, keeps hit/miss statistics for the shader cache. |
| 228 |
These statistics are printed when the app terminates. |
| 229 |
|
| 230 |
.. envvar:: MESA_DISK_CACHE_SINGLE_FILE |
| 231 |
|
| 232 |
if set to 1, enables the single file Fossilize DB on-disk shader |
| 233 |
cache implementation instead of the default Mesa-DB cache |
| 234 |
implementation. This implementation allows for loading of precompiled |
| 235 |
cache DBs via :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS` or |
| 236 |
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST`. This |
| 237 |
implementation does not support cache size limits via |
| 238 |
:envvar:`MESA_SHADER_CACHE_MAX_SIZE`. If :envvar:`MESA_SHADER_CACHE_DIR` |
| 239 |
is set, the cache will be stored in |
| 240 |
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache_sf``, or else within |
| 241 |
``$XDG_CACHE_HOME/mesa_shader_cache_sf`` (if that variable is set) |
| 242 |
or else within ``.cache/mesa_shader_cache_sf`` within the user's home |
| 243 |
directory. |
| 244 |
|
| 245 |
.. envvar:: MESA_DISK_CACHE_MULTI_FILE |
| 246 |
|
| 247 |
if set to 1 (set by default), enables the multi file on-disk |
| 248 |
shader cache implementation. This implementation increases the overall |
| 249 |
disk usage. |
| 250 |
If :envvar:`MESA_SHADER_CACHE_DIR` is set, the cache will be stored in |
| 251 |
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache``, or else within |
| 252 |
``$XDG_CACHE_HOME/mesa_shader_cache`` (if that variable is set) |
| 253 |
or else within ``.cache/mesa_shader_cache`` within the user's home |
| 254 |
directory. |
| 255 |
|
| 256 |
.. envvar:: MESA_DISK_CACHE_READ_ONLY_FOZ_DBS |
| 257 |
|
| 258 |
if set with :envvar:`MESA_DISK_CACHE_SINGLE_FILE` enabled, references |
| 259 |
a string of comma separated file paths to read only Fossilize DB |
| 260 |
shader caches for loading at initialization. The file paths are |
| 261 |
relative to the cache directory and do not include suffixes, |
| 262 |
referencing both the cache DB and its index file. E.g. |
| 263 |
``MESA_DISK_CACHE_SINGLE_FILE=filename1`` refers to ``filename1.foz`` |
| 264 |
and ``filename1_idx.foz``. A limit of 8 DBs can be loaded and this limit |
| 265 |
is shared with :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST`. |
| 266 |
|
| 267 |
.. envvar:: MESA_DISK_CACHE_DATABASE |
| 268 |
|
| 269 |
if set to 1, enables the Mesa-DB single file on-disk shader cache |
| 270 |
implementation instead of the default multi-file cache implementation. |
| 271 |
Like :envvar:`MESA_DISK_CACHE_SINGLE_FILE`, Mesa-DB reduces overall |
| 272 |
disk usage but Mesa-DB supports cache size limits via |
| 273 |
:envvar:`MESA_SHADER_CACHE_MAX_SIZE`. If |
| 274 |
:envvar:`MESA_SHADER_CACHE_DIR` is not set, the cache will be stored |
| 275 |
in ``$XDG_CACHE_HOME/mesa_shader_cache_db`` (if that variable is set) |
| 276 |
or else within ``.cache/mesa_shader_cache_db`` within the user's home |
| 277 |
directory. |
| 278 |
|
| 279 |
.. envvar:: MESA_DISK_CACHE_DATABASE_NUM_PARTS |
| 280 |
|
| 281 |
specifies number of mesa-db cache parts, default is 50. |
| 282 |
|
| 283 |
.. envvar:: MESA_DISK_CACHE_DATABASE_EVICTION_SCORE_2X_PERIOD |
| 284 |
|
| 285 |
Mesa-DB cache eviction algorithm calculates weighted score for the |
| 286 |
cache items. The weight is doubled based on the last access time of |
| 287 |
cache entry. By default period of weight doubling is set to one month. |
| 288 |
Period value is given in seconds. |
| 289 |
|
| 290 |
.. envvar:: MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST |
| 291 |
|
| 292 |
if set with :envvar:`MESA_DISK_CACHE_SINGLE_FILE` enabled, references |
| 293 |
a text file that contains a new-line separated list of read only |
| 294 |
Fossilize DB shader caches to load. The list file is modifiable at |
| 295 |
runtime to allow for loading read only caches after initialization |
| 296 |
unlike :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`. This variable |
| 297 |
takes an absolute path to the list file. The list file must exist at |
| 298 |
initialization for updating to occur. Cache files in the list take |
| 299 |
relative paths to the current cache directory like |
| 300 |
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`. A limit of 8 DBs can be |
| 301 |
loaded and this limit is shared with |
| 302 |
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`. |
| 303 |
|
| 304 |
.. envvar:: MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ |
| 305 |
|
| 306 |
if set to 1, enables simultaneous use of :abbr:`RW (read-write)` and |
| 307 |
:abbr:`RW (read-write)` Fossilize DB caches. At first, data will be |
| 308 |
retrieved from the RO Fossilize cache. If data isn't found in the RO |
| 309 |
cache, then it will be retrieved from the RW cache. |
| 310 |
|
| 311 |
.. envvar:: MESA_GLSL |
| 312 |
|
| 313 |
:ref:`shading language compiler options <envvars>` |
| 314 |
|
| 315 |
.. envvar:: MESA_NO_MINMAX_CACHE |
| 316 |
|
| 317 |
when set, the minmax index cache is globally disabled. |
| 318 |
|
| 319 |
.. envvar:: MESA_SHADER_CAPTURE_PATH |
| 320 |
|
| 321 |
see :ref:`Capturing Shaders <capture>` |
| 322 |
|
| 323 |
.. envvar:: MESA_SHADER_DUMP_PATH |
| 324 |
|
| 325 |
see :ref:`Experimenting with Shader Replacements <replacement>` |
| 326 |
|
| 327 |
.. envvar:: MESA_SHADER_READ_PATH |
| 328 |
|
| 329 |
see :ref:`Experimenting with Shader Replacements <replacement>` |
| 330 |
|
| 331 |
.. envvar:: MESA_SPIRV_DUMP_PATH |
| 332 |
|
| 333 |
see :ref:`SPIR-V Shader Capture <spirv_capture>` |
| 334 |
|
| 335 |
.. envvar:: MESA_SPIRV_READ_PATH |
| 336 |
|
| 337 |
see :ref:`SPIR-V Shader Replacement <spirv_replacement>` |
| 338 |
|
| 339 |
.. envvar:: MESA_VK_VERSION_OVERRIDE |
| 340 |
|
| 341 |
changes the Vulkan physical device version as returned in |
| 342 |
``VkPhysicalDeviceProperties::apiVersion``. |
| 343 |
|
| 344 |
- The format should be ``MAJOR.MINOR[.PATCH]`` |
| 345 |
- This will not let you force a version higher than the driver's |
| 346 |
instance version as advertised by ``vkEnumerateInstanceVersion`` |
| 347 |
- This can be very useful for debugging but some features may not be |
| 348 |
implemented correctly. (For developers only) |
| 349 |
|
| 350 |
.. envvar:: MESA_VK_WSI_PRESENT_MODE |
| 351 |
|
| 352 |
overrides the WSI present mode clients specify in |
| 353 |
``VkSwapchainCreateInfoKHR::presentMode``. Values can be ``fifo``, |
| 354 |
``relaxed``, ``mailbox`` or ``immediate``. |
| 355 |
|
| 356 |
.. envvar:: MESA_VK_WSI_HEADLESS_SWAPCHAIN |
| 357 |
|
| 358 |
Forces all swapchains to be headless (no rendering will be display |
| 359 |
in the swapchain's window). |
| 360 |
|
| 361 |
.. envvar:: MESA_VK_ABORT_ON_DEVICE_LOSS |
| 362 |
|
| 363 |
causes the Vulkan driver to call abort() immediately after detecting a |
| 364 |
lost device. This is extremely useful when testing as it prevents the |
| 365 |
test suite from continuing on with a lost device. |
| 366 |
|
| 367 |
.. envvar:: MESA_VK_VALIDATE_SHADER_BINARIES |
| 368 |
|
| 369 |
enables extra validation of shader and pipeline binaries to ensure |
| 370 |
consistency of driver binaries. |
| 371 |
|
| 372 |
.. envvar:: MESA_VK_ENABLE_SUBMIT_THREAD |
| 373 |
|
| 374 |
for Vulkan drivers which support real timeline semaphores, this forces |
| 375 |
them to use a submit thread from the beginning, regardless of whether or |
| 376 |
not they ever see a wait-before-signal condition. |
| 377 |
|
| 378 |
.. envvar:: MESA_VK_DEVICE_SELECT_DEBUG |
| 379 |
|
| 380 |
print debug info about device selection decision-making |
| 381 |
|
| 382 |
.. envvar:: MESA_VK_TRACE |
| 383 |
|
| 384 |
A comma-separated list of trace types used for offline analysis. The |
| 385 |
option names are equal to the file extension. Traces are dumped into ``/tmp``. |
| 386 |
Captures can be triggered by pressing ``F1`` with the application window |
| 387 |
focused (Currently X11 only) or via :envvar:`MESA_VK_TRACE_FRAME` and |
| 388 |
:envvar:`MESA_VK_TRACE_TRIGGER`. |
| 389 |
|
| 390 |
.. list-table:: |
| 391 |
:header-rows: 1 |
| 392 |
|
| 393 |
* - File extension |
| 394 |
- Offline analysis tool |
| 395 |
- Supported drivers |
| 396 |
* - ``rmv`` |
| 397 |
- Radeon Memory Visualizer |
| 398 |
- ``RADV`` |
| 399 |
* - ``rgp`` |
| 400 |
- Radeon GPU Profiler |
| 401 |
- ``RADV`` |
| 402 |
* - ``rra`` |
| 403 |
- Radeon Raytracing Analyzer |
| 404 |
- ``RADV`` |
| 405 |
* - ``ctxroll`` |
| 406 |
- Context rolls |
| 407 |
- ``RADV`` |
| 408 |
|
| 409 |
- Creating RMV captures requires the ``scripts/setup.sh`` script in the |
| 410 |
Radeon Developer Tools folder to be run beforehand |
| 411 |
|
| 412 |
.. envvar:: MESA_VK_TRACE_PER_SUBMIT |
| 413 |
|
| 414 |
Enables per-submit capture for compute-only workload. Disabled by default |
| 415 |
and only valid with MESA_VK_TRACE=rgp. |
| 416 |
|
| 417 |
.. envvar:: MESA_VK_TRACE_FRAME |
| 418 |
|
| 419 |
Specifies a frame index at which a trace capture is automatically triggered. |
| 420 |
Ignored when MESA_VK_TRACE_PER_SUBMIT is enabled. |
| 421 |
|
| 422 |
.. envvar:: MESA_VK_TRACE_TRIGGER |
| 423 |
|
| 424 |
Specifies a trigger file. Creating the file triggers the capture. (e.g. |
| 425 |
``export MESA_VK_TRACE_TRIGGER=/tmp/trigger`` and then ``touch /tmp/trigger``) |
| 426 |
Ignored when MESA_VK_TRACE_PER_SUBMIT is enabled. |
| 427 |
|
| 428 |
.. envvar:: MESA_LOADER_DRIVER_OVERRIDE |
| 429 |
|
| 430 |
chooses a different driver binary such as ``etnaviv`` or ``zink``. |
| 431 |
|
| 432 |
.. envvar:: DRI_PRIME_DEBUG |
| 433 |
|
| 434 |
print debug info about device selection decision-making |
| 435 |
|
| 436 |
.. envvar:: DRI_PRIME |
| 437 |
|
| 438 |
the default GPU is the one used by Wayland/Xorg or the one connected to a |
| 439 |
display. This variable allows to select a different GPU. It applies to OpenGL |
| 440 |
and Vulkan (in this case "select" means the GPU will be first in the reported |
| 441 |
physical devices list). The supported syntaxes are: |
| 442 |
|
| 443 |
- ``DRI_PRIME=N``: selects the Nth non-default GPU (N > 0). |
| 444 |
- ``DRI_PRIME=pci-0000_02_00_0``: selects the GPU connected to this PCIe bus |
| 445 |
- ``DRI_PRIME=vendor_id:device_id``: selects the first GPU matching these ids. |
| 446 |
|
| 447 |
For Vulkan it's possible to append ``!``, in which case only the selected GPU |
| 448 |
will be exposed to the application (e.g.: DRI_PRIME=1!). |
| 449 |
|
| 450 |
.. note:: |
| 451 |
|
| 452 |
``lspci -nn | grep VGA`` can be used to know the PCIe bus or ids to use. |
| 453 |
|
| 454 |
.. envvar:: DRIRC_CONFIGDIR |
| 455 |
|
| 456 |
If set, overrides the global search-directories used when searching for |
| 457 |
drirc config files. The user-local one will still be used. Mostly useful for |
| 458 |
internal debugging. |
| 459 |
|
| 460 |
NIR passes environment variables |
| 461 |
-------------------------------- |
| 462 |
|
| 463 |
The following are only applicable for drivers that uses NIR, as they |
| 464 |
modify the behavior for the common ``NIR_PASS`` and ``NIR_PASS_V`` macros, |
| 465 |
that wrap calls to NIR lowering/optimizations. |
| 466 |
|
| 467 |
.. envvar:: NIR_DEBUG |
| 468 |
|
| 469 |
a comma-separated list of debug options to apply to NIR |
| 470 |
shaders. Use ``NIR_DEBUG=help`` to print a list of available options. |
| 471 |
|
| 472 |
.. envvar:: NIR_SKIP |
| 473 |
|
| 474 |
a comma-separated list of optimization/lowering passes to skip. |
| 475 |
|
| 476 |
Mesa Xlib driver environment variables |
| 477 |
-------------------------------------- |
| 478 |
|
| 479 |
The following are only applicable to the Mesa Xlib software driver. See |
| 480 |
the :doc:`Xlib software driver page <xlibdriver>` for details. |
| 481 |
|
| 482 |
.. envvar:: MESA_RGB_VISUAL |
| 483 |
|
| 484 |
specifies the X visual and depth for RGB mode |
| 485 |
|
| 486 |
.. envvar:: MESA_BACK_BUFFER |
| 487 |
|
| 488 |
specifies how to implement the back color buffer, either ``pixmap`` |
| 489 |
or ``ximage`` |
| 490 |
|
| 491 |
.. envvar:: MESA_XSYNC |
| 492 |
|
| 493 |
enable synchronous X behavior (for debugging only) |
| 494 |
|
| 495 |
.. envvar:: MESA_GLX_FORCE_ALPHA |
| 496 |
|
| 497 |
if set, forces RGB windows to have an alpha channel. |
| 498 |
|
| 499 |
.. envvar:: MESA_GLX_DEPTH_BITS |
| 500 |
|
| 501 |
specifies default number of bits for depth buffer. |
| 502 |
|
| 503 |
.. envvar:: MESA_GLX_ALPHA_BITS |
| 504 |
|
| 505 |
specifies default number of bits for alpha channel. |
| 506 |
|
| 507 |
Mesa WGL driver environment variables |
| 508 |
------------------------------------- |
| 509 |
|
| 510 |
The following are only applicable to the Mesa WGL driver, which is in use |
| 511 |
on Windows. |
| 512 |
|
| 513 |
.. envvar:: WGL_FORCE_MSAA |
| 514 |
|
| 515 |
if set to a positive value, specifies the number of MSAA samples to |
| 516 |
force when choosing the display configuration. |
| 517 |
|
| 518 |
.. envvar:: WGL_DISABLE_ERROR_DIALOGS |
| 519 |
|
| 520 |
if set to 1, true or yes, disables Win32 error dialogs. Useful for |
| 521 |
automated test-runs. |
| 522 |
|
| 523 |
.. envvar:: WGL_SWAP_INTERVAL |
| 524 |
|
| 525 |
to set a swap interval, equivalent to calling |
| 526 |
``wglSwapIntervalEXT()`` in an application. If this environment |
| 527 |
variable is set, application calls to ``wglSwapIntervalEXT()`` will |
| 528 |
have no effect. |
| 529 |
|
| 530 |
Intel driver environment variables |
| 531 |
---------------------------------------------------- |
| 532 |
|
| 533 |
.. envvar:: INTEL_BLACKHOLE_DEFAULT |
| 534 |
|
| 535 |
if set to 1, true or yes, then the OpenGL implementation will |
| 536 |
default ``GL_BLACKHOLE_RENDER_INTEL`` to true, thus disabling any |
| 537 |
rendering. |
| 538 |
|
| 539 |
.. envvar:: INTEL_DEBUG |
| 540 |
|
| 541 |
a comma-separated list of named flags, which do various things: |
| 542 |
|
| 543 |
``ann`` |
| 544 |
annotate IR in assembly dumps |
| 545 |
``bat`` |
| 546 |
emit batch information. Can control in which frames batches |
| 547 |
get dumped using ``INTEL_DEBUG_BATCH_FRAME_*``, where |
| 548 |
``INTEL_DEBUG_BATCH_FRAME_START`` <= frame < ``INTEL_DEBUG_BATCH_FRAME_STOP`` |
| 549 |
``blit`` |
| 550 |
emit messages about blit operations |
| 551 |
``blorp`` |
| 552 |
emit messages about the blorp operations (blits & clears) |
| 553 |
``buf`` |
| 554 |
emit messages about buffer objects |
| 555 |
``bt`` |
| 556 |
emit messages binding tables |
| 557 |
``capture-all`` |
| 558 |
flag all buffers to be captured by the kernel driver when |
| 559 |
generating an error stage after a GPU hang |
| 560 |
``clip`` |
| 561 |
emit messages about the clip unit (for old gens, includes the CLIP |
| 562 |
program) |
| 563 |
``color`` |
| 564 |
use color in output |
| 565 |
``cs`` |
| 566 |
dump shader assembly for compute shaders |
| 567 |
``dispatch_bkp`` |
| 568 |
Add semaphore wait before/after dispatch call count. |
| 569 |
``INTEL_DEBUG_BKP_BEFORE_DISPATCH_COUNT`` or |
| 570 |
``INTEL_DEBUG_BKP_AFTER_DISPATCH_COUNT`` can control dispatch call number. |
| 571 |
``do32`` |
| 572 |
generate compute shader SIMD32 programs even if workgroup size |
| 573 |
doesn't exceed the SIMD16 limit |
| 574 |
``draw_bkp`` |
| 575 |
Add semaphore wait before/after draw call count. |
| 576 |
``INTEL_DEBUG_BKP_BEFORE_DRAW_COUNT`` or |
| 577 |
``INTEL_DEBUG_BKP_AFTER_DRAW_COUNT`` can control draw call number. |
| 578 |
To make test wait forever, we need to set preempt_timeout_ms and |
| 579 |
i915.enable_hangcheck to zero. |
| 580 |
``fall`` |
| 581 |
emit messages about performance issues (same as ``perf``) |
| 582 |
``fs`` |
| 583 |
dump shader assembly for fragment shaders |
| 584 |
``gs`` |
| 585 |
dump shader assembly for geometry shaders |
| 586 |
``heaps`` |
| 587 |
print information about the driver's heaps (ANV only) |
| 588 |
``hex`` |
| 589 |
print instruction hex dump with the disassembly |
| 590 |
``l3`` |
| 591 |
emit messages about the new L3 state during transitions |
| 592 |
``mda`` |
| 593 |
generate mda.tar files containing shader at each optimization |
| 594 |
pass and iteration that make progress (Gfx >= 9) |
| 595 |
``mesh`` |
| 596 |
dump shader assembly for mesh shaders |
| 597 |
``no8`` |
| 598 |
don't generate SIMD8 fragment shader |
| 599 |
``no16`` |
| 600 |
suppress generation of 16-wide fragment shaders. useful for |
| 601 |
debugging broken shaders |
| 602 |
``no32`` |
| 603 |
suppress generation of 32-wide fragment shaders. useful for |
| 604 |
debugging broken shaders |
| 605 |
``no-oaconfig`` |
| 606 |
disable HW performance metric configuration, and anything |
| 607 |
related to i915-perf (useful when running on simulation) |
| 608 |
``nocompact`` |
| 609 |
disable instruction compaction |
| 610 |
``nodualobj`` |
| 611 |
suppress generation of dual-object geometry shader code |
| 612 |
``nofc`` |
| 613 |
disable fast clears |
| 614 |
``noccs`` |
| 615 |
disable lossless color compression |
| 616 |
``no-resource-barrier`` |
| 617 |
disable RENDER_BARRIER instruction usage by falling back to |
| 618 |
PIPE_CONTROL |
| 619 |
``optimizer`` |
| 620 |
dump shader assembly to files at each optimization pass and |
| 621 |
iteration that make progress (Gfx < 9) |
| 622 |
``pc`` |
| 623 |
emit messages about PIPE_CONTROL instruction usage |
| 624 |
``perf`` |
| 625 |
emit messages about performance issues |
| 626 |
``perfmon`` |
| 627 |
emit messages about :ext:`GL_AMD_performance_monitor` |
| 628 |
``perf-symbol-names`` |
| 629 |
use performance counter symbols instead of the counter name |
| 630 |
(counter symbols are like variable names, it's sometimes easier |
| 631 |
to work with when you have lots of metrics to collect) |
| 632 |
``reemit`` |
| 633 |
mark all state dirty on each draw call |
| 634 |
``rt`` |
| 635 |
dump shader assembly for ray tracing shaders |
| 636 |
``rt_notrace`` |
| 637 |
skip trace rays operation (does not disable AS generation; see bvh_no_build) |
| 638 |
``sf`` |
| 639 |
emit messages about the strips & fans unit (for old gens, includes |
| 640 |
the SF program) |
| 641 |
``shader-print`` |
| 642 |
allow developer print traces added by `brw_nir_printf` to be |
| 643 |
printed out on the console |
| 644 |
``soft64`` |
| 645 |
enable implementation of software 64bit floating point support |
| 646 |
``sparse`` |
| 647 |
dump usage of sparse resources |
| 648 |
``spill_fs`` |
| 649 |
force spilling of all registers in the scalar backend (useful to |
| 650 |
debug spilling code) |
| 651 |
``spill_vec4`` |
| 652 |
force spilling of all registers in the vec4 backend (useful to |
| 653 |
debug spilling code) |
| 654 |
``stall`` |
| 655 |
inserts a stall on the GPU after each draw/dispatch command to |
| 656 |
wait for it to finish before starting any new work. |
| 657 |
``submit`` |
| 658 |
emit batchbuffer usage statistics |
| 659 |
``sync`` |
| 660 |
after sending each batch, wait on the CPU for that batch to |
| 661 |
finish rendering |
| 662 |
``swsb-stall`` |
| 663 |
Insert sync NOP after each instruction. This is only valid for Gfx12+. |
| 664 |
``task`` |
| 665 |
dump shader assembly for task shaders |
| 666 |
``tcs`` |
| 667 |
dump shader assembly for tessellation control shaders |
| 668 |
``tcs8`` |
| 669 |
force usage of 8-patches tessellation control shaders (only |
| 670 |
for gfx 9-11) |
| 671 |
``tes`` |
| 672 |
dump shader assembly for tessellation evaluation shaders |
| 673 |
``tex`` |
| 674 |
emit messages about textures. |
| 675 |
``urb`` |
| 676 |
emit messages about URB setup |
| 677 |
``vs`` |
| 678 |
dump shader assembly for vertex shaders |
| 679 |
``wm`` |
| 680 |
dump shader assembly for fragment shaders (same as ``fs``) |
| 681 |
``cl-quiet`` |
| 682 |
quiets the OpenCL warnings recommending use of Intel compute-runtime |
| 683 |
|
| 684 |
.. envvar:: INTEL_DECODE |
| 685 |
|
| 686 |
a comma-separated list of enable/disable flags configuring the |
| 687 |
output produced by ``INTEL_DEBUG=bat`` (use with |
| 688 |
``INTEL_DECODE=+color,-floats``) : |
| 689 |
|
| 690 |
``color`` |
| 691 |
print colored output |
| 692 |
|
| 693 |
``floats`` |
| 694 |
try to decode floating point data in buffers |
| 695 |
|
| 696 |
``full`` |
| 697 |
print additional custom information for instructions (usually |
| 698 |
pulling more information by inspecting memory) |
| 699 |
|
| 700 |
``offsets`` |
| 701 |
print offsets of instructions |
| 702 |
|
| 703 |
.. envvar:: INTEL_EXTENDED_METRICS |
| 704 |
|
| 705 |
By default, only a standard set of GPU metrics are advertised. This |
| 706 |
reduces time to collect metrics and hides infrequently used metrics. |
| 707 |
To enable all metrics, set value to 1. |
| 708 |
|
| 709 |
.. envvar:: INTEL_FORCE_PROBE |
| 710 |
|
| 711 |
A comma-separated list of device probe override values. The basic |
| 712 |
format is ``<pci-id>[,<pci-id>,...]``. The wildcard value of ``*`` |
| 713 |
will specify all known PCI IDs. If ``!`` precedes a PCI ID, or the |
| 714 |
wildcard value, then the device support will be disabled. All |
| 715 |
numbers are interpreted in base 16, and a ``0x`` prefix is |
| 716 |
optional. Values specified later take precedence, so the wildcard |
| 717 |
probably should only be used at the beginning. |
| 718 |
|
| 719 |
Some examples : |
| 720 |
|
| 721 |
``1234,!abcd`` |
| 722 |
Device 0x1234 would be forced on and 0xabcd would be disabled. |
| 723 |
|
| 724 |
``1234,!*`` |
| 725 |
All devices are disabled since the wildcard appears later. |
| 726 |
|
| 727 |
``!*,0x1234`` |
| 728 |
All devices disabled except 0x1234 which is forced on. |
| 729 |
|
| 730 |
``*,!0x1234`` |
| 731 |
All devices are forced on, except 0x1234 which is disabled. |
| 732 |
|
| 733 |
``!0x1234,1234`` |
| 734 |
Support for device 0x1234 is forced on since the enable appears |
| 735 |
later. |
| 736 |
|
| 737 |
.. note:: |
| 738 |
If a device requires using :envvar:`INTEL_FORCE_PROBE` to force |
| 739 |
it to load, then Mesa does not have full support for the device. |
| 740 |
It may have limited, or possibly no functionality within Mesa at |
| 741 |
this point. It is recommended to upgrade to a Mesa which does |
| 742 |
not require :envvar:`INTEL_FORCE_PROBE` for the device as soon |
| 743 |
as it is available. |
| 744 |
|
| 745 |
.. envvar:: INTEL_MEASURE |
| 746 |
|
| 747 |
Collects GPU timestamps over common intervals, and generates a CSV report |
| 748 |
to show how long rendering took. The overhead of collection is limited to |
| 749 |
the flushing that is required at the interval boundaries for accurate |
| 750 |
timestamps. By default, timing data is sent to ``stderr``. To direct output |
| 751 |
to a file: |
| 752 |
|
| 753 |
``INTEL_MEASURE=file=/tmp/measure.csv {workload}`` |
| 754 |
|
| 755 |
To begin capturing timestamps at a particular frame: |
| 756 |
|
| 757 |
``INTEL_MEASURE=file=/tmp/measure.csv,start=15 {workload}`` |
| 758 |
|
| 759 |
To capture only 23 frames: |
| 760 |
|
| 761 |
``INTEL_MEASURE=count=23 {workload}`` |
| 762 |
|
| 763 |
To capture frames 15-37, stopping before frame 38: |
| 764 |
|
| 765 |
``INTEL_MEASURE=start=15,count=23 {workload}`` |
| 766 |
|
| 767 |
Designate an asynchronous control file with: |
| 768 |
|
| 769 |
``INTEL_MEASURE=control=path/to/control.fifo {workload}`` |
| 770 |
|
| 771 |
As the workload runs, enable capture for 5 frames with: |
| 772 |
|
| 773 |
``$ echo 5 > path/to/control.fifo`` |
| 774 |
|
| 775 |
Enable unbounded capture: |
| 776 |
|
| 777 |
``$ echo -1 > path/to/control.fifo`` |
| 778 |
|
| 779 |
and disable with: |
| 780 |
|
| 781 |
``$ echo 0 > path/to/control.fifo`` |
| 782 |
|
| 783 |
Select the boundaries of each snapshot with: |
| 784 |
|
| 785 |
``INTEL_MEASURE=draw`` |
| 786 |
Collects timings for every render (DEFAULT) |
| 787 |
|
| 788 |
``INTEL_MEASURE=rt`` |
| 789 |
Collects timings when the render target changes |
| 790 |
|
| 791 |
``INTEL_MEASURE=batch`` |
| 792 |
Collects timings when batches are submitted |
| 793 |
|
| 794 |
``INTEL_MEASURE=frame`` |
| 795 |
Collects timings at frame boundaries |
| 796 |
|
| 797 |
With ``INTEL_MEASURE=interval=5``, the duration of 5 events will be |
| 798 |
combined into a single record in the output. When possible, a single |
| 799 |
start and end event will be submitted to the GPU to minimize |
| 800 |
stalling. Combined events will not span batches, except in |
| 801 |
the case of ``INTEL_MEASURE=frame``. |
| 802 |
|
| 803 |
Collect CPU timestamps instead of GPU timestamps. Prints results |
| 804 |
immediately instead of waiting for GPU execution. Useful when used |
| 805 |
with interactive debug to know which frame, or where in frame, you |
| 806 |
are currently in. |
| 807 |
|
| 808 |
``INTEL_MEASURE=cpu {workload}`` |
| 809 |
|
| 810 |
.. envvar:: INTEL_MODIFIER_OVERRIDE |
| 811 |
|
| 812 |
if set, determines the single DRM modifier reported back to (Vulkan) |
| 813 |
applications, in order to make selecting modifier deterministic |
| 814 |
between Vulkan driver and applications. The value can be one of the |
| 815 |
supported modifiers on a platform, but other values are also acceptable |
| 816 |
for debug purposes. |
| 817 |
|
| 818 |
.. envvar:: INTEL_NO_HW |
| 819 |
|
| 820 |
if set to 1, true or yes, prevents batches from being submitted to the |
| 821 |
hardware. This is useful for debugging hangs, etc. |
| 822 |
|
| 823 |
.. envvar:: INTEL_PRECISE_TRIG |
| 824 |
|
| 825 |
if set to 1, true or yes, then the driver prefers accuracy over |
| 826 |
performance in trig functions. |
| 827 |
|
| 828 |
.. envvar:: INTEL_SHADER_OPTIMIZER_PATH |
| 829 |
|
| 830 |
if set, determines the directory to be used for overriding shader |
| 831 |
assembly. The binaries with custom assembly should be placed in |
| 832 |
this folder and have a name formatted as ``sha1_of_assembly.bin``. |
| 833 |
The SHA-1 of a shader assembly is printed when assembly is dumped via |
| 834 |
corresponding :envvar:`INTEL_DEBUG` flag (e.g. ``vs`` for vertex shader). |
| 835 |
A binary could be generated from a dumped assembly by ``brw_asm`` or ``elk_asm``. |
| 836 |
For :envvar:`INTEL_SHADER_ASM_READ_PATH` to work it is necessary to enable |
| 837 |
dumping of corresponding shader stages via :envvar:`INTEL_DEBUG`. |
| 838 |
It is advised to use ``nocompact`` flag of :envvar:`INTEL_DEBUG` when |
| 839 |
dumping and overriding shader assemblies. |
| 840 |
The success of assembly override would be signified by "Successfully |
| 841 |
overrode shader with sha1 <SHA-1>" in stderr replacing the original |
| 842 |
assembly. |
| 843 |
|
| 844 |
.. envvar:: INTEL_SHADER_ASM_READ_PATH |
| 845 |
|
| 846 |
if set, determines the directory to be used for overriding shader |
| 847 |
assembly. The binaries with custom assembly should be placed in |
| 848 |
this folder and have a name formatted as ``sha1_of_assembly.bin``. |
| 849 |
The SHA-1 of a shader assembly is printed when assembly is dumped via |
| 850 |
corresponding :envvar:`INTEL_DEBUG` flag (e.g. ``vs`` for vertex shader). |
| 851 |
A binary could be generated from a dumped assembly by ``brw_asm`` or ``elk_asm``. |
| 852 |
For :envvar:`INTEL_SHADER_ASM_READ_PATH` to work it is necessary to enable |
| 853 |
dumping of corresponding shader stages via :envvar:`INTEL_DEBUG`. |
| 854 |
It is advised to use ``nocompact`` flag of :envvar:`INTEL_DEBUG` when |
| 855 |
dumping and overriding shader assemblies. |
| 856 |
The success of assembly override would be signified by "Successfully |
| 857 |
overrode shader with sha1 <SHA-1>" in stderr replacing the original |
| 858 |
assembly. |
| 859 |
|
| 860 |
.. envvar:: INTEL_SHADER_BIN_DUMP_PATH |
| 861 |
|
| 862 |
if set, determines the directory to which the compiled shaders will be |
| 863 |
dumped. They will be dumped as ``sha1_of_assembly.bin``, where the sha1 |
| 864 |
values will be the same as can be found in the :envvar:`INTEL_DEBUG` |
| 865 |
output, and can be used for :envvar:`INTEL_SHADER_ASM_READ_PATH` input. |
| 866 |
|
| 867 |
.. note:: |
| 868 |
Unlike the text form of shader dumping, :envvar:`INTEL_DEBUG` |
| 869 |
does not affect on the list of shaders to dump. All generated shaders |
| 870 |
are always dumped if :envvar:`INTEL_SHADER_BIN_DUMP_PATH` variable is |
| 871 |
set. |
| 872 |
|
| 873 |
.. envvar:: INTEL_SHADER_DUMP_FILTER |
| 874 |
|
| 875 |
Only dump information about shaders that match the specified hexadecimal |
| 876 |
source hash. |
| 877 |
|
| 878 |
.. envvar:: INTEL_SIMD_DEBUG |
| 879 |
|
| 880 |
a comma-separated list of named flags, which control simd dispatch widths: |
| 881 |
|
| 882 |
``fs8`` |
| 883 |
allow generation of SIMD8 fragment shader |
| 884 |
``fs16`` |
| 885 |
allow generation of SIMD16 fragment shader |
| 886 |
``fs32`` |
| 887 |
allow generation of SIMD32 fragment shader |
| 888 |
``cs8`` |
| 889 |
allow generation of SIMD8 compute shader |
| 890 |
``cs16`` |
| 891 |
allow generation of SIMD16 compute shader |
| 892 |
``cs32`` |
| 893 |
allow generation of SIMD32 compute shader |
| 894 |
``ts8`` |
| 895 |
allow generation of SIMD8 task shader |
| 896 |
``ts16`` |
| 897 |
allow generation of SIMD16 task shader |
| 898 |
``ts32`` |
| 899 |
allow generation of SIMD32 task shader |
| 900 |
``ms8`` |
| 901 |
allow generation of SIMD8 mesh shader |
| 902 |
``ms16`` |
| 903 |
allow generation of SIMD16 mesh shader |
| 904 |
``ms32`` |
| 905 |
allow generation of SIMD32 mesh shader |
| 906 |
``rt8`` |
| 907 |
allow generation of SIMD8 ray-tracing shader |
| 908 |
``rt16`` |
| 909 |
allow generation of SIMD16 ray-tracing shader |
| 910 |
``rt32`` |
| 911 |
allow generation of SIMD32 ray-tracing shader |
| 912 |
|
| 913 |
If none of widths for particular shader stage was specified, then all |
| 914 |
widths are allowed. |
| 915 |
|
| 916 |
.. envvar:: MDA_OUTPUT_DIR |
| 917 |
|
| 918 |
Directory where the mda.tar files generated when using INTEL_DEBUG=mda are |
| 919 |
going to be written to. If not set, use the current directory. |
| 920 |
|
| 921 |
.. envvar:: MDA_PREFIX |
| 922 |
|
| 923 |
Prefix added to the mda.tar filenames generated when using INTEL_DEBUG=mda. |
| 924 |
If set to ``timestamp`` it will generate the current time/date as prefix. |
| 925 |
|
| 926 |
.. envvar:: MDA_FILTER |
| 927 |
|
| 928 |
When set, will only generate mda.tar files which names contain any of the |
| 929 |
comma-separated filter values as substrings. |
| 930 |
|
| 931 |
Anvil(ANV) driver environment variables |
| 932 |
--------------------------------------- |
| 933 |
|
| 934 |
.. envvar:: ANV_DEBUG |
| 935 |
|
| 936 |
Accepts the following comma-separated list of flags: |
| 937 |
|
| 938 |
``bindless`` |
| 939 |
Forces all descriptor sets to use the internal :ref:`Bindless model` |
| 940 |
``no-gpl`` |
| 941 |
Disables `VK_KHR_graphics_pipeline_library` support |
| 942 |
``no-secondary-call`` |
| 943 |
Disables secondary command buffer calls |
| 944 |
``no-sparse`` |
| 945 |
Disables sparse support |
| 946 |
``sparse-trtt`` |
| 947 |
Forces use of TR-TT hardware for sparse support |
| 948 |
``video-decode`` |
| 949 |
Enables video decoding support |
| 950 |
``video-encode`` |
| 951 |
Enables video encoding support |
| 952 |
``shader-hash`` |
| 953 |
Emits dummy (MI_STORE_DATA_IMM) instructions containing the shader |
| 954 |
source hash, preceding shader programming instructions (internal |
| 955 |
shaders & ray-tracing shaders are omitted) |
| 956 |
|
| 957 |
If defined to ``1`` or ``true``, this will prevent usage of self |
| 958 |
modifying command buffers to implement ``vkCmdExecuteCommands``. As |
| 959 |
a result of this, it will also disable :ext:`VK_KHR_performance_query`. |
| 960 |
|
| 961 |
.. envvar:: ANV_DEBUG_WAIT_FOR_ATTACH |
| 962 |
|
| 963 |
If defined, the value is parsed as a regular expression. If the current |
| 964 |
process name matches the regex, ANV will wait 30 seconds for a debugger |
| 965 |
to attach before starting device creation. |
| 966 |
|
| 967 |
.. envvar:: ANV_PRIMITIVE_REPLICATION_MAX_VIEWS |
| 968 |
|
| 969 |
Specifies up to how many view shaders can be lowered to handle |
| 970 |
:ext:`VK_KHR_multiview`. Beyond this number, multiview is implemented |
| 971 |
using instanced rendering. If unspecified, the value default to |
| 972 |
``2``. |
| 973 |
|
| 974 |
.. envvar:: ANV_PRINTF_BUFFER_SIZE |
| 975 |
|
| 976 |
Specifies the size of the printf buffer. |
| 977 |
|
| 978 |
.. envvar:: ANV_QUEUE_OVERRIDE |
| 979 |
|
| 980 |
Override exposed queue families & counts. The variable is a comma |
| 981 |
separated list of queue overrides. To override the number queues: |
| 982 |
|
| 983 |
- ``gc`` is for graphics queues with compute support |
| 984 |
- ``g`` is for graphics queues with no compute support |
| 985 |
- ``c`` is for compute queues with no graphics support |
| 986 |
- ``v`` is for video queues with no graphics support |
| 987 |
- ``b`` is for copy (blitter) queues with no graphics support |
| 988 |
|
| 989 |
For example, ``ANV_QUEUE_OVERRIDE=gc=2,c=1`` would override the number |
| 990 |
of advertised queues to be 2 queues with graphics+compute support, |
| 991 |
and 1 queue with compute-only support. |
| 992 |
|
| 993 |
``ANV_QUEUE_OVERRIDE=c=1`` would override the number of advertised |
| 994 |
queues to include 1 queue with compute-only support, but it will |
| 995 |
not change the number of graphics+compute queues. |
| 996 |
|
| 997 |
``ANV_QUEUE_OVERRIDE=gc=0,c=1`` would override the number of |
| 998 |
advertised queues to include 1 queue with compute-only support, and |
| 999 |
it would override the number of graphics+compute queues to be 0. |
| 1000 |
|
| 1001 |
.. envvar:: ANV_SPARSE |
| 1002 |
|
| 1003 |
By default, the sparse resources feature is enabled. However, if set to 0, |
| 1004 |
false, or no, it will be disabled. |
| 1005 |
Platforms older than Tiger Lake do not support this feature. |
| 1006 |
|
| 1007 |
.. envvar:: ANV_SPARSE_USE_TRTT |
| 1008 |
|
| 1009 |
On platforms supported by Xe KMD (Lunar Lake and newer) this parameter |
| 1010 |
changes the implementation of sparse resources feature. |
| 1011 |
For i915 there is no option, sparse resources is always implemented with |
| 1012 |
TRTT. |
| 1013 |
|
| 1014 |
Hasvk driver environment variables |
| 1015 |
--------------------------------------- |
| 1016 |
|
| 1017 |
.. envvar:: HASVK_DISABLE_SECONDARY_CMD_BUFFER_CALLS |
| 1018 |
|
| 1019 |
If defined to ``1`` or ``true``, this will prevent usage of self |
| 1020 |
modifying command buffers to implement ``vkCmdExecuteCommands``. As |
| 1021 |
a result of this, it will also disable :ext:`VK_KHR_performance_query`. |
| 1022 |
|
| 1023 |
.. envvar:: HASVK_ALWAYS_BINDLESS |
| 1024 |
|
| 1025 |
If defined to ``1`` or ``true``, this forces all descriptor sets to |
| 1026 |
use the internal :ref:`Bindless model`. |
| 1027 |
|
| 1028 |
.. envvar:: HASVK_QUEUE_OVERRIDE |
| 1029 |
|
| 1030 |
Override exposed queue families & counts. The variable is a comma |
| 1031 |
separated list of queue overrides. To override the number queues: |
| 1032 |
|
| 1033 |
- ``gc`` is for graphics queues with compute support |
| 1034 |
- ``g`` is for graphics queues with no compute support |
| 1035 |
- ``c`` is for compute queues with no graphics support |
| 1036 |
- ``v`` is for video queues with no graphics support |
| 1037 |
- ``b`` is for copy (blitter) queues with no graphics support |
| 1038 |
|
| 1039 |
For example, ``HASVK_QUEUE_OVERRIDE=gc=2,c=1`` would override the |
| 1040 |
number of advertised queues to be 2 queues with graphics+compute |
| 1041 |
support, and 1 queue with compute-only support. |
| 1042 |
|
| 1043 |
``HASVK_QUEUE_OVERRIDE=c=1`` would override the number of |
| 1044 |
advertised queues to include 1 queue with compute-only support, but |
| 1045 |
it will not change the number of graphics+compute queues. |
| 1046 |
|
| 1047 |
``HASVK_QUEUE_OVERRIDE=gc=0,c=1`` would override the number of |
| 1048 |
advertised queues to include 1 queue with compute-only support, and |
| 1049 |
it would override the number of graphics+compute queues to be 0. |
| 1050 |
|
| 1051 |
.. envvar:: HASVK_USERSPACE_RELOCS |
| 1052 |
|
| 1053 |
If defined to ``1`` or ``true``, this forces ANV to always do |
| 1054 |
kernel relocations in command buffers. This should only have an |
| 1055 |
effect on hardware that doesn't support soft-pinning (Ivybridge, |
| 1056 |
Haswell, Cherryview). |
| 1057 |
|
| 1058 |
DRI environment variables |
| 1059 |
------------------------- |
| 1060 |
|
| 1061 |
.. envvar:: DRI_NO_MSAA |
| 1062 |
|
| 1063 |
disable MSAA for GLX/EGL MSAA visuals |
| 1064 |
|
| 1065 |
|
| 1066 |
Vulkan mesa device select layer environment variables |
| 1067 |
----------------------------------------------------- |
| 1068 |
|
| 1069 |
.. envvar:: MESA_VK_DEVICE_SELECT |
| 1070 |
|
| 1071 |
when set to "list" prints the list of devices. |
| 1072 |
when set to "vid:did" number from PCI device. That PCI device is |
| 1073 |
selected as default. The default device is returned as the first |
| 1074 |
device in vkEnumeratePhysicalDevices API. |
| 1075 |
Using "vid:did!" will have the same effect as using the |
| 1076 |
``MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE`` variable. |
| 1077 |
|
| 1078 |
.. envvar:: MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE |
| 1079 |
|
| 1080 |
when set to 1, the device identified as default will be the only |
| 1081 |
one returned in vkEnumeratePhysicalDevices API. |
| 1082 |
|
| 1083 |
|
| 1084 |
EGL environment variables |
| 1085 |
------------------------- |
| 1086 |
|
| 1087 |
Mesa EGL supports different sets of environment variables. See the |
| 1088 |
:doc:`Mesa EGL <egl>` page for the details. |
| 1089 |
|
| 1090 |
Gallium environment variables |
| 1091 |
----------------------------- |
| 1092 |
|
| 1093 |
.. envvar:: GALLIUM_HUD |
| 1094 |
|
| 1095 |
draws various information on the screen, like framerate, CPU load, |
| 1096 |
driver statistics, performance counters, etc. Set |
| 1097 |
:envvar:`GALLIUM_HUD` to ``help`` and run e.g. ``glxgears`` for more info. |
| 1098 |
|
| 1099 |
.. envvar:: GALLIUM_HUD_PERIOD |
| 1100 |
|
| 1101 |
sets the HUD update rate in seconds (float). Use zero to update every |
| 1102 |
frame. The default period is 1/2 second. |
| 1103 |
|
| 1104 |
.. envvar:: GALLIUM_HUD_VISIBLE |
| 1105 |
|
| 1106 |
control default visibility, defaults to true. |
| 1107 |
|
| 1108 |
.. envvar:: GALLIUM_HUD_OPACITY |
| 1109 |
|
| 1110 |
control background opacity as an integer percentage (1-100), defaults to 66%. |
| 1111 |
|
| 1112 |
.. envvar:: GALLIUM_HUD_TOGGLE_SIGNAL |
| 1113 |
|
| 1114 |
toggle visibility via user specified signal. Especially useful to |
| 1115 |
toggle HUD at specific points of application and disable for |
| 1116 |
unencumbered viewing the rest of the time. For example, set |
| 1117 |
:envvar:`GALLIUM_HUD_VISIBLE` to ``false`` and |
| 1118 |
:envvar:`GALLIUM_HUD_TOGGLE_SIGNAL` to ``10`` (``SIGUSR1``). Use |
| 1119 |
``kill -10 <pid>`` to toggle the HUD as desired. |
| 1120 |
|
| 1121 |
.. envvar:: GALLIUM_HUD_SCALE |
| 1122 |
|
| 1123 |
Scale HUD by an integer factor, for high DPI displays. Default is 1. |
| 1124 |
|
| 1125 |
.. envvar:: GALLIUM_HUD_ROTATION |
| 1126 |
|
| 1127 |
Rotate the HUD by an integer number of degrees, the specified value must be |
| 1128 |
a multiple of 90. Default is 0. |
| 1129 |
|
| 1130 |
.. envvar:: GALLIUM_HUD_DUMP_DIR |
| 1131 |
|
| 1132 |
specifies a directory for writing the displayed HUD values into |
| 1133 |
files. |
| 1134 |
|
| 1135 |
.. envvar:: GALLIUM_DRIVER |
| 1136 |
|
| 1137 |
useful in combination with :envvar:`LIBGL_ALWAYS_SOFTWARE` = ``true`` for |
| 1138 |
choosing one of the software renderers ``softpipe`` or ``llvmpipe``. |
| 1139 |
|
| 1140 |
.. envvar:: GALLIUM_LOG_FILE |
| 1141 |
|
| 1142 |
specifies a file for logging all errors, warnings, etc. rather than |
| 1143 |
stderr. |
| 1144 |
|
| 1145 |
.. envvar:: GALLIUM_PRINT_OPTIONS |
| 1146 |
|
| 1147 |
if non-zero, print all the Gallium environment variables which are |
| 1148 |
used, and their current values. |
| 1149 |
|
| 1150 |
.. envvar:: GALLIUM_TRACE |
| 1151 |
|
| 1152 |
If set, this variable will cause the trace output to be written to the |
| 1153 |
specified file. Paths may be relative or absolute; relative paths are relative |
| 1154 |
to the working directory. For example, setting it to "trace.xml" will cause |
| 1155 |
the trace to be written to a file of the same name in the working directory. |
| 1156 |
|
| 1157 |
.. envvar:: GALLIUM_TRACE_TC |
| 1158 |
|
| 1159 |
If enabled while trace is active, this variable specifies that the threaded context |
| 1160 |
should be traced for drivers which implement it. By default, the driver thread is traced, |
| 1161 |
which will include any reordering of the command stream from threaded context. |
| 1162 |
|
| 1163 |
.. envvar:: GALLIUM_TRACE_TRIGGER |
| 1164 |
|
| 1165 |
If set while trace is active, this variable specifies a filename to monitor. |
| 1166 |
Once the file exists (e.g., from the user running 'touch /path/to/file'), a single |
| 1167 |
frame will be recorded into the trace output. |
| 1168 |
Paths may be relative or absolute; relative paths are relative to the working directory. |
| 1169 |
|
| 1170 |
.. envvar:: GALLIUM_DUMP_CPU |
| 1171 |
|
| 1172 |
if non-zero, print information about the CPU on start-up |
| 1173 |
|
| 1174 |
.. envvar:: TGSI_PRINT_SANITY |
| 1175 |
|
| 1176 |
if set, do extra sanity checking on TGSI shaders and print any errors |
| 1177 |
to stderr. |
| 1178 |
|
| 1179 |
.. envvar:: DRAW_FSE |
| 1180 |
|
| 1181 |
Enable fetch-shade-emit middle-end even though its not correct (e.g. |
| 1182 |
for Softpipe) |
| 1183 |
|
| 1184 |
.. envvar:: DRAW_NO_FSE |
| 1185 |
|
| 1186 |
Disable fetch-shade-emit middle-end even when it is correct |
| 1187 |
|
| 1188 |
.. envvar:: DRAW_USE_LLVM |
| 1189 |
|
| 1190 |
if set to zero, the draw module will not use LLVM to execute shaders, |
| 1191 |
vertex fetch, etc. |
| 1192 |
|
| 1193 |
.. envvar:: ST_DEBUG |
| 1194 |
|
| 1195 |
controls debug output from the Mesa/Gallium state tracker. Setting to |
| 1196 |
``tgsi``, for example, will print all the TGSI shaders. See |
| 1197 |
:file:`src/mesa/state_tracker/st_debug.c` for other options. |
| 1198 |
|
| 1199 |
.. envvar:: GALLIUM_OVERRIDE_CPU_CAPS |
| 1200 |
|
| 1201 |
Override CPU capabilities for LLVMpipe and Softpipe, possible values for x86: |
| 1202 |
``nosse`` |
| 1203 |
``sse`` |
| 1204 |
``sse2`` |
| 1205 |
``sse3`` |
| 1206 |
``ssse3`` |
| 1207 |
``sse4.1`` |
| 1208 |
``avx`` |
| 1209 |
|
| 1210 |
.. _rusticl-env-var: |
| 1211 |
|
| 1212 |
Rusticl environment variables |
| 1213 |
----------------------------- |
| 1214 |
|
| 1215 |
.. envvar:: RUSTICL_DEVICE_TYPE |
| 1216 |
|
| 1217 |
allows to overwrite the device type of devices. Possible values are |
| 1218 |
``accelerator``, ``cpu``, ``custom`` and ``gpu`` |
| 1219 |
|
| 1220 |
.. envvar:: RUSTICL_CL_VERSION |
| 1221 |
|
| 1222 |
overwrites the auto detected OpenCL version of all devices. Specified as |
| 1223 |
``major.minor``. |
| 1224 |
|
| 1225 |
.. envvar:: RUSTICL_ENABLE |
| 1226 |
|
| 1227 |
a comma-separated list of drivers to enable CL on. An optional list of |
| 1228 |
comma-separated integers can be passed per driver to specify which devices |
| 1229 |
to enable. Examples: |
| 1230 |
|
| 1231 |
- ``RUSTICL_ENABLE=iris`` (enables all iris devices) |
| 1232 |
- ``RUSTICL_ENABLE=iris:1,radeonsi:0,2`` (enables second iris and first |
| 1233 |
and third radeonsi device) |
| 1234 |
|
| 1235 |
Supported drivers (decent support with maybe a few conformance issues or bugs): |
| 1236 |
``iris``, |
| 1237 |
``llvmpipe``, |
| 1238 |
``nouveau``, |
| 1239 |
``panfrost``, |
| 1240 |
``radeonsi``, |
| 1241 |
Experimental drivers (unknown level of support, expect conformance issues or major bugs): |
| 1242 |
``r600`` |
| 1243 |
|
| 1244 |
.. envvar:: RUSTICL_FEATURES |
| 1245 |
|
| 1246 |
a comma-separated list of features to enable. Those are disabled by default |
| 1247 |
as they might not be stable enough or break OpenCL conformance. |
| 1248 |
|
| 1249 |
- ``fp64`` enables OpenCL double support |
| 1250 |
- ``intel`` enables various Intel OpenCL extensions |
| 1251 |
|
| 1252 |
.. envvar:: RUSTICL_DEBUG |
| 1253 |
|
| 1254 |
a comma-separated list of debug channels to enable. |
| 1255 |
|
| 1256 |
- ``allow_invalid_spirv`` disables validation of any input SPIR-V |
| 1257 |
- ``clc`` dumps all OpenCL C source being compiled |
| 1258 |
- ``memory`` enables debugging of memory objects |
| 1259 |
- ``nir`` dumps nirs in various compilation stages. Might print nothing if shader caching is |
| 1260 |
enabled. |
| 1261 |
- ``no_reuse_context`` pipe_contexts are not recycled |
| 1262 |
- ``no_variants`` disable kernel variants (e.g. specialized binaries for offsets == 0) |
| 1263 |
- ``perf`` prints a warning when hitting slow paths once |
| 1264 |
- ``perfspam`` same as perf, but doesn't skip same warnings |
| 1265 |
- ``program`` dumps compilation logs to stderr |
| 1266 |
- ``sync`` waits on the GPU to complete after every event |
| 1267 |
- ``validate`` validates any internally generated SPIR-Vs, e.g. through compiling OpenCL C code |
| 1268 |
|
| 1269 |
.. envvar:: RUSTICL_MAX_WORK_GROUPS |
| 1270 |
|
| 1271 |
Limits the amount of threads per dimension in a work-group. Useful for splitting up long running |
| 1272 |
tasks to increase responsiveness or to simulate the lowering of huge global sizes for testing. |
| 1273 |
|
| 1274 |
.. _teflon-env-var: |
| 1275 |
|
| 1276 |
Teflon environment variables |
| 1277 |
----------------------------- |
| 1278 |
|
| 1279 |
.. envvar:: TEFLON_DEBUG |
| 1280 |
|
| 1281 |
If set to ``verbose``, debug information is printed to stdout. |
| 1282 |
|
| 1283 |
.. envvar:: TEFLON_DUMP_OUTPUT |
| 1284 |
|
| 1285 |
Dumps the output buffers to a file on disk. Useful for comparing the outputs |
| 1286 |
from the CPU, proprietary drivers, and Mesa to check for convergence. |
| 1287 |
|
| 1288 |
.. envvar:: TEFLON_ENABLE_CACHE |
| 1289 |
|
| 1290 |
If set, the models generated by ``test_teflon`` are stored in an on-disk cache. |
| 1291 |
|
| 1292 |
.. envvar:: TEFLON_TEST_DATA |
| 1293 |
|
| 1294 |
Points to a directory containing models (``.tflite`` files) to be executed by |
| 1295 |
`test_teflon`. Usually, this is set to ``src/gallium/targets/teflon/tests``. |
| 1296 |
|
| 1297 |
.. envvar:: TEFLON_TEST_DELEGATE |
| 1298 |
|
| 1299 |
Points to the external delegate library path. Usually, this is set to |
| 1300 |
``libteflon.so``. |
| 1301 |
|
| 1302 |
.. _clc-env-var: |
| 1303 |
|
| 1304 |
clc environment variables |
| 1305 |
----------------------------- |
| 1306 |
|
| 1307 |
.. envvar:: CLC_DEBUG |
| 1308 |
|
| 1309 |
a comma-separated list of debug channels to enable. |
| 1310 |
|
| 1311 |
- ``dump_llvm`` Dumps all generated LLVM IRs |
| 1312 |
- ``dump_spirv`` Dumps all compiled, linked and specialized SPIR-Vs |
| 1313 |
- ``verbose`` Enable debug logging of clc code |
| 1314 |
|
| 1315 |
Softpipe driver environment variables |
| 1316 |
------------------------------------- |
| 1317 |
|
| 1318 |
.. envvar:: SOFTPIPE_DEBUG |
| 1319 |
|
| 1320 |
a comma-separated list of named flags, which do various things: |
| 1321 |
|
| 1322 |
``vs`` |
| 1323 |
Dump vertex shader assembly to stderr |
| 1324 |
``fs`` |
| 1325 |
Dump fragment shader assembly to stderr |
| 1326 |
``gs`` |
| 1327 |
Dump geometry shader assembly to stderr |
| 1328 |
``cs`` |
| 1329 |
Dump compute shader assembly to stderr |
| 1330 |
``no_rast`` |
| 1331 |
rasterization is disabled. For profiling purposes. |
| 1332 |
``use_llvm`` |
| 1333 |
the Softpipe driver will try to use LLVM JIT for vertex |
| 1334 |
shading processing. |
| 1335 |
|
| 1336 |
LLVMpipe driver environment variables |
| 1337 |
------------------------------------- |
| 1338 |
|
| 1339 |
.. envvar:: LP_NO_RAST |
| 1340 |
|
| 1341 |
if set LLVMpipe will no-op rasterization |
| 1342 |
|
| 1343 |
.. envvar:: LP_DEBUG |
| 1344 |
|
| 1345 |
a comma-separated list of debug options is accepted. See the source |
| 1346 |
code for details. |
| 1347 |
|
| 1348 |
.. envvar:: LP_PERF |
| 1349 |
|
| 1350 |
a comma-separated list of options to selectively no-op various parts |
| 1351 |
of the driver. See the source code for details. |
| 1352 |
|
| 1353 |
.. envvar:: LP_NUM_THREADS |
| 1354 |
|
| 1355 |
an integer indicating how many threads to use for rendering. Zero |
| 1356 |
turns off threading completely. The default value is the number of |
| 1357 |
CPU cores present. |
| 1358 |
|
| 1359 |
VMware SVGA driver environment variables |
| 1360 |
---------------------------------------- |
| 1361 |
|
| 1362 |
.. envvar:: SVGA_FORCE_SWTNL |
| 1363 |
|
| 1364 |
force use of software vertex transformation |
| 1365 |
|
| 1366 |
.. envvar:: SVGA_NO_SWTNL |
| 1367 |
|
| 1368 |
don't allow software vertex transformation fallbacks (will often |
| 1369 |
result in incorrect rendering). |
| 1370 |
|
| 1371 |
.. envvar:: SVGA_DEBUG |
| 1372 |
|
| 1373 |
for dumping shaders, constant buffers, etc. See the code for details. |
| 1374 |
|
| 1375 |
.. envvar:: SVGA_EXTRA_LOGGING |
| 1376 |
|
| 1377 |
if set, enables extra logging to the ``vmware.log`` file, such as the |
| 1378 |
OpenGL program's name and command line arguments. |
| 1379 |
|
| 1380 |
.. envvar:: SVGA_NO_LOGGING |
| 1381 |
|
| 1382 |
if set, disables logging to the ``vmware.log`` file. This is useful |
| 1383 |
when using Valgrind because it otherwise crashes when initializing |
| 1384 |
the host log feature. |
| 1385 |
|
| 1386 |
See the driver code for other, lesser-used variables. |
| 1387 |
|
| 1388 |
VA-API environment variables |
| 1389 |
---------------------------- |
| 1390 |
|
| 1391 |
.. envvar:: VAAPI_MPEG4_ENABLED |
| 1392 |
|
| 1393 |
enable MPEG4 for VA-API, disabled by default. |
| 1394 |
|
| 1395 |
VC4 driver environment variables |
| 1396 |
-------------------------------- |
| 1397 |
|
| 1398 |
.. envvar:: VC4_DEBUG |
| 1399 |
|
| 1400 |
a comma-separated list of named flags, which do various things. Use |
| 1401 |
``VC4_DEBUG=help`` to print a list of available options. |
| 1402 |
|
| 1403 |
V3D/V3DV driver environment variables |
| 1404 |
------------------------------------- |
| 1405 |
|
| 1406 |
.. envvar:: V3D_DEBUG |
| 1407 |
|
| 1408 |
a comma-separated list of debug options. Use ``V3D_DEBUG=help`` to |
| 1409 |
print a list of available options. |
| 1410 |
|
| 1411 |
|
| 1412 |
.. _radv env-vars: |
| 1413 |
|
| 1414 |
RADV driver environment variables |
| 1415 |
--------------------------------- |
| 1416 |
|
| 1417 |
.. envvar:: RADV_DEBUG |
| 1418 |
|
| 1419 |
a comma-separated list of named flags, which do various things: |
| 1420 |
|
| 1421 |
``llvm`` |
| 1422 |
enable LLVM compiler backend |
| 1423 |
``allbos`` |
| 1424 |
force all allocated buffers to be referenced in submissions |
| 1425 |
``bo_history`` |
| 1426 |
dump the BO history to /tmp/radv_bo_history.log after each BO operations |
| 1427 |
``checkir`` |
| 1428 |
validate the LLVM IR before LLVM compiles the shader |
| 1429 |
``dumpibs`` |
| 1430 |
dump IBs (command streams) |
| 1431 |
``dump_trap_handler`` |
| 1432 |
dump the trap handler shader |
| 1433 |
``epilogs`` |
| 1434 |
dump fragment shader epilogs |
| 1435 |
``extra_md`` |
| 1436 |
add extra information in bo metadata to help tools (umr) |
| 1437 |
``forcecompress`` |
| 1438 |
Enables DCC,FMASK,CMASK,HTILE in situations where the driver supports it |
| 1439 |
but normally does not deem it beneficial. |
| 1440 |
``hang`` |
| 1441 |
enable GPU hangs detection and dump a report to |
| 1442 |
$HOME/radv_dumps_<pid>_<time> if a GPU hang is detected |
| 1443 |
``img`` |
| 1444 |
Print image info |
| 1445 |
``info`` |
| 1446 |
show GPU-related information |
| 1447 |
``metashaders`` |
| 1448 |
dump internal meta shaders |
| 1449 |
``noatocdithering`` |
| 1450 |
disable dithering for alpha to coverage |
| 1451 |
``nobinning`` |
| 1452 |
disable primitive binning |
| 1453 |
``nobolist`` |
| 1454 |
disable the global BO list when no features require it |
| 1455 |
``nocache`` |
| 1456 |
disable shaders cache |
| 1457 |
``nocompute`` |
| 1458 |
disable compute queue |
| 1459 |
``nodcc`` |
| 1460 |
disable Delta Color Compression (DCC) on images |
| 1461 |
``nodisplaydcc`` |
| 1462 |
disable Delta Color Compression (DCC) on displayable images |
| 1463 |
``noeso`` |
| 1464 |
disable VK_EXT_shader_object |
| 1465 |
``nofastclears`` |
| 1466 |
disable fast color/depthstencil clears |
| 1467 |
``nofmask`` |
| 1468 |
disable FMASK compression on MSAA images (GFX6-GFX10.3) |
| 1469 |
``nogpl`` |
| 1470 |
disable VK_EXT_graphics_pipeline_library |
| 1471 |
``nohiz`` |
| 1472 |
disable HIZ for depthstencil images |
| 1473 |
``noibchaining`` |
| 1474 |
disable chaining IB buffers |
| 1475 |
``nomeshshader`` |
| 1476 |
disable mesh shader support on GFX10.3+ |
| 1477 |
``nongg`` |
| 1478 |
disable NGG for GFX10 and GFX10.3 |
| 1479 |
``nonggc`` |
| 1480 |
disable NGG culling for GFX10 and GFX10.3 |
| 1481 |
``nort`` |
| 1482 |
skip executing vkCmdTraceRays and ray queries (RT extensions will still be |
| 1483 |
advertised) |
| 1484 |
``nosmemmitigation`` |
| 1485 |
don't mitigate SMEM memory access issues on GFX6-7 |
| 1486 |
``notccompatcmask`` |
| 1487 |
disable TC-compat CMASK for MSAA surfaces |
| 1488 |
``noumr`` |
| 1489 |
disable UMR dumps during GPU hang detection (only with |
| 1490 |
:envvar:`RADV_DEBUG` = ``hang``) |
| 1491 |
``novideo`` |
| 1492 |
disable all video extensions |
| 1493 |
``novrsflatshading`` |
| 1494 |
disable VRS for flat shading (only on GFX10.3+) |
| 1495 |
``preoptir`` |
| 1496 |
Dump backend IR (ACO or LLVM) before any optimizations. |
| 1497 |
``prologs`` |
| 1498 |
dump vertex shader prologs |
| 1499 |
``psocachestats`` |
| 1500 |
dump PSO cache stats (hits/misses) to verify precompilation of shaders |
| 1501 |
``pso_history`` |
| 1502 |
dump PSO history (pipeline hash + shader VA) to /tmp/radv_pso_history.log. |
| 1503 |
Useful for debugging GPU hangs with UMR and Fossilize. |
| 1504 |
``shaders`` |
| 1505 |
dump shaders |
| 1506 |
``shaderstats`` |
| 1507 |
dump shader statistics |
| 1508 |
``shadowregs`` |
| 1509 |
enable register shadowing |
| 1510 |
``spirv`` |
| 1511 |
dump SPIR-V |
| 1512 |
``startup`` |
| 1513 |
display info at startup |
| 1514 |
``syncshaders`` |
| 1515 |
synchronize shaders after all draws/dispatches |
| 1516 |
``zerovram`` |
| 1517 |
initialize all memory allocated in VRAM as zero |
| 1518 |
``vs`` |
| 1519 |
Dump vertex shaders. |
| 1520 |
``tcs`` |
| 1521 |
Dump tessellation control shaders. |
| 1522 |
``tes`` |
| 1523 |
Dump tessellation evaluation shaders. |
| 1524 |
``gs`` |
| 1525 |
Dump geometry shaders. |
| 1526 |
``ps`` |
| 1527 |
Dump fragment shaders. |
| 1528 |
``task`` |
| 1529 |
Dump task shaders. |
| 1530 |
``mesh`` |
| 1531 |
Dump mesh shaders. |
| 1532 |
``cs`` |
| 1533 |
Dump compute (and ray tracing) shaders. |
| 1534 |
``nir`` |
| 1535 |
Dump NIR for selected shader stages. |
| 1536 |
``ir`` |
| 1537 |
Dump backend IR (ACO or LLVM) for selected shader stages. |
| 1538 |
``asm`` |
| 1539 |
Dump shader disassembly for selected shader stages. |
| 1540 |
``bvh4`` |
| 1541 |
Use bvh4 encoding on GPUs that support bvh8 encoding. |
| 1542 |
``validatevas`` |
| 1543 |
Enable tracking of VA ranges for radv_build_is_valid_va. |
| 1544 |
``vm`` |
| 1545 |
add a gap between all VA allocations to check for page faults |
| 1546 |
|
| 1547 |
.. envvar:: RADV_FORCE_VRS |
| 1548 |
|
| 1549 |
allow to force per-pipeline vertex VRS rates on GFX10.3+. This is only |
| 1550 |
forced for pipelines that don't explicitly use VRS or flat shading. |
| 1551 |
The supported values are 2x2, 1x2, 2x1 and 1x1. Only for testing purposes. |
| 1552 |
|
| 1553 |
.. envvar:: RADV_FORCE_VRS_CONFIG_FILE |
| 1554 |
|
| 1555 |
similar to ``RADV_FORCE_VRS`` but allow to configure from a file. If present, |
| 1556 |
this supersedes ``RADV_FORCE_VRS``. |
| 1557 |
|
| 1558 |
.. envvar:: RADV_PERFTEST |
| 1559 |
|
| 1560 |
a comma-separated list of named flags, which do various things: |
| 1561 |
|
| 1562 |
``cswave32`` |
| 1563 |
enable wave32 for compute shaders (GFX10+) |
| 1564 |
``dccmsaa`` |
| 1565 |
enable DCC for MSAA images |
| 1566 |
``dmashaders`` |
| 1567 |
upload shaders to invisible VRAM (might be useful for non-resizable BAR systems) |
| 1568 |
``emulate_rt`` |
| 1569 |
forces ray-tracing to be emulated in software on GFX10_3+ and enables |
| 1570 |
rt extensions with older hardware. |
| 1571 |
``gewave32`` |
| 1572 |
enable wave32 for vertex/tess/geometry shaders (GFX10+) |
| 1573 |
``hic`` |
| 1574 |
enable experimental implementation of VK_EXT_host_image_copy (GFX10+) |
| 1575 |
``localbos`` |
| 1576 |
enable local BOs |
| 1577 |
``nggc`` |
| 1578 |
enable NGG culling for GFX11+ |
| 1579 |
``nircache`` |
| 1580 |
cache per-stage NIR for graphics pipelines |
| 1581 |
``nogttspill`` |
| 1582 |
disable GTT spilling when allocating memory |
| 1583 |
``nosam`` |
| 1584 |
disable optimizations that get enabled when all VRAM is CPU visible. |
| 1585 |
``pswave32`` |
| 1586 |
enable wave32 for pixel shaders (GFX10+) |
| 1587 |
``rtwave64`` |
| 1588 |
enable wave64 for ray tracing shaders (GFX10+) |
| 1589 |
``sam`` |
| 1590 |
enable optimizations to move more driver internal objects to VRAM. |
| 1591 |
``sparse`` |
| 1592 |
enable experimental sparse binding and sparse residency on GPUs where we don't support it by default (pre Polaris) |
| 1593 |
``transfer_queue`` |
| 1594 |
enable experimental transfer queue support (GFX9+, not yet spec compliant) |
| 1595 |
``video_decode`` |
| 1596 |
enable experimental video decoding support on GFX6-9 |
| 1597 |
``video_encode`` |
| 1598 |
enable experimental video encoding support on GFX6-9 |
| 1599 |
|
| 1600 |
.. envvar:: RADV_TEX_ANISO |
| 1601 |
|
| 1602 |
force anisotropy filter (up to 16) |
| 1603 |
|
| 1604 |
.. envvar:: RADV_THREAD_TRACE_BUFFER_SIZE |
| 1605 |
|
| 1606 |
set the SQTT/RGP buffer size in bytes (default value is 32MiB, the buffer is |
| 1607 |
automatically resized if too small) |
| 1608 |
|
| 1609 |
.. envvar:: RADV_THREAD_TRACE_CACHE_COUNTERS |
| 1610 |
|
| 1611 |
enable/disable SQTT/RGP cache counters on GFX10+ (enabled by default) |
| 1612 |
|
| 1613 |
.. envvar:: RADV_THREAD_TRACE_INSTRUCTION_TIMING |
| 1614 |
|
| 1615 |
enable/disable SQTT/RGP instruction timing (enabled by default) |
| 1616 |
|
| 1617 |
.. envvar:: RADV_THREAD_TRACE_QUEUE_EVENTS |
| 1618 |
|
| 1619 |
enable/disable SQTT/RGP queue events (enabled by default) |
| 1620 |
|
| 1621 |
.. envvar:: RADV_TRAP_HANDLER |
| 1622 |
|
| 1623 |
enable/disable the experimental trap handler for debugging GPU hangs on GFX8 |
| 1624 |
(disabled by default) |
| 1625 |
|
| 1626 |
.. envvar:: RADV_TRAP_HANDLER_EXCP |
| 1627 |
|
| 1628 |
a comma-separated list of named flags to configure the trap handler |
| 1629 |
exceptions, see the list below: |
| 1630 |
|
| 1631 |
``mem_viol`` |
| 1632 |
enable memory violation exception |
| 1633 |
``float_div_by_zero`` |
| 1634 |
enable floating point division by zero exception |
| 1635 |
``float_overflow`` |
| 1636 |
enable floating point overflow exception |
| 1637 |
``float_underflow`` |
| 1638 |
enable floating point underflow exception |
| 1639 |
|
| 1640 |
.. envvar:: RADV_RRA_TRACE_VALIDATE |
| 1641 |
|
| 1642 |
enable validation of captured acceleration structures. Can be |
| 1643 |
useful if RRA crashes upon opening a trace. |
| 1644 |
|
| 1645 |
.. envvar:: RADV_RRA_TRACE_HISTORY_SIZE |
| 1646 |
|
| 1647 |
set the ray history buffer size when capturing RRA traces (default value is 100MiB, |
| 1648 |
small buffers may result in incomplete traces) |
| 1649 |
|
| 1650 |
.. envvar:: RADV_RRA_TRACE_RESOLUTION_SCALE |
| 1651 |
|
| 1652 |
decrease the resolution used for dumping the ray history resolution when capturing |
| 1653 |
RRA traces. This allows for dumping every Nth invocation along each dispatch dimension. |
| 1654 |
|
| 1655 |
.. envvar:: RADV_PROFILE_PSTATE |
| 1656 |
|
| 1657 |
choose the specific pstate to enter when using thread tracing or when acquiring the |
| 1658 |
profiling lock for performance queries. |
| 1659 |
|
| 1660 |
``standard`` |
| 1661 |
force GPU clocks to an arbitrary fixed level |
| 1662 |
``min_sclk`` |
| 1663 |
force the shader clock to its minimum level |
| 1664 |
``min_mclk`` |
| 1665 |
force the memory clock to its minimum level |
| 1666 |
``peak`` |
| 1667 |
force GPU clocks to their maximum level, this is the default value |
| 1668 |
|
| 1669 |
.. envvar:: ACO_DEBUG |
| 1670 |
|
| 1671 |
a comma-separated list of named flags, which do various things: |
| 1672 |
|
| 1673 |
``validateir`` |
| 1674 |
validate the ACO IR at various points of compilation (enabled by |
| 1675 |
default for debug/debugoptimized builds) |
| 1676 |
``novalidate`` |
| 1677 |
don't enable some ACO validation by default in debug/debugoptimized builds |
| 1678 |
``validatera`` |
| 1679 |
validate register assignment of ACO IR and catches many RA bugs |
| 1680 |
``force-waitcnt`` |
| 1681 |
force emitting waitcnt states if there is something to wait for |
| 1682 |
``force-waitdeps`` |
| 1683 |
force emitting waitcnt dependencies for debugging hazards on GFX10+ |
| 1684 |
``novn`` |
| 1685 |
disable value numbering |
| 1686 |
``noopt`` |
| 1687 |
disable various optimizations |
| 1688 |
``nosched`` |
| 1689 |
disable pre-RA, ILP and VOPD instruction scheduling |
| 1690 |
``nosched-ilp`` |
| 1691 |
disable ILP instruction scheduling |
| 1692 |
``nosched-vopd`` |
| 1693 |
disable VOPD instruction scheduling |
| 1694 |
``perfinfo`` |
| 1695 |
print information used to calculate some pipeline statistics |
| 1696 |
``liveinfo`` |
| 1697 |
print liveness and register demand information before scheduling |
| 1698 |
|
| 1699 |
.. envvar:: radv_gfx12_hiz_wa |
| 1700 |
|
| 1701 |
choose the specific HiZ workaround to apply on GFX12 (RDNA4). The possible |
| 1702 |
values are: |
| 1703 |
|
| 1704 |
``disabled`` |
| 1705 |
no HiZ workaround is enabled, use at your own risk but optimal for performance |
| 1706 |
``partial`` |
| 1707 |
mitigate the issue partially, potentially risky but performance should be |
| 1708 |
mostly optimal |
| 1709 |
``full`` |
| 1710 |
mitigate the issue completely, no risk but performance might be decreased |
| 1711 |
(default value) |
| 1712 |
|
| 1713 |
RadeonSI driver environment variables |
| 1714 |
------------------------------------- |
| 1715 |
|
| 1716 |
.. envvar:: radeonsi_no_infinite_interp |
| 1717 |
|
| 1718 |
Kill PS with infinite interp coeff (might fix hangs) |
| 1719 |
|
| 1720 |
.. envvar:: radeonsi_clamp_div_by_zero |
| 1721 |
|
| 1722 |
Clamp div by zero (x / 0 becomes FLT_MAX instead of NaN) (might fix rendering corruptions) |
| 1723 |
|
| 1724 |
.. envvar:: radeonsi_zerovram |
| 1725 |
|
| 1726 |
Clear all allocated memory to 0 before usage (might fix rendering corruptions) |
| 1727 |
|
| 1728 |
.. envvar:: AMD_DEBUG |
| 1729 |
|
| 1730 |
a comma-separated list of named flags, which do various things: |
| 1731 |
|
| 1732 |
``nodcc`` |
| 1733 |
Disable DCC. |
| 1734 |
``nodccclear`` |
| 1735 |
Disable DCC fast clear |
| 1736 |
``nodisplaydcc`` |
| 1737 |
disable Delta Color Compression (DCC) on displayable images |
| 1738 |
``nodccmsaa`` |
| 1739 |
Disable DCC for MSAA |
| 1740 |
``nodpbb`` |
| 1741 |
Disable DPBB. Overrules the dpbb enable option. |
| 1742 |
``noefc`` |
| 1743 |
Disable hardware based encoder color format conversion |
| 1744 |
``lowlatencyenc`` |
| 1745 |
Enable low latency encoding |
| 1746 |
``notiling`` |
| 1747 |
Disable tiling |
| 1748 |
``nofmask`` |
| 1749 |
Disable MSAA compression |
| 1750 |
``nohyperz`` |
| 1751 |
Disable Hyper-Z |
| 1752 |
``no2d`` |
| 1753 |
Disable 2D tiling |
| 1754 |
``info`` |
| 1755 |
Print driver information |
| 1756 |
``tex`` |
| 1757 |
Print texture info |
| 1758 |
``compute`` |
| 1759 |
Print compute info |
| 1760 |
``vm`` |
| 1761 |
Print virtual addresses when creating resources |
| 1762 |
``vs`` |
| 1763 |
Print vertex shaders |
| 1764 |
``ps`` |
| 1765 |
Print pixel shaders |
| 1766 |
``gs`` |
| 1767 |
Print geometry shaders |
| 1768 |
``tcs`` |
| 1769 |
Print tessellation control shaders |
| 1770 |
``tes`` |
| 1771 |
Print tessellation evaluation shaders |
| 1772 |
``cs`` |
| 1773 |
Print compute shaders |
| 1774 |
``noir`` |
| 1775 |
Don't print the LLVM IR |
| 1776 |
``nonir`` |
| 1777 |
Don't print NIR when printing shaders |
| 1778 |
``noasm`` |
| 1779 |
Don't print disassembled shaders |
| 1780 |
``preoptir`` |
| 1781 |
Print the LLVM IR before initial optimizations |
| 1782 |
``w32ge`` |
| 1783 |
Use Wave32 for vertex, tessellation, and geometry shaders. |
| 1784 |
``w32ps`` |
| 1785 |
Use Wave32 for pixel shaders. |
| 1786 |
``w32cs`` |
| 1787 |
Use Wave32 for computes shaders. |
| 1788 |
``w64ge`` |
| 1789 |
Use Wave64 for vertex, tessellation, and geometry shaders. |
| 1790 |
``w64ps`` |
| 1791 |
Use Wave64 for pixel shaders. |
| 1792 |
``w64cs`` |
| 1793 |
Use Wave64 for computes shaders. |
| 1794 |
``checkir`` |
| 1795 |
Enable additional sanity checks on shader IR |
| 1796 |
``mono`` |
| 1797 |
Use old-style monolithic shaders compiled on demand |
| 1798 |
``nooptvariant`` |
| 1799 |
Disable compiling optimized shader variants. |
| 1800 |
``usellvm`` |
| 1801 |
Use LLVM as shader compiler when possible |
| 1802 |
``nowc`` |
| 1803 |
Disable GTT write combining |
| 1804 |
``check_vm`` |
| 1805 |
Check VM faults and dump debug info. |
| 1806 |
``reserve_vmid`` |
| 1807 |
Force VMID reservation per context. |
| 1808 |
``nongg`` |
| 1809 |
Disable NGG and use the legacy pipeline. |
| 1810 |
``nggc`` |
| 1811 |
Always use NGG culling even on GPUs where it is disabled by default. |
| 1812 |
``nonggc`` |
| 1813 |
Disable NGG culling. |
| 1814 |
``switch_on_eop`` |
| 1815 |
Program WD/IA to switch on end-of-packet. |
| 1816 |
``nooutoforder`` |
| 1817 |
Disable out-of-order rasterization |
| 1818 |
``dpbb`` |
| 1819 |
Enable DPBB. Enable DPBB for gfx9 dGPU. Default enabled for gfx9 APU and >= gfx10. |
| 1820 |
``extra_md`` |
| 1821 |
add extra information in bo metadata to help tools (umr) |
| 1822 |
``shadowregs`` |
| 1823 |
Enable CP register shadowing in kernel queue. |
| 1824 |
``userqnoshadowregs`` |
| 1825 |
Disable register shadowing in userqueue. This will also disable userqueue mcbp. |
| 1826 |
``userqjoblog`` |
| 1827 |
Print submitted, completed... job info for userqueues. |
| 1828 |
``novideotiling`` |
| 1829 |
Disable tiling for video. |
| 1830 |
``nodectier1`` |
| 1831 |
Disable tier1 for video decode. |
| 1832 |
``nodectier2`` |
| 1833 |
Disable tier2 for video decode. |
| 1834 |
``nodectier3`` |
| 1835 |
Disable tier3 for video decode. |
| 1836 |
``noenctier2`` |
| 1837 |
Disable tier2 for video encode. |
| 1838 |
``export_modifier`` |
| 1839 |
Export real modifier instead of DRM_FORMAT_MOD_INVALID to user. For example |
| 1840 |
by eglExportDMABUFImageQueryMESA. |
| 1841 |
|
| 1842 |
r600 driver environment variables |
| 1843 |
--------------------------------- |
| 1844 |
|
| 1845 |
.. envvar:: R600_DEBUG |
| 1846 |
|
| 1847 |
a comma-separated list of named flags, which do various things: |
| 1848 |
|
| 1849 |
``nocpdma`` |
| 1850 |
Disable CP DMA |
| 1851 |
``nosb`` |
| 1852 |
Disable sb backend for graphics shaders |
| 1853 |
``sbcl`` |
| 1854 |
Enable sb backend for compute shaders |
| 1855 |
``sbdry`` |
| 1856 |
Don't use optimized bytecode (just print the dumps) |
| 1857 |
``sbstat`` |
| 1858 |
Print optimization statistics for shaders |
| 1859 |
``sbdump`` |
| 1860 |
Print IR dumps after some optimization passes |
| 1861 |
``sbnofallback`` |
| 1862 |
Abort on errors instead of fallback |
| 1863 |
``sbdisasm`` |
| 1864 |
Use sb disassembler for shader dumps |
| 1865 |
``sbsafemath`` |
| 1866 |
Disable unsafe math optimizations |
| 1867 |
``nirsb`` |
| 1868 |
Enable NIR with SB optimizer |
| 1869 |
``tex`` |
| 1870 |
Print texture info |
| 1871 |
``nir`` |
| 1872 |
Enable experimental NIR shaders |
| 1873 |
``compute`` |
| 1874 |
Print compute info |
| 1875 |
``vm`` |
| 1876 |
Print virtual addresses when creating resources |
| 1877 |
``info`` |
| 1878 |
Print driver information |
| 1879 |
``fs`` |
| 1880 |
Print fetch shaders |
| 1881 |
``vs`` |
| 1882 |
Print vertex shaders |
| 1883 |
``gs`` |
| 1884 |
Print geometry shaders |
| 1885 |
``ps`` |
| 1886 |
Print pixel shaders |
| 1887 |
``cs`` |
| 1888 |
Print compute shaders |
| 1889 |
``tcs`` |
| 1890 |
Print tessellation control shaders |
| 1891 |
``tes`` |
| 1892 |
Print tessellation evaluation shaders |
| 1893 |
``noir`` |
| 1894 |
Don't print the LLVM IR |
| 1895 |
``notgsi`` |
| 1896 |
Don't print the TGSI |
| 1897 |
``noasm`` |
| 1898 |
Don't print disassembled shaders |
| 1899 |
``preoptir`` |
| 1900 |
Print the LLVM IR before initial optimizations |
| 1901 |
``checkir`` |
| 1902 |
Enable additional sanity checks on shader IR |
| 1903 |
``nooptvariant`` |
| 1904 |
Disable compiling optimized shader variants. |
| 1905 |
``testdma`` |
| 1906 |
Invoke SDMA tests and exit. |
| 1907 |
``testvmfaultcp`` |
| 1908 |
Invoke a CP VM fault test and exit. |
| 1909 |
``testvmfaultsdma`` |
| 1910 |
Invoke a SDMA VM fault test and exit. |
| 1911 |
``testvmfaultshader`` |
| 1912 |
Invoke a shader VM fault test and exit. |
| 1913 |
``nodma`` |
| 1914 |
Disable asynchronous DMA |
| 1915 |
``nohyperz`` |
| 1916 |
Disable Hyper-Z |
| 1917 |
``noinvalrange`` |
| 1918 |
Disable handling of INVALIDATE_RANGE map flags |
| 1919 |
``no2d`` |
| 1920 |
Disable 2D tiling |
| 1921 |
``notiling`` |
| 1922 |
Disable tiling |
| 1923 |
``switch_on_eop`` |
| 1924 |
Program WD/IA to switch on end-of-packet. |
| 1925 |
``forcedma`` |
| 1926 |
Use asynchronous DMA for all operations when possible. |
| 1927 |
``precompile`` |
| 1928 |
Compile one shader variant at shader creation. |
| 1929 |
``nowc`` |
| 1930 |
Disable GTT write combining |
| 1931 |
``check_vm`` |
| 1932 |
Check VM faults and dump debug info. |
| 1933 |
``unsafemath`` |
| 1934 |
Enable unsafe math shader optimizations |
| 1935 |
|
| 1936 |
.. envvar:: R600_DEBUG_COMPUTE |
| 1937 |
|
| 1938 |
if set to ``true``, various compute-related debug information will |
| 1939 |
be printed to stderr. Defaults to ``false``. |
| 1940 |
|
| 1941 |
.. envvar:: R600_DUMP_SHADERS |
| 1942 |
|
| 1943 |
if set to ``true``, NIR shaders will be printed to stderr. Defaults |
| 1944 |
to ``false``. |
| 1945 |
|
| 1946 |
.. envvar:: R600_HYPERZ |
| 1947 |
|
| 1948 |
If set to ``false``, disables HyperZ optimizations. Defaults to ``true``. |
| 1949 |
|
| 1950 |
.. envvar:: R600_NIR_DEBUG |
| 1951 |
|
| 1952 |
a comma-separated list of named flags, which do various things: |
| 1953 |
|
| 1954 |
``instr`` |
| 1955 |
Log all consumed nir instructions |
| 1956 |
``ir`` |
| 1957 |
Log created R600 IR |
| 1958 |
``cc`` |
| 1959 |
Log R600 IR to assembly code creation |
| 1960 |
``noerr`` |
| 1961 |
Don't log shader conversion errors |
| 1962 |
``si`` |
| 1963 |
Log shader info (non-zero values) |
| 1964 |
``reg`` |
| 1965 |
Log register allocation and lookup |
| 1966 |
``io`` |
| 1967 |
Log shader in and output |
| 1968 |
``ass`` |
| 1969 |
Log IR to assembly conversion |
| 1970 |
``flow`` |
| 1971 |
Log control flow instructions |
| 1972 |
``merge`` |
| 1973 |
Log register merge operations |
| 1974 |
``nomerge`` |
| 1975 |
Skip register merge step |
| 1976 |
``tex`` |
| 1977 |
Log texture ops |
| 1978 |
``trans`` |
| 1979 |
Log generic translation messages |
| 1980 |
|
| 1981 |
r300 driver environment variables |
| 1982 |
--------------------------------- |
| 1983 |
|
| 1984 |
.. envvar:: RADEON_DEBUG |
| 1985 |
|
| 1986 |
a comma-separated list of named flags, which do various things: |
| 1987 |
|
| 1988 |
``info`` |
| 1989 |
Print hardware info (printed by default on debug builds |
| 1990 |
``fp`` |
| 1991 |
Log fragment program compilation |
| 1992 |
``vp`` |
| 1993 |
Log vertex program compilation |
| 1994 |
``draw`` |
| 1995 |
Log draw calls |
| 1996 |
``swtcl`` |
| 1997 |
Log SWTCL-specific info |
| 1998 |
``rsblock`` |
| 1999 |
Log rasterizer registers |
| 2000 |
``psc`` |
| 2001 |
Log vertex stream registers |
| 2002 |
``tex`` |
| 2003 |
Log basic info about textures |
| 2004 |
``texalloc`` |
| 2005 |
Log texture mipmap tree info |
| 2006 |
``rs`` |
| 2007 |
Log rasterizer |
| 2008 |
``fb`` |
| 2009 |
Log framebuffer |
| 2010 |
``cbzb`` |
| 2011 |
Log fast color clear info |
| 2012 |
``hyperz`` |
| 2013 |
Log HyperZ info |
| 2014 |
``scissor`` |
| 2015 |
Log scissor info |
| 2016 |
``msaa`` |
| 2017 |
Log MSAA resources |
| 2018 |
``anisohq`` |
| 2019 |
Use high quality anisotropic filtering |
| 2020 |
``notiling`` |
| 2021 |
Disable tiling |
| 2022 |
``noimmd`` |
| 2023 |
Disable immediate mode |
| 2024 |
``noopt`` |
| 2025 |
Disable shader optimizations |
| 2026 |
``nocbzb`` |
| 2027 |
Disable fast color clear |
| 2028 |
``nozmask`` |
| 2029 |
Disable zbuffer compression |
| 2030 |
``nohiz`` |
| 2031 |
Disable hierarchical zbuffer |
| 2032 |
``nocmask`` |
| 2033 |
Disable AA compression and fast AA clear |
| 2034 |
``notcl`` |
| 2035 |
Disable hardware accelerated Transform/Clip/Lighting |
| 2036 |
``ieeemath`` |
| 2037 |
Force IEEE versions of VS math opcodes where applicable |
| 2038 |
and also IEEE handling of multiply by zero (R5xx only) |
| 2039 |
``ffmath`` |
| 2040 |
Force FF versions of VS math opcodes where applicable |
| 2041 |
and 0 * anything = 0 rules in FS |
| 2042 |
|
| 2043 |
|
| 2044 |
Asahi driver environment variables |
| 2045 |
---------------------------------- |
| 2046 |
|
| 2047 |
.. envvar:: ASAHI_MESA_DEBUG |
| 2048 |
|
| 2049 |
a comma-separated list of named flags, which do various things: |
| 2050 |
|
| 2051 |
``trace`` |
| 2052 |
Trace work submitted to the GPU to files, using the agxdecode |
| 2053 |
infrastructure. This produces a large volume of data, so should be used |
| 2054 |
with caution. The traces are written to ``agxdecode.dump``, |
| 2055 |
but this can be overridden using ``AGXDECODE_DUMP_FILE``. |
| 2056 |
``no16`` |
| 2057 |
Disable 16-bit floating point support. This may workaround application |
| 2058 |
bugs in certain OpenGL ES applications originally written for desktops. If |
| 2059 |
such applications are found in the wild, they should be fixed upstream (if |
| 2060 |
possible) or added in the Mesa-wide driconf (if closed source). |
| 2061 |
``dirty`` |
| 2062 |
In debug builds only: disable dirty tracking optimizations. |
| 2063 |
``nowc`` |
| 2064 |
Disable write-combining (force all allocations to be write-through). This |
| 2065 |
may be useful for diagnosing certain performance issues. Note imported |
| 2066 |
buffers may still be write-combined. |
| 2067 |
|
| 2068 |
.. envvar:: AGX_MESA_DEBUG |
| 2069 |
|
| 2070 |
a comma-separated list of named flags, which do various things: |
| 2071 |
|
| 2072 |
``shaders`` |
| 2073 |
Print shaders being compiled at various stages in the pipeline. |
| 2074 |
``shaderdb`` |
| 2075 |
Print statistics about compiled shaders. |
| 2076 |
``verbose`` |
| 2077 |
Disassemble in verbose mode, including additional information that may be |
| 2078 |
useful for debugging. |
| 2079 |
``internal`` |
| 2080 |
Include even internal shaders (as produced for clears, blits, and such) |
| 2081 |
when printing shaders. Without this flag, internal shaders are ignored by |
| 2082 |
the shaders and shaderdb flags. |
| 2083 |
``novalidate`` |
| 2084 |
In debug builds only: skip internal intermediate representation validation. |
| 2085 |
``noopt`` |
| 2086 |
Disable various backend optimizations. |
| 2087 |
|
| 2088 |
.. _imagination env-vars: |
| 2089 |
|
| 2090 |
PowerVR driver environment variables |
| 2091 |
------------------------------------------------ |
| 2092 |
|
| 2093 |
.. envvar:: PVR_DEBUG |
| 2094 |
|
| 2095 |
A comma-separated list of debug options. Use ``PVR_DEBUG=help`` to |
| 2096 |
print a list of available options. |
| 2097 |
|
| 2098 |
.. envvar:: ROGUE_DEBUG |
| 2099 |
|
| 2100 |
a comma-separated list of named flags for the Rogue compiler, |
| 2101 |
which do various things: |
| 2102 |
|
| 2103 |
``nir`` |
| 2104 |
Print the input NIR to stdout. |
| 2105 |
``nir_passes`` |
| 2106 |
Print the output of each NIR pass to stdout. |
| 2107 |
``ir`` |
| 2108 |
Print the input Rogue IR to stdout. |
| 2109 |
``ir_passes`` |
| 2110 |
Print the output of each Rogue IR pass to stdout. |
| 2111 |
``ir_details`` |
| 2112 |
Includes additional details when printing Rogue IR. |
| 2113 |
``vld_skip`` |
| 2114 |
Skips the compiler validation step. |
| 2115 |
``vld_nonfatal`` |
| 2116 |
Prints all the validation errors instead of stopping after the first. |
| 2117 |
|
| 2118 |
.. envvar:: ROGUE_COLOR |
| 2119 |
|
| 2120 |
if set to ``auto`` Rogue IR will be colorized if stdout is not a pipe. |
| 2121 |
Color is forced off if set to ``off``/``0`` or on if set to ``on``/``1``. |
| 2122 |
Defaults to ``auto``. |
| 2123 |
|
| 2124 |
.. envvar:: PCO_DEBUG |
| 2125 |
|
| 2126 |
A comma-separated list of named flags for the PCO compiler, |
| 2127 |
which control various compilation options: |
| 2128 |
|
| 2129 |
``val_skip`` |
| 2130 |
Skip IR validation. |
| 2131 |
|
| 2132 |
``reindex`` |
| 2133 |
Reindex IR at the end of each pass. |
| 2134 |
|
| 2135 |
``no_pred_cf`` |
| 2136 |
No predicated execution in CF. |
| 2137 |
|
| 2138 |
.. envvar:: PCO_SKIP_PASSES |
| 2139 |
|
| 2140 |
A comma-separated list of passes to skip. |
| 2141 |
|
| 2142 |
.. envvar:: PCO_PRINT |
| 2143 |
|
| 2144 |
A comma-separated list of named flags for the PCO compiler, |
| 2145 |
which control debug printing options: |
| 2146 |
|
| 2147 |
``vs`` |
| 2148 |
Print the IR for vertex shaders. |
| 2149 |
``fs`` |
| 2150 |
Print the IR for fragment shaders. |
| 2151 |
``cs`` |
| 2152 |
Print the IR for compute shaders. |
| 2153 |
``all`` |
| 2154 |
Print the IR for all shaders. |
| 2155 |
``internal`` |
| 2156 |
Print the IR for internal shader types. |
| 2157 |
``passes`` |
| 2158 |
Print the IR after each pass. |
| 2159 |
``nir`` |
| 2160 |
Print the resulting NIR. |
| 2161 |
``binary`` |
| 2162 |
Print the resulting binary. |
| 2163 |
``verbose`` |
| 2164 |
Print verbose IR. |
| 2165 |
``ra`` |
| 2166 |
Print register alloc info. |
| 2167 |
|
| 2168 |
.. envvar:: PCO_COLOR |
| 2169 |
|
| 2170 |
if set to ``auto`` PCO IR will be colorized if stdout is not a pipe. |
| 2171 |
Color is forced off if set to ``off``/``0`` or on if set to ``on``/``1``. |
| 2172 |
Defaults to ``auto``. |
| 2173 |
|
| 2174 |
i915 driver environment variables |
| 2175 |
--------------------------------- |
| 2176 |
|
| 2177 |
.. envvar:: I915_DEBUG |
| 2178 |
|
| 2179 |
Debug flags for the i915 driver. |
| 2180 |
|
| 2181 |
.. envvar:: I915_NO_HW |
| 2182 |
|
| 2183 |
Stop the i915 driver from submitting commands to the hardware. |
| 2184 |
|
| 2185 |
.. envvar:: I915_DUMP_CMD |
| 2186 |
|
| 2187 |
Dump all commands going to the hardware. |
| 2188 |
|
| 2189 |
Freedreno driver environment variables |
| 2190 |
-------------------------------------- |
| 2191 |
|
| 2192 |
.. envvar:: FD_MESA_DEBUG |
| 2193 |
|
| 2194 |
Debug flags for the Freedreno driver. |
| 2195 |
|
| 2196 |
---- |
| 2197 |
|
| 2198 |
Other Gallium drivers have their own environment variables. These may |
| 2199 |
change frequently so the source code should be consulted for details. |
| 2200 |
|
| 2201 |
|
| 2202 |
Vulkan loader environment variables |
| 2203 |
----------------------------------- |
| 2204 |
|
| 2205 |
These variable are handled by `Khronos' Vulkan loader |
| 2206 |
<https://github.com/KhronosGroup/Vulkan-Loader>`__, *not by Mesa*, but they |
| 2207 |
are documented here as we reference them in other places in our docs. |
| 2208 |
|
| 2209 |
.. envvar:: VK_DRIVER_FILES |
| 2210 |
|
| 2211 |
Force the loader to use the specific driver JSON files. The value contains |
| 2212 |
a list of delimited full path listings to driver JSON Manifest files |
| 2213 |
and/or paths to folders containing driver JSON files. |
| 2214 |
|
| 2215 |
See `Vulkan loader docs on environment variables`_. |
| 2216 |
|
| 2217 |
.. envvar:: VK_LOADER_LAYERS_ENABLE |
| 2218 |
|
| 2219 |
A comma-delimited list of globs to search for in known layers and used to |
| 2220 |
select only the layers whose layer name matches one or more of the |
| 2221 |
provided globs. |
| 2222 |
Known layers are those which are found by the loader taking into account |
| 2223 |
default search paths and other environment variables (like VK_LAYER_PATH). |
| 2224 |
|
| 2225 |
See `Vulkan loader docs on environment variables`_. |
| 2226 |
|
| 2227 |
.. envvar:: VK_ICD_FILENAMES |
| 2228 |
|
| 2229 |
`Deprecated`_, replaced by :envvar:`VK_DRIVER_FILES`. |
| 2230 |
|
| 2231 |
.. envvar:: VK_INSTANCE_LAYERS |
| 2232 |
|
| 2233 |
`Deprecated`_, replaced by :envvar:`VK_LOADER_LAYERS_ENABLE`. |
| 2234 |
|
| 2235 |
.. _Vulkan loader docs on environment variables: https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#table-of-debug-environment-variables |
| 2236 |
.. _Deprecated: https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#deprecated-environment-variables |