2020-06-12 20:09:42 +02:00
|
|
|
Environment Variables
|
|
|
|
|
=====================
|
|
|
|
|
|
|
|
|
|
Normally, no environment variables need to be set. Most of the
|
|
|
|
|
environment variables used by Mesa/Gallium are for debugging purposes,
|
|
|
|
|
but they can sometimes be useful for debugging end-user issues.
|
|
|
|
|
|
2025-10-17 14:38:11 -06:00
|
|
|
Android System Properties
|
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
|
|
Android (generally) uses system properties rather than environment variables to
|
|
|
|
|
control Mesa/Gallium behavior, although there are some exceptions to this. See
|
|
|
|
|
:ref:`Android System Properties <android-android-system-properties>` for
|
|
|
|
|
details on naming and how to set and get system property values.
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
LibGL environment variables
|
|
|
|
|
---------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: LIBGL_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
If defined debug information will be printed to stderr. If set to
|
|
|
|
|
``verbose`` additional information will be printed.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LIBGL_ALWAYS_INDIRECT
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set to ``true``, forces an indirect rendering context/connection.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LIBGL_ALWAYS_SOFTWARE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set to ``true``, always use software rendering
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LIBGL_NO_DRAWARRAYS
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set to ``true``, do not use DrawArrays GLX protocol (for
|
|
|
|
|
debugging)
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2024-03-12 14:59:55 -04:00
|
|
|
.. envvar:: LIBGL_KOPPER_DISABLE
|
|
|
|
|
|
2024-06-24 19:07:29 +02:00
|
|
|
disable Vulkan swapchains with Zink if set to ``true``.
|
2024-03-12 14:59:55 -04:00
|
|
|
In general, this should not be used unless you know what you are
|
|
|
|
|
doing. Some examples of "knowing what you are doing" include:
|
|
|
|
|
- using a VK driver which has no WSI implementation for your display server
|
|
|
|
|
- profiling the DRI frontend against your VK driver's WSI implementation
|
|
|
|
|
|
|
|
|
|
.. envvar:: LIBGL_KOPPER_DRI2
|
|
|
|
|
|
2025-07-07 10:13:06 -04:00
|
|
|
if set to ``true``, allow loading Zink even if X11 does not support
|
|
|
|
|
explicit DRM format modifiers. In general, this should not be used
|
|
|
|
|
unless you know what you are doing. Some examples of "knowing what you
|
|
|
|
|
are doing" include:
|
2024-03-12 14:59:55 -04:00
|
|
|
- running xrdp
|
|
|
|
|
- using a VK driver which doesn't support modifiers
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
Core Mesa environment variables
|
|
|
|
|
-------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_NO_ERROR
|
|
|
|
|
|
2022-11-08 12:05:36 +01:00
|
|
|
if set to 1, error checking is disabled as per :ext:`GL_KHR_no_error`.
|
|
|
|
|
This will result in undefined behavior for invalid use of the API, but
|
2020-06-12 20:09:42 +02:00
|
|
|
can reduce CPU use for apps that are known to be error free.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, error messages are printed to stderr. For example, if the
|
|
|
|
|
application generates a ``GL_INVALID_ENUM`` error, a corresponding
|
|
|
|
|
error message indicating where the error occurred, and possibly why,
|
2021-06-01 11:30:08 +02:00
|
|
|
will be printed to stderr. For release builds, :envvar:`MESA_DEBUG`
|
|
|
|
|
defaults to off (no debug output). :envvar:`MESA_DEBUG` accepts the
|
2020-06-12 20:09:42 +02:00
|
|
|
following comma-separated list of named flags, which adds extra
|
2021-06-01 11:30:08 +02:00
|
|
|
behavior to just set :envvar:`MESA_DEBUG` to ``1``:
|
2020-06-12 20:09:42 +02:00
|
|
|
|
|
|
|
|
``silent``
|
|
|
|
|
turn off debug messages. Only useful for debug builds.
|
|
|
|
|
``flush``
|
|
|
|
|
flush after each drawing command
|
|
|
|
|
``incomplete_tex``
|
|
|
|
|
extra debug messages when a texture is incomplete
|
|
|
|
|
``incomplete_fbo``
|
2020-09-30 15:03:03 +02:00
|
|
|
extra debug messages when a FBO is incomplete
|
2020-06-12 20:09:42 +02:00
|
|
|
``context``
|
|
|
|
|
create a debug context (see ``GLX_CONTEXT_DEBUG_BIT_ARB``) and
|
|
|
|
|
print error and performance messages to stderr (or
|
|
|
|
|
``MESA_LOG_FILE``).
|
|
|
|
|
|
2023-01-18 17:10:12 -08:00
|
|
|
.. envvar:: MESA_PROCESS_NAME
|
|
|
|
|
|
|
|
|
|
if set, overrides the process name string used internally for various
|
|
|
|
|
purposes (e.g. for driconf option matching, logging, artifact storage,
|
|
|
|
|
etc.).
|
|
|
|
|
|
2025-09-05 11:53:59 -04:00
|
|
|
.. envvar:: MESA_LOG_LEVEL
|
|
|
|
|
|
|
|
|
|
specifies the maximum log level
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_LOG_FILE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies a file name for logging all errors, warnings, etc., rather
|
|
|
|
|
than stderr
|
2022-11-08 08:50:34 +01:00
|
|
|
|
util/log: Add MESA_LOG_PREFIX environment variable to control log prefixes
Add a new MESA_LOG_PREFIX environment variable that allows fine-grained
control over log prefixes in file logger output on Linux. The variable
accepts a comma-separated list of options:
- "tag": include the tag prefix (e.g., "MESA:")
- "level": include the level prefix (e.g., "info:")
By default, both tag and level are included. Users can customize the
prefix by setting MESA_LOG_PREFIX to any combination (e.g., "tag",
"level", "tag,level", or empty string for no prefix), making the output
more flexible and readable for different use cases.
Other loggers (syslog, Android logcat, Windows debugger) are unaffected
and continue to include tag and level information as appropriate for
their format.
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38217>
2025-11-05 20:56:14 +01:00
|
|
|
.. envvar:: MESA_LOG_PREFIX
|
|
|
|
|
|
|
|
|
|
specifies what to to include in the log prefix (linux only) - default is ``tag,level``
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_EXTENSION_OVERRIDE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
can be used to enable/disable extensions. A value such as
|
|
|
|
|
``GL_EXT_foo -GL_EXT_bar`` will enable the ``GL_EXT_foo`` extension
|
2021-10-12 11:53:28 +02:00
|
|
|
and disable the ``GL_EXT_bar`` extension. Note that this will override
|
|
|
|
|
extensions override configured using driconf.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_EXTENSION_MAX_YEAR
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
The ``GL_EXTENSIONS`` string returned by Mesa is sorted by extension
|
|
|
|
|
year. If this variable is set to year X, only extensions defined on
|
|
|
|
|
or before year X will be reported. This is to work-around a bug in
|
|
|
|
|
some games where the extension string is copied into a fixed-size
|
|
|
|
|
buffer without truncating. If the extension string is too long, the
|
|
|
|
|
buffer overrun can cause the game to crash. This is a work-around for
|
|
|
|
|
that.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_GL_VERSION_OVERRIDE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
changes the value returned by ``glGetString(GL_VERSION)`` and
|
|
|
|
|
possibly the GL API type.
|
|
|
|
|
|
|
|
|
|
- The format should be ``MAJOR.MINOR[FC|COMPAT]``
|
|
|
|
|
- ``FC`` is an optional suffix that indicates a forward compatible
|
|
|
|
|
context. This is only valid for versions >= 3.0.
|
|
|
|
|
- ``COMPAT`` is an optional suffix that indicates a compatibility
|
2022-11-08 12:05:36 +01:00
|
|
|
context or :ext:`GL_ARB_compatibility` support. This is only valid
|
2020-06-12 20:09:42 +02:00
|
|
|
for versions >= 3.1.
|
|
|
|
|
- GL versions <= 3.0 are set to a compatibility (non-Core) profile
|
|
|
|
|
- GL versions = 3.1, depending on the driver, it may or may not have
|
2022-11-08 12:05:36 +01:00
|
|
|
the :ext:`GL_ARB_compatibility` extension enabled.
|
2020-06-12 20:09:42 +02:00
|
|
|
- GL versions >= 3.2 are set to a Core profile
|
|
|
|
|
- Examples:
|
|
|
|
|
|
|
|
|
|
``2.1``
|
|
|
|
|
select a compatibility (non-Core) profile with GL version 2.1.
|
|
|
|
|
``3.0``
|
|
|
|
|
select a compatibility (non-Core) profile with GL version 3.0.
|
|
|
|
|
``3.0FC``
|
|
|
|
|
select a Core+Forward Compatible profile with GL version 3.0.
|
|
|
|
|
``3.1``
|
2022-11-08 12:05:36 +01:00
|
|
|
select GL version 3.1 with :ext:`GL_ARB_compatibility` enabled
|
|
|
|
|
per the driver default.
|
2020-06-12 20:09:42 +02:00
|
|
|
``3.1FC``
|
|
|
|
|
select GL version 3.1 with forward compatibility and
|
2022-11-08 12:05:36 +01:00
|
|
|
:ext:`GL_ARB_compatibility` disabled.
|
2020-06-12 20:09:42 +02:00
|
|
|
``3.1COMPAT``
|
2022-11-08 12:05:36 +01:00
|
|
|
select GL version 3.1 with :ext:`GL_ARB_compatibility` enabled.
|
2020-06-12 20:09:42 +02:00
|
|
|
``X.Y``
|
|
|
|
|
override GL version to X.Y without changing the profile.
|
|
|
|
|
``X.YFC``
|
|
|
|
|
select a Core+Forward Compatible profile with GL version X.Y.
|
|
|
|
|
``X.YCOMPAT``
|
|
|
|
|
select a Compatibility profile with GL version X.Y.
|
|
|
|
|
|
|
|
|
|
- Mesa may not really implement all the features of the given
|
|
|
|
|
version. (for developers only)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_GLES_VERSION_OVERRIDE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
changes the value returned by ``glGetString(GL_VERSION)`` for OpenGL
|
|
|
|
|
ES.
|
|
|
|
|
|
|
|
|
|
- The format should be ``MAJOR.MINOR``
|
|
|
|
|
- Examples: ``2.0``, ``3.0``, ``3.1``
|
|
|
|
|
- Mesa may not really implement all the features of the given
|
|
|
|
|
version. (for developers only)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_GLSL_VERSION_OVERRIDE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
changes the value returned by
|
|
|
|
|
``glGetString(GL_SHADING_LANGUAGE_VERSION)``. Valid values are
|
|
|
|
|
integers, such as ``130``. Mesa will not really implement all the
|
|
|
|
|
features of the given language version if it's higher than what's
|
|
|
|
|
normally reported. (for developers only)
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-01-19 10:48:59 -08:00
|
|
|
.. envvar:: MESA_DRICONF_EXECUTABLE_OVERRIDE
|
|
|
|
|
|
|
|
|
|
if set, overrides the "executable" string used specifically for driconf
|
|
|
|
|
option matching. This takes higher precedence over more general process
|
|
|
|
|
name override (e.g. MESA_PROCESS_NAME).
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_SHADER_CACHE_DISABLE
|
|
|
|
|
|
2022-03-14 18:47:37 +01:00
|
|
|
if set to ``true``, disables the on-disk shader cache. If set to
|
|
|
|
|
``false``, enables the on-disk shader cache when it is disabled by
|
2023-08-23 11:25:26 -07:00
|
|
|
default. Note that EGL_ANDROID_blob_cache is still enabled even
|
|
|
|
|
if on-disk shader cache is disabled.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_SHADER_CACHE_MAX_SIZE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, determines the maximum size of the on-disk cache of compiled
|
2022-03-14 18:47:37 +01:00
|
|
|
shader programs. Should be set to a number optionally followed by
|
2020-06-12 20:09:42 +02:00
|
|
|
``K``, ``M``, or ``G`` to specify a size in kilobytes, megabytes, or
|
|
|
|
|
gigabytes. By default, gigabytes will be assumed. And if unset, a
|
2019-06-04 10:39:58 +02:00
|
|
|
maximum size of 1GB will be used.
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
A separate cache might be created for each architecture that Mesa is
|
|
|
|
|
installed for on your system. For example under the default settings
|
|
|
|
|
you may end up with a 1GB cache for x86_64 and another 1GB cache for
|
|
|
|
|
i386.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_SHADER_CACHE_DIR
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, determines the directory to be used for the on-disk cache of
|
2025-01-05 17:03:52 +01:00
|
|
|
compiled shader programs. If set then the cache will be stored in
|
2025-03-25 23:27:13 +03:00
|
|
|
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache``. If this variable is not
|
2025-01-05 17:03:52 +01:00
|
|
|
set, then the cache will be stored in
|
2025-03-25 23:27:13 +03:00
|
|
|
``$XDG_CACHE_HOME/mesa_shader_cache`` (if that variable is set), or else
|
|
|
|
|
within ``.cache/mesa_shader_cache`` within the user's home directory.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_SHADER_CACHE_SHOW_STATS
|
|
|
|
|
|
2022-11-10 11:36:46 +00:00
|
|
|
if set to ``true``, keeps hit/miss statistics for the shader cache.
|
|
|
|
|
These statistics are printed when the app terminates.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2022-11-03 18:12:23 +00:00
|
|
|
.. envvar:: MESA_DISK_CACHE_SINGLE_FILE
|
|
|
|
|
|
|
|
|
|
if set to 1, enables the single file Fossilize DB on-disk shader
|
2023-04-06 16:57:31 +02:00
|
|
|
cache implementation instead of the default Mesa-DB cache
|
|
|
|
|
implementation. This implementation allows for loading of precompiled
|
|
|
|
|
cache DBs via :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS` or
|
2022-10-24 20:03:56 +00:00
|
|
|
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST`. This
|
2022-11-03 18:12:23 +00:00
|
|
|
implementation does not support cache size limits via
|
2025-01-05 17:03:52 +01:00
|
|
|
:envvar:`MESA_SHADER_CACHE_MAX_SIZE`. If :envvar:`MESA_SHADER_CACHE_DIR`
|
|
|
|
|
is set, the cache will be stored in
|
|
|
|
|
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache_sf``, or else within
|
|
|
|
|
``$XDG_CACHE_HOME/mesa_shader_cache_sf`` (if that variable is set)
|
2022-11-03 18:12:23 +00:00
|
|
|
or else within ``.cache/mesa_shader_cache_sf`` within the user's home
|
|
|
|
|
directory.
|
|
|
|
|
|
2023-04-06 16:57:31 +02:00
|
|
|
.. envvar:: MESA_DISK_CACHE_MULTI_FILE
|
|
|
|
|
|
2025-03-25 23:27:13 +03:00
|
|
|
if set to 1 (set by default), enables the multi file on-disk
|
|
|
|
|
shader cache implementation. This implementation increases the overall
|
|
|
|
|
disk usage.
|
2025-01-05 17:03:52 +01:00
|
|
|
If :envvar:`MESA_SHADER_CACHE_DIR` is set, the cache will be stored in
|
|
|
|
|
``$MESA_SHADER_CACHE_DIR/mesa_shader_cache``, or else within
|
|
|
|
|
``$XDG_CACHE_HOME/mesa_shader_cache`` (if that variable is set)
|
2023-04-06 16:57:31 +02:00
|
|
|
or else within ``.cache/mesa_shader_cache`` within the user's home
|
|
|
|
|
directory.
|
|
|
|
|
|
2022-11-03 18:12:23 +00:00
|
|
|
.. envvar:: MESA_DISK_CACHE_READ_ONLY_FOZ_DBS
|
|
|
|
|
|
2023-03-14 11:55:29 +01:00
|
|
|
if set with :envvar:`MESA_DISK_CACHE_SINGLE_FILE` enabled, references
|
2022-11-03 18:12:23 +00:00
|
|
|
a string of comma separated file paths to read only Fossilize DB
|
|
|
|
|
shader caches for loading at initialization. The file paths are
|
|
|
|
|
relative to the cache directory and do not include suffixes,
|
|
|
|
|
referencing both the cache DB and its index file. E.g.
|
2023-03-14 11:57:36 +01:00
|
|
|
``MESA_DISK_CACHE_SINGLE_FILE=filename1`` refers to ``filename1.foz``
|
|
|
|
|
and ``filename1_idx.foz``. A limit of 8 DBs can be loaded and this limit
|
2024-04-01 11:41:14 +01:00
|
|
|
is shared with :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST`.
|
2022-11-03 18:12:23 +00:00
|
|
|
|
2025-03-25 23:27:13 +03:00
|
|
|
.. envvar:: MESA_DISK_CACHE_DATABASE
|
|
|
|
|
|
|
|
|
|
if set to 1, enables the Mesa-DB single file on-disk shader cache
|
|
|
|
|
implementation instead of the default multi-file cache implementation.
|
|
|
|
|
Like :envvar:`MESA_DISK_CACHE_SINGLE_FILE`, Mesa-DB reduces overall
|
|
|
|
|
disk usage but Mesa-DB supports cache size limits via
|
|
|
|
|
:envvar:`MESA_SHADER_CACHE_MAX_SIZE`. If
|
|
|
|
|
:envvar:`MESA_SHADER_CACHE_DIR` is not set, the cache will be stored
|
|
|
|
|
in ``$XDG_CACHE_HOME/mesa_shader_cache_db`` (if that variable is set)
|
|
|
|
|
or else within ``.cache/mesa_shader_cache_db`` within the user's home
|
|
|
|
|
directory.
|
|
|
|
|
|
2022-10-24 13:24:16 +03:00
|
|
|
.. envvar:: MESA_DISK_CACHE_DATABASE_NUM_PARTS
|
|
|
|
|
|
|
|
|
|
specifies number of mesa-db cache parts, default is 50.
|
|
|
|
|
|
|
|
|
|
.. envvar:: MESA_DISK_CACHE_DATABASE_EVICTION_SCORE_2X_PERIOD
|
|
|
|
|
|
|
|
|
|
Mesa-DB cache eviction algorithm calculates weighted score for the
|
|
|
|
|
cache items. The weight is doubled based on the last access time of
|
|
|
|
|
cache entry. By default period of weight doubling is set to one month.
|
|
|
|
|
Period value is given in seconds.
|
|
|
|
|
|
2022-10-24 20:03:56 +00:00
|
|
|
.. envvar:: MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST
|
|
|
|
|
|
|
|
|
|
if set with :envvar:`MESA_DISK_CACHE_SINGLE_FILE` enabled, references
|
|
|
|
|
a text file that contains a new-line separated list of read only
|
|
|
|
|
Fossilize DB shader caches to load. The list file is modifiable at
|
|
|
|
|
runtime to allow for loading read only caches after initialization
|
|
|
|
|
unlike :envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`. This variable
|
|
|
|
|
takes an absolute path to the list file. The list file must exist at
|
|
|
|
|
initialization for updating to occur. Cache files in the list take
|
|
|
|
|
relative paths to the current cache directory like
|
|
|
|
|
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`. A limit of 8 DBs can be
|
|
|
|
|
loaded and this limit is shared with
|
|
|
|
|
:envvar:`MESA_DISK_CACHE_READ_ONLY_FOZ_DBS`.
|
|
|
|
|
|
2023-01-10 01:17:37 +03:00
|
|
|
.. envvar:: MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ
|
|
|
|
|
|
2022-11-03 18:12:23 +00:00
|
|
|
if set to 1, enables simultaneous use of :abbr:`RW (read-write)` and
|
|
|
|
|
:abbr:`RW (read-write)` Fossilize DB caches. At first, data will be
|
|
|
|
|
retrieved from the RO Fossilize cache. If data isn't found in the RO
|
|
|
|
|
cache, then it will be retrieved from the RW cache.
|
2023-01-10 01:17:37 +03:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_GLSL
|
|
|
|
|
|
2020-06-15 12:31:36 +02:00
|
|
|
:ref:`shading language compiler options <envvars>`
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_NO_MINMAX_CACHE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
when set, the minmax index cache is globally disabled.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_SHADER_CAPTURE_PATH
|
|
|
|
|
|
2020-06-15 12:31:36 +02:00
|
|
|
see :ref:`Capturing Shaders <capture>`
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_SHADER_DUMP_PATH
|
|
|
|
|
|
|
|
|
|
see :ref:`Experimenting with Shader Replacements <replacement>`
|
|
|
|
|
|
|
|
|
|
.. envvar:: MESA_SHADER_READ_PATH
|
|
|
|
|
|
|
|
|
|
see :ref:`Experimenting with Shader Replacements <replacement>`
|
|
|
|
|
|
2025-07-29 21:58:26 +00:00
|
|
|
.. envvar:: MESA_SPIRV_DUMP_PATH
|
|
|
|
|
|
|
|
|
|
see :ref:`SPIR-V Shader Capture <spirv_capture>`
|
|
|
|
|
|
|
|
|
|
.. envvar:: MESA_SPIRV_READ_PATH
|
|
|
|
|
|
|
|
|
|
see :ref:`SPIR-V Shader Replacement <spirv_replacement>`
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_VK_VERSION_OVERRIDE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
changes the Vulkan physical device version as returned in
|
|
|
|
|
``VkPhysicalDeviceProperties::apiVersion``.
|
|
|
|
|
|
|
|
|
|
- The format should be ``MAJOR.MINOR[.PATCH]``
|
|
|
|
|
- This will not let you force a version higher than the driver's
|
|
|
|
|
instance version as advertised by ``vkEnumerateInstanceVersion``
|
|
|
|
|
- This can be very useful for debugging but some features may not be
|
|
|
|
|
implemented correctly. (For developers only)
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_VK_WSI_PRESENT_MODE
|
|
|
|
|
|
2021-06-17 10:23:24 +02:00
|
|
|
overrides the WSI present mode clients specify in
|
|
|
|
|
``VkSwapchainCreateInfoKHR::presentMode``. Values can be ``fifo``,
|
|
|
|
|
``relaxed``, ``mailbox`` or ``immediate``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-04-13 20:20:22 +03:00
|
|
|
.. envvar:: MESA_VK_WSI_HEADLESS_SWAPCHAIN
|
|
|
|
|
|
|
|
|
|
Forces all swapchains to be headless (no rendering will be display
|
|
|
|
|
in the swapchain's window).
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_VK_ABORT_ON_DEVICE_LOSS
|
|
|
|
|
|
2021-10-19 18:32:28 -05:00
|
|
|
causes the Vulkan driver to call abort() immediately after detecting a
|
|
|
|
|
lost device. This is extremely useful when testing as it prevents the
|
|
|
|
|
test suite from continuing on with a lost device.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2025-10-23 15:29:47 -04:00
|
|
|
.. envvar:: MESA_VK_VALIDATE_SHADER_BINARIES
|
|
|
|
|
|
|
|
|
|
enables extra validation of shader and pipeline binaries to ensure
|
|
|
|
|
consistency of driver binaries.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_VK_ENABLE_SUBMIT_THREAD
|
|
|
|
|
|
2021-10-19 14:27:25 -05:00
|
|
|
for Vulkan drivers which support real timeline semaphores, this forces
|
|
|
|
|
them to use a submit thread from the beginning, regardless of whether or
|
|
|
|
|
not they ever see a wait-before-signal condition.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-01-16 17:05:39 -08:00
|
|
|
.. envvar:: MESA_VK_DEVICE_SELECT_DEBUG
|
|
|
|
|
|
|
|
|
|
print debug info about device selection decision-making
|
|
|
|
|
|
2023-05-20 20:21:50 +02:00
|
|
|
.. envvar:: MESA_VK_TRACE
|
|
|
|
|
|
|
|
|
|
A comma-separated list of trace types used for offline analysis. The
|
|
|
|
|
option names are equal to the file extension. Traces are dumped into ``/tmp``.
|
2023-08-16 17:16:07 +02:00
|
|
|
Captures can be triggered by pressing ``F1`` with the application window
|
2023-05-20 20:21:50 +02:00
|
|
|
focused (Currently X11 only) or via :envvar:`MESA_VK_TRACE_FRAME` and
|
|
|
|
|
:envvar:`MESA_VK_TRACE_TRIGGER`.
|
|
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
|
|
* - File extension
|
|
|
|
|
- Offline analysis tool
|
|
|
|
|
- Supported drivers
|
|
|
|
|
* - ``rmv``
|
|
|
|
|
- Radeon Memory Visualizer
|
|
|
|
|
- ``RADV``
|
|
|
|
|
* - ``rgp``
|
|
|
|
|
- Radeon GPU Profiler
|
|
|
|
|
- ``RADV``
|
|
|
|
|
* - ``rra``
|
|
|
|
|
- Radeon Raytracing Analyzer
|
|
|
|
|
- ``RADV``
|
2024-01-28 16:32:29 +01:00
|
|
|
* - ``ctxroll``
|
|
|
|
|
- Context rolls
|
|
|
|
|
- ``RADV``
|
2023-05-20 20:21:50 +02:00
|
|
|
|
|
|
|
|
- Creating RMV captures requires the ``scripts/setup.sh`` script in the
|
|
|
|
|
Radeon Developer Tools folder to be run beforehand
|
|
|
|
|
|
2024-11-27 10:47:09 +01:00
|
|
|
.. envvar:: MESA_VK_TRACE_PER_SUBMIT
|
|
|
|
|
|
|
|
|
|
Enables per-submit capture for compute-only workload. Disabled by default
|
|
|
|
|
and only valid with MESA_VK_TRACE=rgp.
|
|
|
|
|
|
2023-05-20 20:21:50 +02:00
|
|
|
.. envvar:: MESA_VK_TRACE_FRAME
|
|
|
|
|
|
|
|
|
|
Specifies a frame index at which a trace capture is automatically triggered.
|
2024-11-27 10:47:09 +01:00
|
|
|
Ignored when MESA_VK_TRACE_PER_SUBMIT is enabled.
|
2023-05-20 20:21:50 +02:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_VK_TRACE_TRIGGER
|
|
|
|
|
|
|
|
|
|
Specifies a trigger file. Creating the file triggers the capture. (e.g.
|
|
|
|
|
``export MESA_VK_TRACE_TRIGGER=/tmp/trigger`` and then ``touch /tmp/trigger``)
|
2024-11-27 10:47:09 +01:00
|
|
|
Ignored when MESA_VK_TRACE_PER_SUBMIT is enabled.
|
2023-05-20 20:21:50 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_LOADER_DRIVER_OVERRIDE
|
|
|
|
|
|
2020-09-29 14:38:03 +00:00
|
|
|
chooses a different driver binary such as ``etnaviv`` or ``zink``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-01-16 17:05:39 -08:00
|
|
|
.. envvar:: DRI_PRIME_DEBUG
|
|
|
|
|
|
|
|
|
|
print debug info about device selection decision-making
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: DRI_PRIME
|
|
|
|
|
|
2022-08-01 11:00:41 +02:00
|
|
|
the default GPU is the one used by Wayland/Xorg or the one connected to a
|
|
|
|
|
display. This variable allows to select a different GPU. It applies to OpenGL
|
|
|
|
|
and Vulkan (in this case "select" means the GPU will be first in the reported
|
|
|
|
|
physical devices list). The supported syntaxes are:
|
|
|
|
|
|
2023-01-12 14:07:08 +01:00
|
|
|
- ``DRI_PRIME=N``: selects the Nth non-default GPU (N > 0).
|
2022-08-01 11:00:41 +02:00
|
|
|
- ``DRI_PRIME=pci-0000_02_00_0``: selects the GPU connected to this PCIe bus
|
2023-08-17 12:41:42 +02:00
|
|
|
- ``DRI_PRIME=vendor_id:device_id``: selects the first GPU matching these ids.
|
|
|
|
|
|
|
|
|
|
For Vulkan it's possible to append ``!``, in which case only the selected GPU
|
2023-04-26 14:10:20 +02:00
|
|
|
will be exposed to the application (e.g.: DRI_PRIME=1!).
|
2022-08-01 11:00:41 +02:00
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
|
|
``lspci -nn | grep VGA`` can be used to know the PCIe bus or ids to use.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2023-03-09 08:52:05 +01:00
|
|
|
.. envvar:: DRIRC_CONFIGDIR
|
|
|
|
|
|
|
|
|
|
If set, overrides the global search-directories used when searching for
|
|
|
|
|
drirc config files. The user-local one will still be used. Mostly useful for
|
|
|
|
|
internal debugging.
|
|
|
|
|
|
2020-07-09 00:52:27 +02:00
|
|
|
NIR passes environment variables
|
|
|
|
|
--------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
|
|
|
|
The following are only applicable for drivers that uses NIR, as they
|
2021-06-01 11:31:15 +02:00
|
|
|
modify the behavior for the common ``NIR_PASS`` and ``NIR_PASS_V`` macros,
|
|
|
|
|
that wrap calls to NIR lowering/optimizations.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: NIR_DEBUG
|
|
|
|
|
|
2021-11-17 16:10:52 +01:00
|
|
|
a comma-separated list of debug options to apply to NIR
|
2022-11-02 20:50:58 +01:00
|
|
|
shaders. Use ``NIR_DEBUG=help`` to print a list of available options.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: NIR_SKIP
|
|
|
|
|
|
2021-11-17 16:10:52 +01:00
|
|
|
a comma-separated list of optimization/lowering passes to skip.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
|
|
|
|
Mesa Xlib driver environment variables
|
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
|
|
The following are only applicable to the Mesa Xlib software driver. See
|
2020-06-15 12:31:36 +02:00
|
|
|
the :doc:`Xlib software driver page <xlibdriver>` for details.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_RGB_VISUAL
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies the X visual and depth for RGB mode
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_BACK_BUFFER
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies how to implement the back color buffer, either ``pixmap``
|
|
|
|
|
or ``ximage``
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_XSYNC
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
enable synchronous X behavior (for debugging only)
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_GLX_FORCE_ALPHA
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, forces RGB windows to have an alpha channel.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_GLX_DEPTH_BITS
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies default number of bits for depth buffer.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_GLX_ALPHA_BITS
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies default number of bits for alpha channel.
|
|
|
|
|
|
2022-03-21 11:09:51 +01:00
|
|
|
Mesa WGL driver environment variables
|
|
|
|
|
-------------------------------------
|
|
|
|
|
|
|
|
|
|
The following are only applicable to the Mesa WGL driver, which is in use
|
|
|
|
|
on Windows.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: WGL_FORCE_MSAA
|
|
|
|
|
|
2022-03-21 11:09:51 +01:00
|
|
|
if set to a positive value, specifies the number of MSAA samples to
|
|
|
|
|
force when choosing the display configuration.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: WGL_DISABLE_ERROR_DIALOGS
|
|
|
|
|
|
2022-03-21 11:49:27 +01:00
|
|
|
if set to 1, true or yes, disables Win32 error dialogs. Useful for
|
|
|
|
|
automated test-runs.
|
2022-03-21 11:09:51 +01:00
|
|
|
|
2024-11-23 09:17:35 -05:00
|
|
|
.. envvar:: WGL_SWAP_INTERVAL
|
|
|
|
|
|
|
|
|
|
to set a swap interval, equivalent to calling
|
|
|
|
|
``wglSwapIntervalEXT()`` in an application. If this environment
|
|
|
|
|
variable is set, application calls to ``wglSwapIntervalEXT()`` will
|
|
|
|
|
have no effect.
|
|
|
|
|
|
2021-09-24 12:55:23 -07:00
|
|
|
Intel driver environment variables
|
2020-06-12 20:09:42 +02:00
|
|
|
----------------------------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: INTEL_BLACKHOLE_DEFAULT
|
|
|
|
|
|
2021-09-24 12:55:23 -07:00
|
|
|
if set to 1, true or yes, then the OpenGL implementation will
|
|
|
|
|
default ``GL_BLACKHOLE_RENDER_INTEL`` to true, thus disabling any
|
|
|
|
|
rendering.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: INTEL_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``ann``
|
|
|
|
|
annotate IR in assembly dumps
|
|
|
|
|
``bat``
|
2023-04-24 21:02:27 +00:00
|
|
|
emit batch information. Can control in which frames batches
|
|
|
|
|
get dumped using ``INTEL_DEBUG_BATCH_FRAME_*``, where
|
|
|
|
|
``INTEL_DEBUG_BATCH_FRAME_START`` <= frame < ``INTEL_DEBUG_BATCH_FRAME_STOP``
|
2020-06-12 20:09:42 +02:00
|
|
|
``blit``
|
|
|
|
|
emit messages about blit operations
|
|
|
|
|
``blorp``
|
|
|
|
|
emit messages about the blorp operations (blits & clears)
|
|
|
|
|
``buf``
|
|
|
|
|
emit messages about buffer objects
|
2022-01-31 10:50:39 +02:00
|
|
|
``bt``
|
|
|
|
|
emit messages binding tables
|
2022-10-06 00:34:52 +03:00
|
|
|
``capture-all``
|
|
|
|
|
flag all buffers to be captured by the kernel driver when
|
2022-10-20 10:52:02 +02:00
|
|
|
generating an error stage after a GPU hang
|
2020-06-12 20:09:42 +02:00
|
|
|
``clip``
|
|
|
|
|
emit messages about the clip unit (for old gens, includes the CLIP
|
|
|
|
|
program)
|
|
|
|
|
``color``
|
|
|
|
|
use color in output
|
|
|
|
|
``cs``
|
|
|
|
|
dump shader assembly for compute shaders
|
2025-06-30 17:05:33 +00:00
|
|
|
``dispatch_bkp``
|
|
|
|
|
Add semaphore wait before/after dispatch call count.
|
|
|
|
|
``INTEL_DEBUG_BKP_BEFORE_DISPATCH_COUNT`` or
|
|
|
|
|
``INTEL_DEBUG_BKP_AFTER_DISPATCH_COUNT`` can control dispatch call number.
|
2020-06-12 20:09:42 +02:00
|
|
|
``do32``
|
|
|
|
|
generate compute shader SIMD32 programs even if workgroup size
|
|
|
|
|
doesn't exceed the SIMD16 limit
|
2023-07-24 11:41:33 -07:00
|
|
|
``draw_bkp``
|
|
|
|
|
Add semaphore wait before/after draw call count.
|
|
|
|
|
``INTEL_DEBUG_BKP_BEFORE_DRAW_COUNT`` or
|
|
|
|
|
``INTEL_DEBUG_BKP_AFTER_DRAW_COUNT`` can control draw call number.
|
|
|
|
|
To make test wait forever, we need to set preempt_timeout_ms and
|
|
|
|
|
i915.enable_hangcheck to zero.
|
2022-01-31 10:50:39 +02:00
|
|
|
``fall``
|
|
|
|
|
emit messages about performance issues (same as ``perf``)
|
2020-06-12 20:09:42 +02:00
|
|
|
``fs``
|
|
|
|
|
dump shader assembly for fragment shaders
|
|
|
|
|
``gs``
|
|
|
|
|
dump shader assembly for geometry shaders
|
2023-02-23 09:59:45 +02:00
|
|
|
``heaps``
|
2023-04-26 10:40:56 +02:00
|
|
|
print information about the driver's heaps (ANV only)
|
2020-06-12 20:09:42 +02:00
|
|
|
``hex``
|
|
|
|
|
print instruction hex dump with the disassembly
|
|
|
|
|
``l3``
|
|
|
|
|
emit messages about the new L3 state during transitions
|
2024-05-10 13:44:44 -07:00
|
|
|
``mda``
|
|
|
|
|
generate mda.tar files containing shader at each optimization
|
|
|
|
|
pass and iteration that make progress (Gfx >= 9)
|
2022-01-31 10:50:39 +02:00
|
|
|
``mesh``
|
|
|
|
|
dump shader assembly for mesh shaders
|
2020-06-12 20:09:42 +02:00
|
|
|
``no8``
|
|
|
|
|
don't generate SIMD8 fragment shader
|
|
|
|
|
``no16``
|
|
|
|
|
suppress generation of 16-wide fragment shaders. useful for
|
|
|
|
|
debugging broken shaders
|
2022-01-31 10:50:39 +02:00
|
|
|
``no32``
|
|
|
|
|
suppress generation of 32-wide fragment shaders. useful for
|
|
|
|
|
debugging broken shaders
|
|
|
|
|
``no-oaconfig``
|
|
|
|
|
disable HW performance metric configuration, and anything
|
|
|
|
|
related to i915-perf (useful when running on simulation)
|
2020-06-12 20:09:42 +02:00
|
|
|
``nocompact``
|
|
|
|
|
disable instruction compaction
|
|
|
|
|
``nodualobj``
|
|
|
|
|
suppress generation of dual-object geometry shader code
|
|
|
|
|
``nofc``
|
|
|
|
|
disable fast clears
|
2022-03-18 01:31:39 -07:00
|
|
|
``noccs``
|
|
|
|
|
disable lossless color compression
|
2025-11-21 14:38:53 +02:00
|
|
|
``no-resource-barrier``
|
|
|
|
|
disable RENDER_BARRIER instruction usage by falling back to
|
|
|
|
|
PIPE_CONTROL
|
2020-06-12 20:09:42 +02:00
|
|
|
``optimizer``
|
|
|
|
|
dump shader assembly to files at each optimization pass and
|
2024-05-10 13:44:44 -07:00
|
|
|
iteration that make progress (Gfx < 9)
|
2022-01-31 10:50:39 +02:00
|
|
|
``pc``
|
|
|
|
|
emit messages about PIPE_CONTROL instruction usage
|
2020-06-12 20:09:42 +02:00
|
|
|
``perf``
|
|
|
|
|
emit messages about performance issues
|
|
|
|
|
``perfmon``
|
2022-11-08 12:05:36 +01:00
|
|
|
emit messages about :ext:`GL_AMD_performance_monitor`
|
2022-07-21 08:25:39 +00:00
|
|
|
``perf-symbol-names``
|
|
|
|
|
use performance counter symbols instead of the counter name
|
|
|
|
|
(counter symbols are like variable names, it's sometimes easier
|
|
|
|
|
to work with when you have lots of metrics to collect)
|
2020-06-12 20:09:42 +02:00
|
|
|
``reemit``
|
|
|
|
|
mark all state dirty on each draw call
|
2022-01-31 10:50:39 +02:00
|
|
|
``rt``
|
|
|
|
|
dump shader assembly for ray tracing shaders
|
2025-03-21 16:59:25 +00:00
|
|
|
``rt_notrace``
|
|
|
|
|
skip trace rays operation (does not disable AS generation; see bvh_no_build)
|
2020-06-12 20:09:42 +02:00
|
|
|
``sf``
|
|
|
|
|
emit messages about the strips & fans unit (for old gens, includes
|
|
|
|
|
the SF program)
|
2023-09-05 16:11:56 +03:00
|
|
|
``shader-print``
|
|
|
|
|
allow developer print traces added by `brw_nir_printf` to be
|
|
|
|
|
printed out on the console
|
2022-01-31 10:50:39 +02:00
|
|
|
``soft64``
|
|
|
|
|
enable implementation of software 64bit floating point support
|
2023-07-07 17:15:01 +00:00
|
|
|
``sparse``
|
|
|
|
|
dump usage of sparse resources
|
2020-06-12 20:09:42 +02:00
|
|
|
``spill_fs``
|
|
|
|
|
force spilling of all registers in the scalar backend (useful to
|
|
|
|
|
debug spilling code)
|
|
|
|
|
``spill_vec4``
|
|
|
|
|
force spilling of all registers in the vec4 backend (useful to
|
|
|
|
|
debug spilling code)
|
2022-02-22 10:37:07 +02:00
|
|
|
``stall``
|
|
|
|
|
inserts a stall on the GPU after each draw/dispatch command to
|
|
|
|
|
wait for it to finish before starting any new work.
|
2020-06-12 20:09:42 +02:00
|
|
|
``submit``
|
|
|
|
|
emit batchbuffer usage statistics
|
|
|
|
|
``sync``
|
2022-02-22 10:37:07 +02:00
|
|
|
after sending each batch, wait on the CPU for that batch to
|
|
|
|
|
finish rendering
|
2023-03-08 12:31:51 -08:00
|
|
|
``swsb-stall``
|
|
|
|
|
Insert sync NOP after each instruction. This is only valid for Gfx12+.
|
2022-01-31 10:50:39 +02:00
|
|
|
``task``
|
|
|
|
|
dump shader assembly for task shaders
|
2020-06-12 20:09:42 +02:00
|
|
|
``tcs``
|
|
|
|
|
dump shader assembly for tessellation control shaders
|
2022-01-31 10:50:39 +02:00
|
|
|
``tcs8``
|
|
|
|
|
force usage of 8-patches tessellation control shaders (only
|
|
|
|
|
for gfx 9-11)
|
2020-06-12 20:09:42 +02:00
|
|
|
``tes``
|
|
|
|
|
dump shader assembly for tessellation evaluation shaders
|
|
|
|
|
``tex``
|
|
|
|
|
emit messages about textures.
|
|
|
|
|
``urb``
|
|
|
|
|
emit messages about URB setup
|
|
|
|
|
``vs``
|
|
|
|
|
dump shader assembly for vertex shaders
|
2022-01-31 10:50:39 +02:00
|
|
|
``wm``
|
|
|
|
|
dump shader assembly for fragment shaders (same as ``fs``)
|
2024-06-09 21:50:32 -07:00
|
|
|
``cl-quiet``
|
|
|
|
|
quiets the OpenCL warnings recommending use of Intel compute-runtime
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2023-01-20 11:30:46 +02:00
|
|
|
.. envvar:: INTEL_DECODE
|
|
|
|
|
|
|
|
|
|
a comma-separated list of enable/disable flags configuring the
|
|
|
|
|
output produced by ``INTEL_DEBUG=bat`` (use with
|
|
|
|
|
``INTEL_DECODE=+color,-floats``) :
|
|
|
|
|
|
|
|
|
|
``color``
|
|
|
|
|
print colored output
|
|
|
|
|
|
|
|
|
|
``floats``
|
|
|
|
|
try to decode floating point data in buffers
|
|
|
|
|
|
|
|
|
|
``full``
|
|
|
|
|
print additional custom information for instructions (usually
|
|
|
|
|
pulling more information by inspecting memory)
|
|
|
|
|
|
|
|
|
|
``offsets``
|
|
|
|
|
print offsets of instructions
|
|
|
|
|
|
2023-03-10 16:34:02 +00:00
|
|
|
.. envvar:: INTEL_EXTENDED_METRICS
|
|
|
|
|
|
2024-06-24 19:09:53 +02:00
|
|
|
By default, only a standard set of GPU metrics are advertised. This
|
2023-03-10 16:34:02 +00:00
|
|
|
reduces time to collect metrics and hides infrequently used metrics.
|
|
|
|
|
To enable all metrics, set value to 1.
|
|
|
|
|
|
2023-09-29 03:02:35 -07:00
|
|
|
.. envvar:: INTEL_FORCE_PROBE
|
|
|
|
|
|
|
|
|
|
A comma-separated list of device probe override values. The basic
|
|
|
|
|
format is ``<pci-id>[,<pci-id>,...]``. The wildcard value of ``*``
|
|
|
|
|
will specify all known PCI IDs. If ``!`` precedes a PCI ID, or the
|
|
|
|
|
wildcard value, then the device support will be disabled. All
|
|
|
|
|
numbers are interpreted in base 16, and a ``0x`` prefix is
|
2024-06-24 18:58:50 +02:00
|
|
|
optional. Values specified later take precedence, so the wildcard
|
2023-09-29 03:02:35 -07:00
|
|
|
probably should only be used at the beginning.
|
|
|
|
|
|
|
|
|
|
Some examples :
|
|
|
|
|
|
|
|
|
|
``1234,!abcd``
|
|
|
|
|
Device 0x1234 would be forced on and 0xabcd would be disabled.
|
|
|
|
|
|
|
|
|
|
``1234,!*``
|
|
|
|
|
All devices are disabled since the wildcard appears later.
|
|
|
|
|
|
|
|
|
|
``!*,0x1234``
|
|
|
|
|
All devices disabled except 0x1234 which is forced on.
|
|
|
|
|
|
|
|
|
|
``*,!0x1234``
|
|
|
|
|
All devices are forced on, except 0x1234 which is disabled.
|
|
|
|
|
|
|
|
|
|
``!0x1234,1234``
|
|
|
|
|
Support for device 0x1234 is forced on since the enable appears
|
|
|
|
|
later.
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
If a device requires using :envvar:`INTEL_FORCE_PROBE` to force
|
|
|
|
|
it to load, then Mesa does not have full support for the device.
|
|
|
|
|
It may have limited, or possibly no functionality within Mesa at
|
|
|
|
|
this point. It is recommended to upgrade to a Mesa which does
|
|
|
|
|
not require :envvar:`INTEL_FORCE_PROBE` for the device as soon
|
|
|
|
|
as it is available.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: INTEL_MEASURE
|
|
|
|
|
|
2021-09-24 12:57:05 -07:00
|
|
|
Collects GPU timestamps over common intervals, and generates a CSV report
|
|
|
|
|
to show how long rendering took. The overhead of collection is limited to
|
|
|
|
|
the flushing that is required at the interval boundaries for accurate
|
|
|
|
|
timestamps. By default, timing data is sent to ``stderr``. To direct output
|
|
|
|
|
to a file:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=file=/tmp/measure.csv {workload}``
|
|
|
|
|
|
|
|
|
|
To begin capturing timestamps at a particular frame:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=file=/tmp/measure.csv,start=15 {workload}``
|
|
|
|
|
|
|
|
|
|
To capture only 23 frames:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=count=23 {workload}``
|
|
|
|
|
|
|
|
|
|
To capture frames 15-37, stopping before frame 38:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=start=15,count=23 {workload}``
|
|
|
|
|
|
|
|
|
|
Designate an asynchronous control file with:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=control=path/to/control.fifo {workload}``
|
|
|
|
|
|
|
|
|
|
As the workload runs, enable capture for 5 frames with:
|
|
|
|
|
|
|
|
|
|
``$ echo 5 > path/to/control.fifo``
|
|
|
|
|
|
|
|
|
|
Enable unbounded capture:
|
|
|
|
|
|
|
|
|
|
``$ echo -1 > path/to/control.fifo``
|
|
|
|
|
|
|
|
|
|
and disable with:
|
|
|
|
|
|
|
|
|
|
``$ echo 0 > path/to/control.fifo``
|
|
|
|
|
|
|
|
|
|
Select the boundaries of each snapshot with:
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=draw``
|
|
|
|
|
Collects timings for every render (DEFAULT)
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=rt``
|
|
|
|
|
Collects timings when the render target changes
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=batch``
|
|
|
|
|
Collects timings when batches are submitted
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=frame``
|
|
|
|
|
Collects timings at frame boundaries
|
|
|
|
|
|
|
|
|
|
With ``INTEL_MEASURE=interval=5``, the duration of 5 events will be
|
|
|
|
|
combined into a single record in the output. When possible, a single
|
|
|
|
|
start and end event will be submitted to the GPU to minimize
|
|
|
|
|
stalling. Combined events will not span batches, except in
|
|
|
|
|
the case of ``INTEL_MEASURE=frame``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-03-20 16:30:26 +00:00
|
|
|
Collect CPU timestamps instead of GPU timestamps. Prints results
|
|
|
|
|
immediately instead of waiting for GPU execution. Useful when used
|
|
|
|
|
with interactive debug to know which frame, or where in frame, you
|
|
|
|
|
are currently in.
|
|
|
|
|
|
|
|
|
|
``INTEL_MEASURE=cpu {workload}``
|
|
|
|
|
|
2023-09-21 17:09:55 -07:00
|
|
|
.. envvar:: INTEL_MODIFIER_OVERRIDE
|
|
|
|
|
|
|
|
|
|
if set, determines the single DRM modifier reported back to (Vulkan)
|
|
|
|
|
applications, in order to make selecting modifier deterministic
|
|
|
|
|
between Vulkan driver and applications. The value can be one of the
|
|
|
|
|
supported modifiers on a platform, but other values are also acceptable
|
|
|
|
|
for debug purposes.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: INTEL_NO_HW
|
|
|
|
|
|
2021-09-24 12:55:23 -07:00
|
|
|
if set to 1, true or yes, prevents batches from being submitted to the
|
|
|
|
|
hardware. This is useful for debugging hangs, etc.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: INTEL_PRECISE_TRIG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set to 1, true or yes, then the driver prefers accuracy over
|
|
|
|
|
performance in trig functions.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2023-08-07 17:06:49 +03:00
|
|
|
.. envvar:: INTEL_SHADER_OPTIMIZER_PATH
|
|
|
|
|
|
|
|
|
|
if set, determines the directory to be used for overriding shader
|
|
|
|
|
assembly. The binaries with custom assembly should be placed in
|
|
|
|
|
this folder and have a name formatted as ``sha1_of_assembly.bin``.
|
|
|
|
|
The SHA-1 of a shader assembly is printed when assembly is dumped via
|
|
|
|
|
corresponding :envvar:`INTEL_DEBUG` flag (e.g. ``vs`` for vertex shader).
|
2025-04-02 21:03:03 +00:00
|
|
|
A binary could be generated from a dumped assembly by ``brw_asm`` or ``elk_asm``.
|
2023-08-07 17:06:49 +03:00
|
|
|
For :envvar:`INTEL_SHADER_ASM_READ_PATH` to work it is necessary to enable
|
|
|
|
|
dumping of corresponding shader stages via :envvar:`INTEL_DEBUG`.
|
|
|
|
|
It is advised to use ``nocompact`` flag of :envvar:`INTEL_DEBUG` when
|
|
|
|
|
dumping and overriding shader assemblies.
|
|
|
|
|
The success of assembly override would be signified by "Successfully
|
|
|
|
|
overrode shader with sha1 <SHA-1>" in stderr replacing the original
|
|
|
|
|
assembly.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: INTEL_SHADER_ASM_READ_PATH
|
|
|
|
|
|
2020-09-28 19:29:42 +03:00
|
|
|
if set, determines the directory to be used for overriding shader
|
|
|
|
|
assembly. The binaries with custom assembly should be placed in
|
|
|
|
|
this folder and have a name formatted as ``sha1_of_assembly.bin``.
|
2022-10-19 11:23:21 +02:00
|
|
|
The SHA-1 of a shader assembly is printed when assembly is dumped via
|
2021-06-01 11:30:08 +02:00
|
|
|
corresponding :envvar:`INTEL_DEBUG` flag (e.g. ``vs`` for vertex shader).
|
2025-04-02 21:03:03 +00:00
|
|
|
A binary could be generated from a dumped assembly by ``brw_asm`` or ``elk_asm``.
|
2021-06-01 11:30:08 +02:00
|
|
|
For :envvar:`INTEL_SHADER_ASM_READ_PATH` to work it is necessary to enable
|
|
|
|
|
dumping of corresponding shader stages via :envvar:`INTEL_DEBUG`.
|
|
|
|
|
It is advised to use ``nocompact`` flag of :envvar:`INTEL_DEBUG` when
|
2020-09-28 19:29:42 +03:00
|
|
|
dumping and overriding shader assemblies.
|
|
|
|
|
The success of assembly override would be signified by "Successfully
|
2022-10-19 11:23:21 +02:00
|
|
|
overrode shader with sha1 <SHA-1>" in stderr replacing the original
|
2020-09-28 19:29:42 +03:00
|
|
|
assembly.
|
2020-11-09 18:45:18 +02:00
|
|
|
|
2023-10-09 12:48:02 +03:00
|
|
|
.. envvar:: INTEL_SHADER_BIN_DUMP_PATH
|
|
|
|
|
|
|
|
|
|
if set, determines the directory to which the compiled shaders will be
|
|
|
|
|
dumped. They will be dumped as ``sha1_of_assembly.bin``, where the sha1
|
|
|
|
|
values will be the same as can be found in the :envvar:`INTEL_DEBUG`
|
|
|
|
|
output, and can be used for :envvar:`INTEL_SHADER_ASM_READ_PATH` input.
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
Unlike the text form of shader dumping, :envvar:`INTEL_DEBUG`
|
|
|
|
|
does not affect on the list of shaders to dump. All generated shaders
|
|
|
|
|
are always dumped if :envvar:`INTEL_SHADER_BIN_DUMP_PATH` variable is
|
|
|
|
|
set.
|
|
|
|
|
|
2025-05-16 23:28:04 +00:00
|
|
|
.. envvar:: INTEL_SHADER_DUMP_FILTER
|
|
|
|
|
|
|
|
|
|
Only dump information about shaders that match the specified hexadecimal
|
|
|
|
|
source hash.
|
|
|
|
|
|
2023-01-21 12:49:44 +01:00
|
|
|
.. envvar:: INTEL_SIMD_DEBUG
|
|
|
|
|
|
|
|
|
|
a comma-separated list of named flags, which control simd dispatch widths:
|
|
|
|
|
|
|
|
|
|
``fs8``
|
|
|
|
|
allow generation of SIMD8 fragment shader
|
|
|
|
|
``fs16``
|
|
|
|
|
allow generation of SIMD16 fragment shader
|
|
|
|
|
``fs32``
|
|
|
|
|
allow generation of SIMD32 fragment shader
|
|
|
|
|
``cs8``
|
|
|
|
|
allow generation of SIMD8 compute shader
|
|
|
|
|
``cs16``
|
|
|
|
|
allow generation of SIMD16 compute shader
|
|
|
|
|
``cs32``
|
|
|
|
|
allow generation of SIMD32 compute shader
|
|
|
|
|
``ts8``
|
|
|
|
|
allow generation of SIMD8 task shader
|
|
|
|
|
``ts16``
|
|
|
|
|
allow generation of SIMD16 task shader
|
|
|
|
|
``ts32``
|
|
|
|
|
allow generation of SIMD32 task shader
|
|
|
|
|
``ms8``
|
|
|
|
|
allow generation of SIMD8 mesh shader
|
|
|
|
|
``ms16``
|
|
|
|
|
allow generation of SIMD16 mesh shader
|
|
|
|
|
``ms32``
|
|
|
|
|
allow generation of SIMD32 mesh shader
|
|
|
|
|
``rt8``
|
|
|
|
|
allow generation of SIMD8 ray-tracing shader
|
|
|
|
|
``rt16``
|
|
|
|
|
allow generation of SIMD16 ray-tracing shader
|
|
|
|
|
``rt32``
|
|
|
|
|
allow generation of SIMD32 ray-tracing shader
|
|
|
|
|
|
|
|
|
|
If none of widths for particular shader stage was specified, then all
|
|
|
|
|
widths are allowed.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2025-06-19 17:49:13 -07:00
|
|
|
.. envvar:: MDA_OUTPUT_DIR
|
|
|
|
|
|
|
|
|
|
Directory where the mda.tar files generated when using INTEL_DEBUG=mda are
|
|
|
|
|
going to be written to. If not set, use the current directory.
|
|
|
|
|
|
|
|
|
|
.. envvar:: MDA_PREFIX
|
|
|
|
|
|
|
|
|
|
Prefix added to the mda.tar filenames generated when using INTEL_DEBUG=mda.
|
2025-06-19 18:18:45 -07:00
|
|
|
If set to ``timestamp`` it will generate the current time/date as prefix.
|
2025-06-19 17:49:13 -07:00
|
|
|
|
2025-09-19 15:19:08 -07:00
|
|
|
.. envvar:: MDA_FILTER
|
|
|
|
|
|
|
|
|
|
When set, will only generate mda.tar files which names contain any of the
|
|
|
|
|
comma-separated filter values as substrings.
|
|
|
|
|
|
2024-08-09 06:57:37 -07:00
|
|
|
Anvil(ANV) driver environment variables
|
|
|
|
|
---------------------------------------
|
|
|
|
|
|
2025-04-01 23:39:36 +03:00
|
|
|
.. envvar:: ANV_DEBUG
|
|
|
|
|
|
|
|
|
|
Accepts the following comma-separated list of flags:
|
|
|
|
|
|
|
|
|
|
``bindless``
|
|
|
|
|
Forces all descriptor sets to use the internal :ref:`Bindless model`
|
|
|
|
|
``no-gpl``
|
|
|
|
|
Disables `VK_KHR_graphics_pipeline_library` support
|
|
|
|
|
``no-secondary-call``
|
|
|
|
|
Disables secondary command buffer calls
|
|
|
|
|
``no-sparse``
|
|
|
|
|
Disables sparse support
|
|
|
|
|
``sparse-trtt``
|
|
|
|
|
Forces use of TR-TT hardware for sparse support
|
|
|
|
|
``video-decode``
|
|
|
|
|
Enables video decoding support
|
|
|
|
|
``video-encode``
|
|
|
|
|
Enables video encoding support
|
anv: add shader-hash debug option
Emits a dummy MI_STORE_DATA_IMM with the shader hash in front of :
- 3DSTATE_VS
- 3DSTATE_HS
- 3DSTATE_DS
- 3DSTATE_HS
- 3DSTATE_PS
- COMPUTE_WALKER / GPGPU_WALKER
Example :
0x00000000: 0x10000002: MI_STORE_DATA_IMM
0x00000000: 0x10000002 : Dword 0
DWord Length: 2
Force Write Completion Check : false
Store Qword: 0
Use Global GTT: false
0x00000004: 0xffffe0c0 : Dword 1
Core Mode Enable: 0
0x00000008: 0x0000effe : Dword 2
Address: 0xeffeffffe0c0
0x0000000c: 0x126e815a : Dword 3 <------------ shader hash
0x00000010: 0x78100007 : Dword 4
Immediate Data: 309231962
0x00000000: 0x78100007: 3DSTATE_VS
0x00000000: 0x78100007 : Dword 0
DWord Length: 7
0x00000004: 0x00000000 : Dword 1
0x00000008: 0x00000000 : Dword 2
Kernel Start Pointer: 0x00000000
0x0000000c: 0x00040000 : Dword 3
Software Exception Enable: false
Accesses UAV: false
It'll correlate with the value emitted in the pipeline stats from fossil replay :
$ grep -i 126e815a /tmp/stats.csv
fossilize.aab93c5c3f965151.1.foz,GRAPHICS,de1b925dec8a8083,507378,498283,303434,vertex,8,50,4,0,1826,0,0,0,8,17,0,0x00000000126e815a,15
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34332>
2025-04-02 00:02:10 +03:00
|
|
|
``shader-hash``
|
|
|
|
|
Emits dummy (MI_STORE_DATA_IMM) instructions containing the shader
|
|
|
|
|
source hash, preceding shader programming instructions (internal
|
|
|
|
|
shaders & ray-tracing shaders are omitted)
|
2024-08-09 06:57:37 -07:00
|
|
|
|
|
|
|
|
If defined to ``1`` or ``true``, this will prevent usage of self
|
|
|
|
|
modifying command buffers to implement ``vkCmdExecuteCommands``. As
|
|
|
|
|
a result of this, it will also disable :ext:`VK_KHR_performance_query`.
|
|
|
|
|
|
2025-06-03 18:49:55 +00:00
|
|
|
.. envvar:: ANV_DEBUG_WAIT_FOR_ATTACH
|
|
|
|
|
|
|
|
|
|
If defined, the value is parsed as a regular expression. If the current
|
|
|
|
|
process name matches the regex, ANV will wait 30 seconds for a debugger
|
|
|
|
|
to attach before starting device creation.
|
|
|
|
|
|
2024-08-09 06:57:37 -07:00
|
|
|
.. envvar:: ANV_PRIMITIVE_REPLICATION_MAX_VIEWS
|
|
|
|
|
|
|
|
|
|
Specifies up to how many view shaders can be lowered to handle
|
|
|
|
|
:ext:`VK_KHR_multiview`. Beyond this number, multiview is implemented
|
|
|
|
|
using instanced rendering. If unspecified, the value default to
|
|
|
|
|
``2``.
|
|
|
|
|
|
2025-04-01 23:39:36 +03:00
|
|
|
.. envvar:: ANV_PRINTF_BUFFER_SIZE
|
2024-08-09 06:57:37 -07:00
|
|
|
|
2025-04-01 23:39:36 +03:00
|
|
|
Specifies the size of the printf buffer.
|
2024-08-09 06:57:37 -07:00
|
|
|
|
2025-04-01 23:08:05 +03:00
|
|
|
.. envvar:: ANV_QUEUE_OVERRIDE
|
|
|
|
|
|
|
|
|
|
Override exposed queue families & counts. The variable is a comma
|
|
|
|
|
separated list of queue overrides. To override the number queues:
|
|
|
|
|
|
|
|
|
|
- ``gc`` is for graphics queues with compute support
|
|
|
|
|
- ``g`` is for graphics queues with no compute support
|
|
|
|
|
- ``c`` is for compute queues with no graphics support
|
|
|
|
|
- ``v`` is for video queues with no graphics support
|
|
|
|
|
- ``b`` is for copy (blitter) queues with no graphics support
|
|
|
|
|
|
|
|
|
|
For example, ``ANV_QUEUE_OVERRIDE=gc=2,c=1`` would override the number
|
|
|
|
|
of advertised queues to be 2 queues with graphics+compute support,
|
|
|
|
|
and 1 queue with compute-only support.
|
|
|
|
|
|
|
|
|
|
``ANV_QUEUE_OVERRIDE=c=1`` would override the number of advertised
|
|
|
|
|
queues to include 1 queue with compute-only support, but it will
|
|
|
|
|
not change the number of graphics+compute queues.
|
|
|
|
|
|
|
|
|
|
``ANV_QUEUE_OVERRIDE=gc=0,c=1`` would override the number of
|
|
|
|
|
advertised queues to include 1 queue with compute-only support, and
|
|
|
|
|
it would override the number of graphics+compute queues to be 0.
|
|
|
|
|
|
2024-08-09 07:38:18 -07:00
|
|
|
.. envvar:: ANV_SPARSE
|
|
|
|
|
|
|
|
|
|
By default, the sparse resources feature is enabled. However, if set to 0,
|
|
|
|
|
false, or no, it will be disabled.
|
|
|
|
|
Platforms older than Tiger Lake do not support this feature.
|
|
|
|
|
|
|
|
|
|
.. envvar:: ANV_SPARSE_USE_TRTT
|
|
|
|
|
|
|
|
|
|
On platforms supported by Xe KMD (Lunar Lake and newer) this parameter
|
|
|
|
|
changes the implementation of sparse resources feature.
|
|
|
|
|
For i915 there is no option, sparse resources is always implemented with
|
|
|
|
|
TRTT.
|
|
|
|
|
|
2025-04-01 23:08:05 +03:00
|
|
|
Hasvk driver environment variables
|
|
|
|
|
---------------------------------------
|
|
|
|
|
|
|
|
|
|
.. envvar:: HASVK_DISABLE_SECONDARY_CMD_BUFFER_CALLS
|
|
|
|
|
|
|
|
|
|
If defined to ``1`` or ``true``, this will prevent usage of self
|
|
|
|
|
modifying command buffers to implement ``vkCmdExecuteCommands``. As
|
|
|
|
|
a result of this, it will also disable :ext:`VK_KHR_performance_query`.
|
|
|
|
|
|
|
|
|
|
.. envvar:: HASVK_ALWAYS_BINDLESS
|
|
|
|
|
|
|
|
|
|
If defined to ``1`` or ``true``, this forces all descriptor sets to
|
|
|
|
|
use the internal :ref:`Bindless model`.
|
|
|
|
|
|
|
|
|
|
.. envvar:: HASVK_QUEUE_OVERRIDE
|
|
|
|
|
|
|
|
|
|
Override exposed queue families & counts. The variable is a comma
|
|
|
|
|
separated list of queue overrides. To override the number queues:
|
|
|
|
|
|
|
|
|
|
- ``gc`` is for graphics queues with compute support
|
|
|
|
|
- ``g`` is for graphics queues with no compute support
|
|
|
|
|
- ``c`` is for compute queues with no graphics support
|
|
|
|
|
- ``v`` is for video queues with no graphics support
|
|
|
|
|
- ``b`` is for copy (blitter) queues with no graphics support
|
|
|
|
|
|
|
|
|
|
For example, ``HASVK_QUEUE_OVERRIDE=gc=2,c=1`` would override the
|
|
|
|
|
number of advertised queues to be 2 queues with graphics+compute
|
|
|
|
|
support, and 1 queue with compute-only support.
|
|
|
|
|
|
|
|
|
|
``HASVK_QUEUE_OVERRIDE=c=1`` would override the number of
|
|
|
|
|
advertised queues to include 1 queue with compute-only support, but
|
|
|
|
|
it will not change the number of graphics+compute queues.
|
|
|
|
|
|
|
|
|
|
``HASVK_QUEUE_OVERRIDE=gc=0,c=1`` would override the number of
|
|
|
|
|
advertised queues to include 1 queue with compute-only support, and
|
|
|
|
|
it would override the number of graphics+compute queues to be 0.
|
|
|
|
|
|
|
|
|
|
.. envvar:: HASVK_USERSPACE_RELOCS
|
|
|
|
|
|
|
|
|
|
If defined to ``1`` or ``true``, this forces ANV to always do
|
|
|
|
|
kernel relocations in command buffers. This should only have an
|
|
|
|
|
effect on hardware that doesn't support soft-pinning (Ivybridge,
|
|
|
|
|
Haswell, Cherryview).
|
|
|
|
|
|
2021-03-07 10:28:52 -05:00
|
|
|
DRI environment variables
|
|
|
|
|
-------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: DRI_NO_MSAA
|
|
|
|
|
|
2021-03-07 10:28:52 -05:00
|
|
|
disable MSAA for GLX/EGL MSAA visuals
|
|
|
|
|
|
|
|
|
|
|
2022-03-26 00:01:44 +05:30
|
|
|
Vulkan mesa device select layer environment variables
|
|
|
|
|
-----------------------------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: MESA_VK_DEVICE_SELECT
|
|
|
|
|
|
2022-03-26 00:01:44 +05:30
|
|
|
when set to "list" prints the list of devices.
|
2022-10-19 11:46:20 +02:00
|
|
|
when set to "vid:did" number from PCI device. That PCI device is
|
2022-03-26 00:01:44 +05:30
|
|
|
selected as default. The default device is returned as the first
|
2022-10-18 16:02:19 +02:00
|
|
|
device in vkEnumeratePhysicalDevices API.
|
2023-08-17 12:41:42 +02:00
|
|
|
Using "vid:did!" will have the same effect as using the
|
|
|
|
|
``MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE`` variable.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: MESA_VK_DEVICE_SELECT_FORCE_DEFAULT_DEVICE
|
|
|
|
|
|
2022-03-26 00:01:44 +05:30
|
|
|
when set to 1, the device identified as default will be the only
|
2022-10-18 16:02:19 +02:00
|
|
|
one returned in vkEnumeratePhysicalDevices API.
|
2022-03-26 00:01:44 +05:30
|
|
|
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
EGL environment variables
|
|
|
|
|
-------------------------
|
|
|
|
|
|
2020-06-15 12:31:36 +02:00
|
|
|
Mesa EGL supports different sets of environment variables. See the
|
|
|
|
|
:doc:`Mesa EGL <egl>` page for the details.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
|
|
|
|
Gallium environment variables
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: GALLIUM_HUD
|
|
|
|
|
|
2020-09-29 19:15:32 +02:00
|
|
|
draws various information on the screen, like framerate, CPU load,
|
2020-06-12 20:09:42 +02:00
|
|
|
driver statistics, performance counters, etc. Set
|
2021-06-01 11:30:08 +02:00
|
|
|
:envvar:`GALLIUM_HUD` to ``help`` and run e.g. ``glxgears`` for more info.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_HUD_PERIOD
|
|
|
|
|
|
2020-09-30 10:36:29 +02:00
|
|
|
sets the HUD update rate in seconds (float). Use zero to update every
|
2020-06-12 20:09:42 +02:00
|
|
|
frame. The default period is 1/2 second.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_HUD_VISIBLE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
control default visibility, defaults to true.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2022-12-15 13:34:21 -03:00
|
|
|
.. envvar:: GALLIUM_HUD_OPACITY
|
|
|
|
|
|
|
|
|
|
control background opacity as an integer percentage (1-100), defaults to 66%.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: GALLIUM_HUD_TOGGLE_SIGNAL
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
toggle visibility via user specified signal. Especially useful to
|
2020-09-30 10:36:29 +02:00
|
|
|
toggle HUD at specific points of application and disable for
|
2020-06-12 20:09:42 +02:00
|
|
|
unencumbered viewing the rest of the time. For example, set
|
2021-06-01 11:30:08 +02:00
|
|
|
:envvar:`GALLIUM_HUD_VISIBLE` to ``false`` and
|
|
|
|
|
:envvar:`GALLIUM_HUD_TOGGLE_SIGNAL` to ``10`` (``SIGUSR1``). Use
|
2020-09-30 10:36:29 +02:00
|
|
|
``kill -10 <pid>`` to toggle the HUD as desired.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_HUD_SCALE
|
|
|
|
|
|
2020-09-30 10:36:29 +02:00
|
|
|
Scale HUD by an integer factor, for high DPI displays. Default is 1.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2022-11-18 14:38:12 -03:00
|
|
|
.. envvar:: GALLIUM_HUD_ROTATION
|
|
|
|
|
|
|
|
|
|
Rotate the HUD by an integer number of degrees, the specified value must be
|
|
|
|
|
a multiple of 90. Default is 0.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: GALLIUM_HUD_DUMP_DIR
|
|
|
|
|
|
2020-09-30 10:36:29 +02:00
|
|
|
specifies a directory for writing the displayed HUD values into
|
2020-06-12 20:09:42 +02:00
|
|
|
files.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_DRIVER
|
|
|
|
|
|
2022-11-08 10:52:17 +01:00
|
|
|
useful in combination with :envvar:`LIBGL_ALWAYS_SOFTWARE` = ``true`` for
|
2021-06-10 13:16:04 +02:00
|
|
|
choosing one of the software renderers ``softpipe`` or ``llvmpipe``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_LOG_FILE
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
specifies a file for logging all errors, warnings, etc. rather than
|
|
|
|
|
stderr.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_PRINT_OPTIONS
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if non-zero, print all the Gallium environment variables which are
|
|
|
|
|
used, and their current values.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
2022-11-08 11:10:45 +01:00
|
|
|
.. envvar:: GALLIUM_TRACE
|
|
|
|
|
|
2025-01-04 18:15:50 +01:00
|
|
|
If set, this variable will cause the trace output to be written to the
|
2022-11-08 11:10:45 +01:00
|
|
|
specified file. Paths may be relative or absolute; relative paths are relative
|
|
|
|
|
to the working directory. For example, setting it to "trace.xml" will cause
|
|
|
|
|
the trace to be written to a file of the same name in the working directory.
|
|
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_TRACE_TC
|
|
|
|
|
|
2025-01-04 18:15:50 +01:00
|
|
|
If enabled while trace is active, this variable specifies that the threaded context
|
2022-11-08 11:10:45 +01:00
|
|
|
should be traced for drivers which implement it. By default, the driver thread is traced,
|
|
|
|
|
which will include any reordering of the command stream from threaded context.
|
|
|
|
|
|
|
|
|
|
.. envvar:: GALLIUM_TRACE_TRIGGER
|
|
|
|
|
|
2025-01-04 18:15:50 +01:00
|
|
|
If set while trace is active, this variable specifies a filename to monitor.
|
2022-11-08 11:10:45 +01:00
|
|
|
Once the file exists (e.g., from the user running 'touch /path/to/file'), a single
|
|
|
|
|
frame will be recorded into the trace output.
|
|
|
|
|
Paths may be relative or absolute; relative paths are relative to the working directory.
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: GALLIUM_DUMP_CPU
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if non-zero, print information about the CPU on start-up
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: TGSI_PRINT_SANITY
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, do extra sanity checking on TGSI shaders and print any errors
|
|
|
|
|
to stderr.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: DRAW_FSE
|
|
|
|
|
|
2021-06-01 12:22:00 +02:00
|
|
|
Enable fetch-shade-emit middle-end even though its not correct (e.g.
|
2022-10-25 12:27:47 +02:00
|
|
|
for Softpipe)
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: DRAW_NO_FSE
|
|
|
|
|
|
2021-06-01 12:22:00 +02:00
|
|
|
Disable fetch-shade-emit middle-end even when it is correct
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: DRAW_USE_LLVM
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set to zero, the draw module will not use LLVM to execute shaders,
|
|
|
|
|
vertex fetch, etc.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: ST_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
controls debug output from the Mesa/Gallium state tracker. Setting to
|
|
|
|
|
``tgsi``, for example, will print all the TGSI shaders. See
|
2021-06-01 11:36:46 +02:00
|
|
|
:file:`src/mesa/state_tracker/st_debug.c` for other options.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 11:10:45 +01:00
|
|
|
.. envvar:: GALLIUM_OVERRIDE_CPU_CAPS
|
|
|
|
|
|
|
|
|
|
Override CPU capabilities for LLVMpipe and Softpipe, possible values for x86:
|
|
|
|
|
``nosse``
|
|
|
|
|
``sse``
|
|
|
|
|
``sse2``
|
|
|
|
|
``sse3``
|
|
|
|
|
``ssse3``
|
|
|
|
|
``sse4.1``
|
|
|
|
|
``avx``
|
|
|
|
|
|
2023-05-16 05:18:45 -06:00
|
|
|
.. _rusticl-env-var:
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-10-19 00:10:12 +02:00
|
|
|
Rusticl environment variables
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RUSTICL_DEVICE_TYPE
|
|
|
|
|
|
2022-10-19 00:10:12 +02:00
|
|
|
allows to overwrite the device type of devices. Possible values are
|
2022-11-02 20:50:58 +01:00
|
|
|
``accelerator``, ``cpu``, ``custom`` and ``gpu``
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: RUSTICL_CL_VERSION
|
|
|
|
|
|
2022-10-19 00:10:12 +02:00
|
|
|
overwrites the auto detected OpenCL version of all devices. Specified as
|
2022-11-02 20:50:58 +01:00
|
|
|
``major.minor``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: RUSTICL_ENABLE
|
|
|
|
|
|
2022-10-19 00:10:12 +02:00
|
|
|
a comma-separated list of drivers to enable CL on. An optional list of
|
|
|
|
|
comma-separated integers can be passed per driver to specify which devices
|
|
|
|
|
to enable. Examples:
|
|
|
|
|
|
2022-11-02 20:50:58 +01:00
|
|
|
- ``RUSTICL_ENABLE=iris`` (enables all iris devices)
|
|
|
|
|
- ``RUSTICL_ENABLE=iris:1,radeonsi:0,2`` (enables second iris and first
|
2022-10-19 00:10:12 +02:00
|
|
|
and third radeonsi device)
|
2022-06-21 00:35:09 +02:00
|
|
|
|
2023-06-09 02:58:07 -06:00
|
|
|
Supported drivers (decent support with maybe a few conformance issues or bugs):
|
|
|
|
|
``iris``,
|
|
|
|
|
``llvmpipe``,
|
|
|
|
|
``nouveau``,
|
|
|
|
|
``panfrost``,
|
|
|
|
|
``radeonsi``,
|
|
|
|
|
Experimental drivers (unknown level of support, expect conformance issues or major bugs):
|
|
|
|
|
``r600``
|
|
|
|
|
|
2023-04-24 13:07:38 +02:00
|
|
|
.. envvar:: RUSTICL_FEATURES
|
|
|
|
|
|
|
|
|
|
a comma-separated list of features to enable. Those are disabled by default
|
|
|
|
|
as they might not be stable enough or break OpenCL conformance.
|
|
|
|
|
|
2023-04-24 13:08:07 +02:00
|
|
|
- ``fp64`` enables OpenCL double support
|
2025-05-23 11:12:01 -04:00
|
|
|
- ``intel`` enables various Intel OpenCL extensions
|
2023-04-24 13:08:07 +02:00
|
|
|
|
2023-04-04 02:41:45 +02:00
|
|
|
.. envvar:: RUSTICL_DEBUG
|
|
|
|
|
|
|
|
|
|
a comma-separated list of debug channels to enable.
|
|
|
|
|
|
2023-06-23 02:05:38 +02:00
|
|
|
- ``allow_invalid_spirv`` disables validation of any input SPIR-V
|
2023-05-30 12:52:29 +02:00
|
|
|
- ``clc`` dumps all OpenCL C source being compiled
|
2024-12-28 17:10:06 +01:00
|
|
|
- ``memory`` enables debugging of memory objects
|
2024-09-06 13:24:48 +02:00
|
|
|
- ``nir`` dumps nirs in various compilation stages. Might print nothing if shader caching is
|
|
|
|
|
enabled.
|
2024-08-27 12:35:11 +02:00
|
|
|
- ``no_reuse_context`` pipe_contexts are not recycled
|
2024-08-12 14:52:22 +02:00
|
|
|
- ``no_variants`` disable kernel variants (e.g. specialized binaries for offsets == 0)
|
2024-07-23 13:27:22 +02:00
|
|
|
- ``perf`` prints a warning when hitting slow paths once
|
|
|
|
|
- ``perfspam`` same as perf, but doesn't skip same warnings
|
2023-04-04 02:41:45 +02:00
|
|
|
- ``program`` dumps compilation logs to stderr
|
2023-08-22 21:17:33 +02:00
|
|
|
- ``sync`` waits on the GPU to complete after every event
|
2023-11-13 11:19:44 +01:00
|
|
|
- ``validate`` validates any internally generated SPIR-Vs, e.g. through compiling OpenCL C code
|
2023-04-04 02:41:45 +02:00
|
|
|
|
2023-12-18 23:06:11 +01:00
|
|
|
.. envvar:: RUSTICL_MAX_WORK_GROUPS
|
|
|
|
|
|
|
|
|
|
Limits the amount of threads per dimension in a work-group. Useful for splitting up long running
|
|
|
|
|
tasks to increase responsiveness or to simulate the lowering of huge global sizes for testing.
|
|
|
|
|
|
2023-06-23 02:11:34 +02:00
|
|
|
.. _clc-env-var:
|
|
|
|
|
|
|
|
|
|
clc environment variables
|
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
|
|
.. envvar:: CLC_DEBUG
|
|
|
|
|
|
|
|
|
|
a comma-separated list of debug channels to enable.
|
|
|
|
|
|
2023-12-05 18:59:22 +01:00
|
|
|
- ``dump_llvm`` Dumps all generated LLVM IRs
|
2023-06-23 02:11:34 +02:00
|
|
|
- ``dump_spirv`` Dumps all compiled, linked and specialized SPIR-Vs
|
|
|
|
|
- ``verbose`` Enable debug logging of clc code
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
Softpipe driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
-------------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: SOFTPIPE_DEBUG
|
|
|
|
|
|
2020-07-21 15:11:56 -07:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``vs``
|
|
|
|
|
Dump vertex shader assembly to stderr
|
|
|
|
|
``fs``
|
|
|
|
|
Dump fragment shader assembly to stderr
|
|
|
|
|
``gs``
|
|
|
|
|
Dump geometry shader assembly to stderr
|
|
|
|
|
``cs``
|
|
|
|
|
Dump compute shader assembly to stderr
|
|
|
|
|
``no_rast``
|
2021-02-03 13:06:51 +01:00
|
|
|
rasterization is disabled. For profiling purposes.
|
2020-07-21 15:11:56 -07:00
|
|
|
``use_llvm``
|
2022-10-25 12:27:47 +02:00
|
|
|
the Softpipe driver will try to use LLVM JIT for vertex
|
2020-07-21 15:11:56 -07:00
|
|
|
shading processing.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
|
|
|
|
LLVMpipe driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
-------------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: LP_NO_RAST
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set LLVMpipe will no-op rasterization
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LP_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of debug options is accepted. See the source
|
|
|
|
|
code for details.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LP_PERF
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of options to selectively no-op various parts
|
|
|
|
|
of the driver. See the source code for details.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: LP_NUM_THREADS
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
an integer indicating how many threads to use for rendering. Zero
|
|
|
|
|
turns off threading completely. The default value is the number of
|
|
|
|
|
CPU cores present.
|
|
|
|
|
|
|
|
|
|
VMware SVGA driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
----------------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: SVGA_FORCE_SWTNL
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
force use of software vertex transformation
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: SVGA_NO_SWTNL
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
don't allow software vertex transformation fallbacks (will often
|
|
|
|
|
result in incorrect rendering).
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: SVGA_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
for dumping shaders, constant buffers, etc. See the code for details.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: SVGA_EXTRA_LOGGING
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, enables extra logging to the ``vmware.log`` file, such as the
|
|
|
|
|
OpenGL program's name and command line arguments.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: SVGA_NO_LOGGING
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
if set, disables logging to the ``vmware.log`` file. This is useful
|
|
|
|
|
when using Valgrind because it otherwise crashes when initializing
|
|
|
|
|
the host log feature.
|
|
|
|
|
|
|
|
|
|
See the driver code for other, lesser-used variables.
|
|
|
|
|
|
|
|
|
|
VA-API environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
----------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: VAAPI_MPEG4_ENABLED
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
enable MPEG4 for VA-API, disabled by default.
|
|
|
|
|
|
|
|
|
|
VC4 driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
--------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: VC4_DEBUG
|
|
|
|
|
|
2022-03-26 00:38:36 +01:00
|
|
|
a comma-separated list of named flags, which do various things. Use
|
2022-11-02 20:50:58 +01:00
|
|
|
``VC4_DEBUG=help`` to print a list of available options.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-03-26 00:38:36 +01:00
|
|
|
V3D/V3DV driver environment variables
|
|
|
|
|
-------------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: V3D_DEBUG
|
|
|
|
|
|
|
|
|
|
a comma-separated list of debug options. Use ``V3D_DEBUG=help`` to
|
|
|
|
|
print a list of available options.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-03-21 20:33:25 +01:00
|
|
|
|
|
|
|
|
.. _radv env-vars:
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
RADV driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
---------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
2020-06-12 17:55:00 +01:00
|
|
|
``llvm``
|
|
|
|
|
enable LLVM compiler backend
|
2020-06-12 20:09:42 +02:00
|
|
|
``allbos``
|
|
|
|
|
force all allocated buffers to be referenced in submissions
|
2025-01-28 12:00:07 +01:00
|
|
|
``bo_history``
|
|
|
|
|
dump the BO history to /tmp/radv_bo_history.log after each BO operations
|
2020-06-12 20:09:42 +02:00
|
|
|
``checkir``
|
|
|
|
|
validate the LLVM IR before LLVM compiles the shader
|
2025-11-11 10:04:32 +01:00
|
|
|
``dumpibs``
|
|
|
|
|
dump IBs (command streams)
|
2024-11-07 14:12:01 +01:00
|
|
|
``dump_trap_handler``
|
|
|
|
|
dump the trap handler shader
|
2022-07-14 18:54:20 +02:00
|
|
|
``epilogs``
|
|
|
|
|
dump fragment shader epilogs
|
2023-03-24 10:18:17 +01:00
|
|
|
``extra_md``
|
2024-06-24 20:54:20 +02:00
|
|
|
add extra information in bo metadata to help tools (umr)
|
2020-08-10 00:10:38 +02:00
|
|
|
``forcecompress``
|
|
|
|
|
Enables DCC,FMASK,CMASK,HTILE in situations where the driver supports it
|
|
|
|
|
but normally does not deem it beneficial.
|
2020-10-19 18:37:26 +02:00
|
|
|
``hang``
|
2020-11-20 09:19:55 +01:00
|
|
|
enable GPU hangs detection and dump a report to
|
|
|
|
|
$HOME/radv_dumps_<pid>_<time> if a GPU hang is detected
|
2020-07-03 15:16:00 +02:00
|
|
|
``img``
|
|
|
|
|
Print image info
|
2020-06-12 20:09:42 +02:00
|
|
|
``info``
|
|
|
|
|
show GPU-related information
|
|
|
|
|
``metashaders``
|
|
|
|
|
dump internal meta shaders
|
2021-09-27 22:41:23 +01:00
|
|
|
``noatocdithering``
|
|
|
|
|
disable dithering for alpha to coverage
|
2020-06-12 20:09:42 +02:00
|
|
|
``nobinning``
|
|
|
|
|
disable primitive binning
|
2025-05-20 17:38:11 +02:00
|
|
|
``nobolist``
|
|
|
|
|
disable the global BO list when no features require it
|
2020-06-12 20:09:42 +02:00
|
|
|
``nocache``
|
|
|
|
|
disable shaders cache
|
|
|
|
|
``nocompute``
|
|
|
|
|
disable compute queue
|
|
|
|
|
``nodcc``
|
|
|
|
|
disable Delta Color Compression (DCC) on images
|
2021-02-28 02:59:25 +01:00
|
|
|
``nodisplaydcc``
|
|
|
|
|
disable Delta Color Compression (DCC) on displayable images
|
2024-04-08 08:15:25 +02:00
|
|
|
``noeso``
|
|
|
|
|
disable VK_EXT_shader_object
|
2020-06-12 20:09:42 +02:00
|
|
|
``nofastclears``
|
|
|
|
|
disable fast color/depthstencil clears
|
2022-11-08 15:09:02 +01:00
|
|
|
``nofmask``
|
|
|
|
|
disable FMASK compression on MSAA images (GFX6-GFX10.3)
|
2023-03-31 17:48:04 +02:00
|
|
|
``nogpl``
|
|
|
|
|
disable VK_EXT_graphics_pipeline_library
|
2020-06-12 20:09:42 +02:00
|
|
|
``nohiz``
|
|
|
|
|
disable HIZ for depthstencil images
|
2025-09-11 12:28:56 +02:00
|
|
|
``noibchaining``
|
|
|
|
|
disable chaining IB buffers
|
2023-10-31 13:41:37 +01:00
|
|
|
``nomeshshader``
|
|
|
|
|
disable mesh shader support on GFX10.3+
|
2020-06-12 20:09:42 +02:00
|
|
|
``nongg``
|
2022-05-04 21:44:18 +02:00
|
|
|
disable NGG for GFX10 and GFX10.3
|
radv: Enable NGG culling by default on GFX10.3, add nonggc debug flag.
This commit enables NGG culling on all GFX10.3 GPUs by default.
A new debug flag environment variable RADV_DEBUG=nonggc is added to
disable this feature on GPUs where it is enabled by default.
The previous perf test flag RADV_PERFTEST=nggc will not be needed on
GFX10.3 anymore but it can still be used to enable the feature on
GPUs where it isn't on by default.
Totals from 58239 (45.27% of 128647) affected shaders:
VGPRs: 1989752 -> 2049408 (+3.00%); split: -3.21%, +6.21%
SpillSGPRs: 675 -> 883 (+30.81%); split: -78.07%, +108.89%
CodeSize: 72205968 -> 153572764 (+112.69%)
LDS: 0 -> 227125248 (+inf%)
MaxWaves: 1614598 -> 1646934 (+2.00%); split: +3.08%, -1.08%
Instrs: 14202239 -> 29654042 (+108.80%)
Latency: 87986508 -> 136960419 (+55.66%); split: -0.23%, +55.89%
InvThroughput: 14444832 -> 21141875 (+46.36%); split: -0.01%, +46.37%
VClause: 340794 -> 493067 (+44.68%); split: -1.33%, +46.01%
SClause: 520983 -> 738636 (+41.78%); split: -0.25%, +42.03%
Copies: 775639 -> 2787382 (+259.37%)
Branches: 296911 -> 1225431 (+312.73%)
PreSGPRs: 1316896 -> 2057270 (+56.22%); split: -0.14%, +56.36%
PreVGPRs: 1473558 -> 1658432 (+12.55%); split: -1.44%, +13.99%
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13086>
2021-09-28 16:21:42 +02:00
|
|
|
``nonggc``
|
2025-03-05 08:43:53 +01:00
|
|
|
disable NGG culling for GFX10 and GFX10.3
|
2023-06-12 19:41:18 +02:00
|
|
|
``nort``
|
|
|
|
|
skip executing vkCmdTraceRays and ray queries (RT extensions will still be
|
|
|
|
|
advertised)
|
2021-03-03 17:24:34 +01:00
|
|
|
``notccompatcmask``
|
|
|
|
|
disable TC-compat CMASK for MSAA surfaces
|
2020-11-20 09:56:59 +01:00
|
|
|
``noumr``
|
2021-06-01 11:30:08 +02:00
|
|
|
disable UMR dumps during GPU hang detection (only with
|
2022-11-08 10:52:17 +01:00
|
|
|
:envvar:`RADV_DEBUG` = ``hang``)
|
2025-07-16 08:26:47 +02:00
|
|
|
``novideo``
|
|
|
|
|
disable all video extensions
|
2021-03-10 17:04:18 +01:00
|
|
|
``novrsflatshading``
|
|
|
|
|
disable VRS for flat shading (only on GFX10.3+)
|
2020-06-12 20:09:42 +02:00
|
|
|
``preoptir``
|
2024-11-12 10:56:19 +01:00
|
|
|
Dump backend IR (ACO or LLVM) before any optimizations.
|
2021-04-16 11:55:59 +01:00
|
|
|
``prologs``
|
|
|
|
|
dump vertex shader prologs
|
2024-11-11 10:02:43 +01:00
|
|
|
``psocachestats``
|
|
|
|
|
dump PSO cache stats (hits/misses) to verify precompilation of shaders
|
2025-03-03 16:34:44 +01:00
|
|
|
``pso_history``
|
|
|
|
|
dump PSO history (pipeline hash + shader VA) to /tmp/radv_pso_history.log.
|
|
|
|
|
Useful for debugging GPU hangs with UMR and Fossilize.
|
2020-06-12 20:09:42 +02:00
|
|
|
``shaders``
|
|
|
|
|
dump shaders
|
|
|
|
|
``shaderstats``
|
|
|
|
|
dump shader statistics
|
2022-08-29 10:53:28 +05:30
|
|
|
``shadowregs``
|
|
|
|
|
enable register shadowing
|
2020-06-12 20:09:42 +02:00
|
|
|
``spirv``
|
|
|
|
|
dump SPIR-V
|
|
|
|
|
``startup``
|
|
|
|
|
display info at startup
|
|
|
|
|
``syncshaders``
|
|
|
|
|
synchronize shaders after all draws/dispatches
|
|
|
|
|
``zerovram``
|
|
|
|
|
initialize all memory allocated in VRAM as zero
|
2024-11-11 12:53:17 +01:00
|
|
|
``vs``
|
|
|
|
|
Dump vertex shaders.
|
|
|
|
|
``tcs``
|
|
|
|
|
Dump tessellation control shaders.
|
|
|
|
|
``tes``
|
|
|
|
|
Dump tessellation evaluation shaders.
|
|
|
|
|
``gs``
|
|
|
|
|
Dump geometry shaders.
|
|
|
|
|
``ps``
|
|
|
|
|
Dump fragment shaders.
|
|
|
|
|
``task``
|
|
|
|
|
Dump task shaders.
|
|
|
|
|
``mesh``
|
|
|
|
|
Dump mesh shaders.
|
|
|
|
|
``cs``
|
|
|
|
|
Dump compute (and ray tracing) shaders.
|
2024-11-12 10:39:27 +01:00
|
|
|
``nir``
|
|
|
|
|
Dump NIR for selected shader stages.
|
2024-11-12 10:45:31 +01:00
|
|
|
``ir``
|
|
|
|
|
Dump backend IR (ACO or LLVM) for selected shader stages.
|
2024-11-12 10:40:07 +01:00
|
|
|
``asm``
|
|
|
|
|
Dump shader disassembly for selected shader stages.
|
2025-03-18 13:41:02 +01:00
|
|
|
``bvh4``
|
|
|
|
|
Use bvh4 encoding on GPUs that support bvh8 encoding.
|
2025-04-05 15:19:18 +02:00
|
|
|
``validatevas``
|
|
|
|
|
Enable tracking of VA ranges for radv_build_is_valid_va.
|
2025-12-11 14:57:08 +01:00
|
|
|
``vm``
|
|
|
|
|
add a gap between all VA allocations to check for page faults
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_FORCE_VRS
|
|
|
|
|
|
2021-01-19 16:12:01 +01:00
|
|
|
allow to force per-pipeline vertex VRS rates on GFX10.3+. This is only
|
2022-10-18 16:56:56 +02:00
|
|
|
forced for pipelines that don't explicitly use VRS or flat shading.
|
2022-01-25 13:50:19 +01:00
|
|
|
The supported values are 2x2, 1x2, 2x1 and 1x1. Only for testing purposes.
|
2021-01-19 16:12:01 +01:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_FORCE_VRS_CONFIG_FILE
|
|
|
|
|
|
2022-11-02 20:50:58 +01:00
|
|
|
similar to ``RADV_FORCE_VRS`` but allow to configure from a file. If present,
|
|
|
|
|
this supersedes ``RADV_FORCE_VRS``.
|
2022-01-25 14:09:28 +01:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_PERFTEST
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``cswave32``
|
|
|
|
|
enable wave32 for compute shaders (GFX10+)
|
|
|
|
|
``dccmsaa``
|
|
|
|
|
enable DCC for MSAA images
|
2023-02-24 14:56:20 +09:00
|
|
|
``dmashaders``
|
|
|
|
|
upload shaders to invisible VRAM (might be useful for non-resizable BAR systems)
|
2022-05-10 08:58:38 +02:00
|
|
|
``emulate_rt``
|
|
|
|
|
forces ray-tracing to be emulated in software on GFX10_3+ and enables
|
|
|
|
|
rt extensions with older hardware.
|
2020-06-12 20:09:42 +02:00
|
|
|
``gewave32``
|
|
|
|
|
enable wave32 for vertex/tess/geometry shaders (GFX10+)
|
2025-07-03 11:09:02 +02:00
|
|
|
``hic``
|
|
|
|
|
enable experimental implementation of VK_EXT_host_image_copy (GFX10+)
|
2020-06-12 20:09:42 +02:00
|
|
|
``localbos``
|
|
|
|
|
enable local BOs
|
2024-01-24 14:42:51 +09:00
|
|
|
``nggc``
|
2025-03-05 08:43:53 +01:00
|
|
|
enable NGG culling for GFX11+
|
2023-12-15 01:26:46 +09:00
|
|
|
``nircache``
|
|
|
|
|
cache per-stage NIR for graphics pipelines
|
2025-06-17 09:50:01 +02:00
|
|
|
``nogttspill``
|
|
|
|
|
disable GTT spilling when allocating memory
|
2020-12-08 00:25:56 +01:00
|
|
|
``nosam``
|
|
|
|
|
disable optimizations that get enabled when all VRAM is CPU visible.
|
2020-06-12 20:09:42 +02:00
|
|
|
``pswave32``
|
|
|
|
|
enable wave32 for pixel shaders (GFX10+)
|
2024-02-12 23:50:09 +01:00
|
|
|
``rtwave32``
|
|
|
|
|
enable wave32 for ray tracing shaders (GFX11+)
|
2024-01-24 14:42:51 +09:00
|
|
|
``rtwave64``
|
2024-02-12 23:50:09 +01:00
|
|
|
enable wave64 for ray tracing shaders (GFX10-10.3)
|
2021-02-27 20:16:21 +01:00
|
|
|
``sam``
|
|
|
|
|
enable optimizations to move more driver internal objects to VRAM.
|
2025-11-20 13:17:22 +01:00
|
|
|
``sparse``
|
|
|
|
|
enable experimental sparse binding and sparse residency on GPUs where we don't support it by default (pre Polaris)
|
2023-10-13 23:21:52 +02:00
|
|
|
``transfer_queue``
|
|
|
|
|
enable experimental transfer queue support (GFX9+, not yet spec compliant)
|
2023-02-07 08:39:44 +01:00
|
|
|
``video_decode``
|
2025-03-18 12:42:59 +01:00
|
|
|
enable experimental video decoding support on GFX6-9
|
2025-03-04 12:50:23 +01:00
|
|
|
``video_encode``
|
2025-03-18 12:42:59 +01:00
|
|
|
enable experimental video encoding support on GFX6-9
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_TEX_ANISO
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
force anisotropy filter (up to 16)
|
2021-06-01 11:30:08 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_THREAD_TRACE_BUFFER_SIZE
|
|
|
|
|
|
2021-10-22 09:41:56 +02:00
|
|
|
set the SQTT/RGP buffer size in bytes (default value is 32MiB, the buffer is
|
|
|
|
|
automatically resized if too small)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_THREAD_TRACE_CACHE_COUNTERS
|
|
|
|
|
|
2023-11-14 16:03:45 +00:00
|
|
|
enable/disable SQTT/RGP cache counters on GFX10+ (enabled by default)
|
2021-06-04 16:58:33 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_THREAD_TRACE_INSTRUCTION_TIMING
|
|
|
|
|
|
2021-10-22 09:41:56 +02:00
|
|
|
enable/disable SQTT/RGP instruction timing (enabled by default)
|
|
|
|
|
|
2023-05-01 14:57:45 +02:00
|
|
|
.. envvar:: RADV_THREAD_TRACE_QUEUE_EVENTS
|
|
|
|
|
|
|
|
|
|
enable/disable SQTT/RGP queue events (enabled by default)
|
|
|
|
|
|
2024-10-30 15:49:18 +01:00
|
|
|
.. envvar:: RADV_TRAP_HANDLER
|
|
|
|
|
|
|
|
|
|
enable/disable the experimental trap handler for debugging GPU hangs on GFX8
|
|
|
|
|
(disabled by default)
|
|
|
|
|
|
2024-10-30 16:27:28 +01:00
|
|
|
.. envvar:: RADV_TRAP_HANDLER_EXCP
|
|
|
|
|
|
|
|
|
|
a comma-separated list of named flags to configure the trap handler
|
|
|
|
|
exceptions, see the list below:
|
|
|
|
|
|
|
|
|
|
``mem_viol``
|
|
|
|
|
enable memory violation exception
|
|
|
|
|
``float_div_by_zero``
|
|
|
|
|
enable floating point division by zero exception
|
|
|
|
|
``float_overflow``
|
|
|
|
|
enable floating point overflow exception
|
|
|
|
|
``float_underflow``
|
|
|
|
|
enable floating point underflow exception
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADV_RRA_TRACE_VALIDATE
|
|
|
|
|
|
2022-08-21 02:16:49 +02:00
|
|
|
enable validation of captured acceleration structures. Can be
|
|
|
|
|
useful if RRA crashes upon opening a trace.
|
|
|
|
|
|
2023-10-04 20:19:28 +02:00
|
|
|
.. envvar:: RADV_RRA_TRACE_HISTORY_SIZE
|
|
|
|
|
|
|
|
|
|
set the ray history buffer size when capturing RRA traces (default value is 100MiB,
|
|
|
|
|
small buffers may result in incomplete traces)
|
|
|
|
|
|
|
|
|
|
.. envvar:: RADV_RRA_TRACE_RESOLUTION_SCALE
|
|
|
|
|
|
|
|
|
|
decrease the resolution used for dumping the ray history resolution when capturing
|
|
|
|
|
RRA traces. This allows for dumping every Nth invocation along each dispatch dimension.
|
|
|
|
|
|
2024-07-11 23:19:31 +02:00
|
|
|
.. envvar:: RADV_PROFILE_PSTATE
|
|
|
|
|
|
|
|
|
|
choose the specific pstate to enter when using thread tracing or when acquiring the
|
|
|
|
|
profiling lock for performance queries.
|
|
|
|
|
|
|
|
|
|
``standard``
|
|
|
|
|
force GPU clocks to an arbitrary fixed level
|
|
|
|
|
``min_sclk``
|
|
|
|
|
force the shader clock to its minimum level
|
|
|
|
|
``min_mclk``
|
|
|
|
|
force the memory clock to its minimum level
|
|
|
|
|
``peak``
|
|
|
|
|
force GPU clocks to their maximum level, this is the default value
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: ACO_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``validateir``
|
|
|
|
|
validate the ACO IR at various points of compilation (enabled by
|
|
|
|
|
default for debug/debugoptimized builds)
|
2024-08-09 15:20:16 +02:00
|
|
|
``novalidate``
|
|
|
|
|
don't enable some ACO validation by default in debug/debugoptimized builds
|
2020-06-12 20:09:42 +02:00
|
|
|
``validatera``
|
|
|
|
|
validate register assignment of ACO IR and catches many RA bugs
|
2020-08-19 10:40:35 +02:00
|
|
|
``force-waitcnt``
|
|
|
|
|
force emitting waitcnt states if there is something to wait for
|
2023-04-25 16:54:45 +02:00
|
|
|
``force-waitdeps``
|
|
|
|
|
force emitting waitcnt dependencies for debugging hazards on GFX10+
|
2020-08-26 14:24:45 +02:00
|
|
|
``novn``
|
|
|
|
|
disable value numbering
|
|
|
|
|
``noopt``
|
|
|
|
|
disable various optimizations
|
2023-04-25 16:52:06 +02:00
|
|
|
``nosched``
|
2024-08-05 15:44:30 +01:00
|
|
|
disable pre-RA, ILP and VOPD instruction scheduling
|
|
|
|
|
``nosched-ilp``
|
|
|
|
|
disable ILP instruction scheduling
|
|
|
|
|
``nosched-vopd``
|
|
|
|
|
disable VOPD instruction scheduling
|
2021-03-15 14:17:57 +00:00
|
|
|
``perfinfo``
|
|
|
|
|
print information used to calculate some pipeline statistics
|
2021-03-15 14:17:14 +00:00
|
|
|
``liveinfo``
|
|
|
|
|
print liveness and register demand information before scheduling
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2025-09-08 18:38:06 +02:00
|
|
|
.. envvar:: radv_gfx12_hiz_wa
|
|
|
|
|
|
|
|
|
|
choose the specific HiZ workaround to apply on GFX12 (RDNA4). The possible
|
|
|
|
|
values are:
|
|
|
|
|
|
|
|
|
|
``disabled``
|
|
|
|
|
no HiZ workaround is enabled, use at your own risk but optimal for performance
|
|
|
|
|
``partial``
|
|
|
|
|
mitigate the issue partially, potentially risky but performance should be
|
2025-07-14 15:26:16 +02:00
|
|
|
mostly optimal
|
2025-09-08 18:38:06 +02:00
|
|
|
``full``
|
|
|
|
|
mitigate the issue completely, no risk but performance might be decreased
|
2025-07-14 15:26:16 +02:00
|
|
|
(default value)
|
2025-09-08 18:38:06 +02:00
|
|
|
|
2022-10-20 10:49:22 +02:00
|
|
|
RadeonSI driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
-------------------------------------
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: radeonsi_no_infinite_interp
|
|
|
|
|
|
2022-03-24 17:16:49 +01:00
|
|
|
Kill PS with infinite interp coeff (might fix hangs)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: radeonsi_clamp_div_by_zero
|
|
|
|
|
|
2022-03-24 17:16:49 +01:00
|
|
|
Clamp div by zero (x / 0 becomes FLT_MAX instead of NaN) (might fix rendering corruptions)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: radeonsi_zerovram
|
|
|
|
|
|
2022-03-24 17:16:49 +01:00
|
|
|
Clear all allocated memory to 0 before usage (might fix rendering corruptions)
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: AMD_DEBUG
|
|
|
|
|
|
2020-06-12 20:09:42 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
2021-04-26 13:42:44 +02:00
|
|
|
|
|
|
|
|
``nodcc``
|
|
|
|
|
Disable DCC.
|
|
|
|
|
``nodccclear``
|
2022-03-24 17:16:49 +01:00
|
|
|
Disable DCC fast clear
|
|
|
|
|
``nodisplaydcc``
|
|
|
|
|
disable Delta Color Compression (DCC) on displayable images
|
2021-04-26 13:42:44 +02:00
|
|
|
``nodccmsaa``
|
|
|
|
|
Disable DCC for MSAA
|
|
|
|
|
``nodpbb``
|
2022-10-18 23:15:00 +05:30
|
|
|
Disable DPBB. Overrules the dpbb enable option.
|
2023-10-27 05:46:23 +05:30
|
|
|
``noefc``
|
2024-06-24 18:54:51 +02:00
|
|
|
Disable hardware based encoder color format conversion
|
2024-07-03 18:30:23 +02:00
|
|
|
``lowlatencyenc``
|
|
|
|
|
Enable low latency encoding
|
2021-04-26 13:42:44 +02:00
|
|
|
``notiling``
|
|
|
|
|
Disable tiling
|
|
|
|
|
``nofmask``
|
|
|
|
|
Disable MSAA compression
|
|
|
|
|
``nohyperz``
|
|
|
|
|
Disable Hyper-Z
|
|
|
|
|
``no2d``
|
|
|
|
|
Disable 2D tiling
|
|
|
|
|
``info``
|
|
|
|
|
Print driver information
|
|
|
|
|
``tex``
|
|
|
|
|
Print texture info
|
|
|
|
|
``compute``
|
|
|
|
|
Print compute info
|
|
|
|
|
``vm``
|
|
|
|
|
Print virtual addresses when creating resources
|
|
|
|
|
``vs``
|
|
|
|
|
Print vertex shaders
|
|
|
|
|
``ps``
|
|
|
|
|
Print pixel shaders
|
|
|
|
|
``gs``
|
|
|
|
|
Print geometry shaders
|
|
|
|
|
``tcs``
|
|
|
|
|
Print tessellation control shaders
|
|
|
|
|
``tes``
|
|
|
|
|
Print tessellation evaluation shaders
|
|
|
|
|
``cs``
|
|
|
|
|
Print compute shaders
|
|
|
|
|
``noir``
|
|
|
|
|
Don't print the LLVM IR
|
|
|
|
|
``nonir``
|
|
|
|
|
Don't print NIR when printing shaders
|
|
|
|
|
``noasm``
|
|
|
|
|
Don't print disassembled shaders
|
|
|
|
|
``preoptir``
|
|
|
|
|
Print the LLVM IR before initial optimizations
|
|
|
|
|
``w32ge``
|
|
|
|
|
Use Wave32 for vertex, tessellation, and geometry shaders.
|
|
|
|
|
``w32ps``
|
|
|
|
|
Use Wave32 for pixel shaders.
|
|
|
|
|
``w32cs``
|
|
|
|
|
Use Wave32 for computes shaders.
|
|
|
|
|
``w64ge``
|
|
|
|
|
Use Wave64 for vertex, tessellation, and geometry shaders.
|
|
|
|
|
``w64ps``
|
|
|
|
|
Use Wave64 for pixel shaders.
|
|
|
|
|
``w64cs``
|
|
|
|
|
Use Wave64 for computes shaders.
|
|
|
|
|
``checkir``
|
|
|
|
|
Enable additional sanity checks on shader IR
|
|
|
|
|
``mono``
|
|
|
|
|
Use old-style monolithic shaders compiled on demand
|
|
|
|
|
``nooptvariant``
|
|
|
|
|
Disable compiling optimized shader variants.
|
2025-10-27 01:19:04 -04:00
|
|
|
``usellvm``
|
|
|
|
|
Use LLVM as shader compiler when possible
|
2021-04-26 13:42:44 +02:00
|
|
|
``nowc``
|
|
|
|
|
Disable GTT write combining
|
|
|
|
|
``check_vm``
|
|
|
|
|
Check VM faults and dump debug info.
|
|
|
|
|
``reserve_vmid``
|
|
|
|
|
Force VMID reservation per context.
|
|
|
|
|
``nongg``
|
|
|
|
|
Disable NGG and use the legacy pipeline.
|
|
|
|
|
``nggc``
|
2024-11-05 01:30:48 +01:00
|
|
|
Always use NGG culling even on GPUs where it is disabled by default.
|
2021-04-26 13:42:44 +02:00
|
|
|
``nonggc``
|
|
|
|
|
Disable NGG culling.
|
|
|
|
|
``switch_on_eop``
|
|
|
|
|
Program WD/IA to switch on end-of-packet.
|
|
|
|
|
``nooutoforder``
|
|
|
|
|
Disable out-of-order rasterization
|
|
|
|
|
``dpbb``
|
2022-10-18 23:15:00 +05:30
|
|
|
Enable DPBB. Enable DPBB for gfx9 dGPU. Default enabled for gfx9 APU and >= gfx10.
|
2023-03-21 10:46:53 +01:00
|
|
|
``extra_md``
|
2024-06-24 20:54:20 +02:00
|
|
|
add extra information in bo metadata to help tools (umr)
|
2025-06-16 14:43:13 +05:30
|
|
|
``shadowregs``
|
|
|
|
|
Enable CP register shadowing in kernel queue.
|
|
|
|
|
``userqnoshadowregs``
|
|
|
|
|
Disable register shadowing in userqueue. This will also disable userqueue mcbp.
|
2025-07-30 12:20:40 +02:00
|
|
|
``novideotiling``
|
|
|
|
|
Disable tiling for video.
|
2025-07-30 13:34:59 +02:00
|
|
|
``nodectier1``
|
|
|
|
|
Disable tier1 for video decode.
|
|
|
|
|
``nodectier2``
|
|
|
|
|
Disable tier2 for video decode.
|
|
|
|
|
``nodectier3``
|
|
|
|
|
Disable tier3 for video decode.
|
|
|
|
|
``noenctier2``
|
|
|
|
|
Disable tier2 for video encode.
|
2025-09-17 16:31:18 +08:00
|
|
|
``export_modifier``
|
|
|
|
|
Export real modifier instead of DRM_FORMAT_MOD_INVALID to user. For example
|
|
|
|
|
by eglExportDMABUFImageQueryMESA.
|
2020-06-12 20:09:42 +02:00
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
r600 driver environment variables
|
2021-06-01 11:44:50 +02:00
|
|
|
---------------------------------
|
2021-04-26 13:52:59 +02:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: R600_DEBUG
|
|
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``nocpdma``
|
|
|
|
|
Disable CP DMA
|
|
|
|
|
``nosb``
|
|
|
|
|
Disable sb backend for graphics shaders
|
|
|
|
|
``sbcl``
|
|
|
|
|
Enable sb backend for compute shaders
|
|
|
|
|
``sbdry``
|
|
|
|
|
Don't use optimized bytecode (just print the dumps)
|
|
|
|
|
``sbstat``
|
|
|
|
|
Print optimization statistics for shaders
|
|
|
|
|
``sbdump``
|
|
|
|
|
Print IR dumps after some optimization passes
|
|
|
|
|
``sbnofallback``
|
|
|
|
|
Abort on errors instead of fallback
|
|
|
|
|
``sbdisasm``
|
|
|
|
|
Use sb disassembler for shader dumps
|
|
|
|
|
``sbsafemath``
|
|
|
|
|
Disable unsafe math optimizations
|
|
|
|
|
``nirsb``
|
|
|
|
|
Enable NIR with SB optimizer
|
|
|
|
|
``tex``
|
|
|
|
|
Print texture info
|
|
|
|
|
``nir``
|
|
|
|
|
Enable experimental NIR shaders
|
|
|
|
|
``compute``
|
|
|
|
|
Print compute info
|
|
|
|
|
``vm``
|
|
|
|
|
Print virtual addresses when creating resources
|
|
|
|
|
``info``
|
|
|
|
|
Print driver information
|
|
|
|
|
``fs``
|
|
|
|
|
Print fetch shaders
|
|
|
|
|
``vs``
|
|
|
|
|
Print vertex shaders
|
|
|
|
|
``gs``
|
|
|
|
|
Print geometry shaders
|
|
|
|
|
``ps``
|
|
|
|
|
Print pixel shaders
|
|
|
|
|
``cs``
|
|
|
|
|
Print compute shaders
|
|
|
|
|
``tcs``
|
|
|
|
|
Print tessellation control shaders
|
|
|
|
|
``tes``
|
|
|
|
|
Print tessellation evaluation shaders
|
|
|
|
|
``noir``
|
|
|
|
|
Don't print the LLVM IR
|
|
|
|
|
``notgsi``
|
|
|
|
|
Don't print the TGSI
|
|
|
|
|
``noasm``
|
|
|
|
|
Don't print disassembled shaders
|
|
|
|
|
``preoptir``
|
|
|
|
|
Print the LLVM IR before initial optimizations
|
|
|
|
|
``checkir``
|
|
|
|
|
Enable additional sanity checks on shader IR
|
|
|
|
|
``nooptvariant``
|
|
|
|
|
Disable compiling optimized shader variants.
|
|
|
|
|
``testdma``
|
|
|
|
|
Invoke SDMA tests and exit.
|
|
|
|
|
``testvmfaultcp``
|
|
|
|
|
Invoke a CP VM fault test and exit.
|
|
|
|
|
``testvmfaultsdma``
|
|
|
|
|
Invoke a SDMA VM fault test and exit.
|
|
|
|
|
``testvmfaultshader``
|
|
|
|
|
Invoke a shader VM fault test and exit.
|
|
|
|
|
``nodma``
|
|
|
|
|
Disable asynchronous DMA
|
|
|
|
|
``nohyperz``
|
|
|
|
|
Disable Hyper-Z
|
|
|
|
|
``noinvalrange``
|
|
|
|
|
Disable handling of INVALIDATE_RANGE map flags
|
|
|
|
|
``no2d``
|
|
|
|
|
Disable 2D tiling
|
|
|
|
|
``notiling``
|
|
|
|
|
Disable tiling
|
|
|
|
|
``switch_on_eop``
|
|
|
|
|
Program WD/IA to switch on end-of-packet.
|
|
|
|
|
``forcedma``
|
|
|
|
|
Use asynchronous DMA for all operations when possible.
|
|
|
|
|
``precompile``
|
|
|
|
|
Compile one shader variant at shader creation.
|
|
|
|
|
``nowc``
|
|
|
|
|
Disable GTT write combining
|
|
|
|
|
``check_vm``
|
|
|
|
|
Check VM faults and dump debug info.
|
|
|
|
|
``unsafemath``
|
|
|
|
|
Enable unsafe math shader optimizations
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: R600_DEBUG_COMPUTE
|
|
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
if set to ``true``, various compute-related debug information will
|
|
|
|
|
be printed to stderr. Defaults to ``false``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: R600_DUMP_SHADERS
|
|
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
if set to ``true``, NIR shaders will be printed to stderr. Defaults
|
|
|
|
|
to ``false``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: R600_HYPERZ
|
|
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
If set to ``false``, disables HyperZ optimizations. Defaults to ``true``.
|
2022-11-08 08:50:34 +01:00
|
|
|
|
|
|
|
|
.. envvar:: R600_NIR_DEBUG
|
|
|
|
|
|
2021-04-26 13:52:59 +02:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``instr``
|
|
|
|
|
Log all consumed nir instructions
|
|
|
|
|
``ir``
|
|
|
|
|
Log created R600 IR
|
|
|
|
|
``cc``
|
|
|
|
|
Log R600 IR to assembly code creation
|
|
|
|
|
``noerr``
|
|
|
|
|
Don't log shader conversion errors
|
|
|
|
|
``si``
|
|
|
|
|
Log shader info (non-zero values)
|
|
|
|
|
``reg``
|
|
|
|
|
Log register allocation and lookup
|
|
|
|
|
``io``
|
|
|
|
|
Log shader in and output
|
|
|
|
|
``ass``
|
|
|
|
|
Log IR to assembly conversion
|
|
|
|
|
``flow``
|
|
|
|
|
Log control flow instructions
|
|
|
|
|
``merge``
|
|
|
|
|
Log register merge operations
|
|
|
|
|
``nomerge``
|
|
|
|
|
Skip register merge step
|
|
|
|
|
``tex``
|
|
|
|
|
Log texture ops
|
|
|
|
|
``trans``
|
|
|
|
|
Log generic translation messages
|
|
|
|
|
|
2021-12-29 11:04:51 +01:00
|
|
|
r300 driver environment variables
|
|
|
|
|
---------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: RADEON_DEBUG
|
|
|
|
|
|
2021-12-29 11:04:51 +01:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``info``
|
|
|
|
|
Print hardware info (printed by default on debug builds
|
|
|
|
|
``fp``
|
|
|
|
|
Log fragment program compilation
|
|
|
|
|
``vp``
|
|
|
|
|
Log vertex program compilation
|
|
|
|
|
``draw``
|
|
|
|
|
Log draw calls
|
|
|
|
|
``swtcl``
|
|
|
|
|
Log SWTCL-specific info
|
|
|
|
|
``rsblock``
|
|
|
|
|
Log rasterizer registers
|
|
|
|
|
``psc``
|
|
|
|
|
Log vertex stream registers
|
|
|
|
|
``tex``
|
|
|
|
|
Log basic info about textures
|
|
|
|
|
``texalloc``
|
|
|
|
|
Log texture mipmap tree info
|
|
|
|
|
``rs``
|
|
|
|
|
Log rasterizer
|
|
|
|
|
``fb``
|
|
|
|
|
Log framebuffer
|
|
|
|
|
``cbzb``
|
|
|
|
|
Log fast color clear info
|
|
|
|
|
``hyperz``
|
|
|
|
|
Log HyperZ info
|
|
|
|
|
``scissor``
|
|
|
|
|
Log scissor info
|
|
|
|
|
``msaa``
|
|
|
|
|
Log MSAA resources
|
|
|
|
|
``anisohq``
|
|
|
|
|
Use high quality anisotropic filtering
|
|
|
|
|
``notiling``
|
|
|
|
|
Disable tiling
|
|
|
|
|
``noimmd``
|
|
|
|
|
Disable immediate mode
|
|
|
|
|
``noopt``
|
|
|
|
|
Disable shader optimizations
|
|
|
|
|
``nocbzb``
|
|
|
|
|
Disable fast color clear
|
|
|
|
|
``nozmask``
|
|
|
|
|
Disable zbuffer compression
|
|
|
|
|
``nohiz``
|
|
|
|
|
Disable hierarchical zbuffer
|
|
|
|
|
``nocmask``
|
|
|
|
|
Disable AA compression and fast AA clear
|
2021-12-29 11:07:17 +01:00
|
|
|
``notcl``
|
|
|
|
|
Disable hardware accelerated Transform/Clip/Lighting
|
2024-08-22 21:55:53 +02:00
|
|
|
``ieeemath``
|
|
|
|
|
Force IEEE versions of VS math opcodes where applicable
|
|
|
|
|
and also IEEE handling of multiply by zero (R5xx only)
|
|
|
|
|
``ffmath``
|
|
|
|
|
Force FF versions of VS math opcodes where applicable
|
|
|
|
|
and 0 * anything = 0 rules in FS
|
|
|
|
|
|
2021-12-29 11:04:51 +01:00
|
|
|
|
2022-09-05 12:20:56 -04:00
|
|
|
Asahi driver environment variables
|
|
|
|
|
----------------------------------
|
|
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: ASAHI_MESA_DEBUG
|
|
|
|
|
|
2022-09-05 12:20:56 -04:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``trace``
|
|
|
|
|
Trace work submitted to the GPU to files, using the agxdecode
|
|
|
|
|
infrastructure. This produces a large volume of data, so should be used
|
|
|
|
|
with caution. The traces are written to ``agxdecode.dump``,
|
|
|
|
|
but this can be overridden using ``AGXDECODE_DUMP_FILE``.
|
|
|
|
|
``no16``
|
|
|
|
|
Disable 16-bit floating point support. This may workaround application
|
|
|
|
|
bugs in certain OpenGL ES applications originally written for desktops. If
|
|
|
|
|
such applications are found in the wild, they should be fixed upstream (if
|
|
|
|
|
possible) or added in the Mesa-wide driconf (if closed source).
|
|
|
|
|
``dirty``
|
|
|
|
|
In debug builds only: disable dirty tracking optimizations.
|
2023-05-12 08:13:22 -04:00
|
|
|
``nowc``
|
|
|
|
|
Disable write-combining (force all allocations to be write-through). This
|
|
|
|
|
may be useful for diagnosing certain performance issues. Note imported
|
|
|
|
|
buffers may still be write-combined.
|
2022-09-05 12:20:56 -04:00
|
|
|
|
2022-11-08 08:50:34 +01:00
|
|
|
.. envvar:: AGX_MESA_DEBUG
|
|
|
|
|
|
2022-09-05 12:20:56 -04:00
|
|
|
a comma-separated list of named flags, which do various things:
|
|
|
|
|
|
|
|
|
|
``shaders``
|
|
|
|
|
Print shaders being compiled at various stages in the pipeline.
|
|
|
|
|
``shaderdb``
|
|
|
|
|
Print statistics about compiled shaders.
|
|
|
|
|
``verbose``
|
|
|
|
|
Disassemble in verbose mode, including additional information that may be
|
|
|
|
|
useful for debugging.
|
|
|
|
|
``internal``
|
|
|
|
|
Include even internal shaders (as produced for clears, blits, and such)
|
|
|
|
|
when printing shaders. Without this flag, internal shaders are ignored by
|
|
|
|
|
the shaders and shaderdb flags.
|
|
|
|
|
``novalidate``
|
|
|
|
|
In debug builds only: skip internal intermediate representation validation.
|
|
|
|
|
``noopt``
|
|
|
|
|
Disable various backend optimizations.
|
|
|
|
|
|
2022-05-26 09:45:28 +01:00
|
|
|
.. _imagination env-vars:
|
|
|
|
|
|
|
|
|
|
PowerVR driver environment variables
|
|
|
|
|
------------------------------------------------
|
|
|
|
|
|
2023-01-11 11:40:43 +01:00
|
|
|
.. envvar:: PVR_DEBUG
|
2023-01-11 13:15:38 +01:00
|
|
|
|
2024-04-01 11:42:51 +01:00
|
|
|
A comma-separated list of debug options. Use ``PVR_DEBUG=help`` to
|
2023-01-11 13:15:38 +01:00
|
|
|
print a list of available options.
|
2022-05-26 09:45:28 +01:00
|
|
|
|
2022-12-23 23:22:10 +00:00
|
|
|
.. envvar:: ROGUE_DEBUG
|
|
|
|
|
|
|
|
|
|
a comma-separated list of named flags for the Rogue compiler,
|
|
|
|
|
which do various things:
|
|
|
|
|
|
|
|
|
|
``nir``
|
|
|
|
|
Print the input NIR to stdout.
|
|
|
|
|
``nir_passes``
|
|
|
|
|
Print the output of each NIR pass to stdout.
|
|
|
|
|
``ir``
|
|
|
|
|
Print the input Rogue IR to stdout.
|
|
|
|
|
``ir_passes``
|
|
|
|
|
Print the output of each Rogue IR pass to stdout.
|
|
|
|
|
``ir_details``
|
|
|
|
|
Includes additional details when printing Rogue IR.
|
|
|
|
|
``vld_skip``
|
|
|
|
|
Skips the compiler validation step.
|
|
|
|
|
``vld_nonfatal``
|
|
|
|
|
Prints all the validation errors instead of stopping after the first.
|
|
|
|
|
|
|
|
|
|
.. envvar:: ROGUE_COLOR
|
|
|
|
|
|
|
|
|
|
if set to ``auto`` Rogue IR will be colorized if stdout is not a pipe.
|
|
|
|
|
Color is forced off if set to ``off``/``0`` or on if set to ``on``/``1``.
|
|
|
|
|
Defaults to ``auto``.
|
|
|
|
|
|
2024-04-05 20:28:54 +01:00
|
|
|
.. envvar:: PCO_DEBUG
|
|
|
|
|
|
|
|
|
|
A comma-separated list of named flags for the PCO compiler,
|
|
|
|
|
which control various compilation options:
|
|
|
|
|
|
|
|
|
|
``val_skip``
|
|
|
|
|
Skip IR validation.
|
|
|
|
|
|
2024-11-13 22:58:16 +00:00
|
|
|
``reindex``
|
|
|
|
|
Reindex IR at the end of each pass.
|
|
|
|
|
|
2025-01-24 17:56:54 +00:00
|
|
|
``no_pred_cf``
|
|
|
|
|
No predicated execution in CF.
|
|
|
|
|
|
2024-04-05 20:28:54 +01:00
|
|
|
.. envvar:: PCO_SKIP_PASSES
|
|
|
|
|
|
|
|
|
|
A comma-separated list of passes to skip.
|
|
|
|
|
|
|
|
|
|
.. envvar:: PCO_PRINT
|
|
|
|
|
|
|
|
|
|
A comma-separated list of named flags for the PCO compiler,
|
|
|
|
|
which control debug printing options:
|
|
|
|
|
|
|
|
|
|
``vs``
|
|
|
|
|
Print the IR for vertex shaders.
|
|
|
|
|
``fs``
|
|
|
|
|
Print the IR for fragment shaders.
|
|
|
|
|
``cs``
|
|
|
|
|
Print the IR for compute shaders.
|
|
|
|
|
``all``
|
|
|
|
|
Print the IR for all shaders.
|
|
|
|
|
``internal``
|
|
|
|
|
Print the IR for internal shader types.
|
|
|
|
|
``passes``
|
|
|
|
|
Print the IR after each pass.
|
|
|
|
|
``nir``
|
|
|
|
|
Print the resulting NIR.
|
|
|
|
|
``binary``
|
|
|
|
|
Print the resulting binary.
|
2024-05-21 16:54:36 +01:00
|
|
|
``verbose``
|
|
|
|
|
Print verbose IR.
|
2024-11-13 23:04:14 +00:00
|
|
|
``ra``
|
|
|
|
|
Print register alloc info.
|
2024-04-05 20:28:54 +01:00
|
|
|
|
|
|
|
|
.. envvar:: PCO_COLOR
|
|
|
|
|
|
|
|
|
|
if set to ``auto`` PCO IR will be colorized if stdout is not a pipe.
|
|
|
|
|
Color is forced off if set to ``off``/``0`` or on if set to ``on``/``1``.
|
|
|
|
|
Defaults to ``auto``.
|
|
|
|
|
|
2022-11-08 11:10:45 +01:00
|
|
|
i915 driver environment variables
|
|
|
|
|
---------------------------------
|
|
|
|
|
|
|
|
|
|
.. envvar:: I915_DEBUG
|
|
|
|
|
|
|
|
|
|
Debug flags for the i915 driver.
|
|
|
|
|
|
|
|
|
|
.. envvar:: I915_NO_HW
|
|
|
|
|
|
|
|
|
|
Stop the i915 driver from submitting commands to the hardware.
|
|
|
|
|
|
|
|
|
|
.. envvar:: I915_DUMP_CMD
|
|
|
|
|
|
|
|
|
|
Dump all commands going to the hardware.
|
|
|
|
|
|
|
|
|
|
Freedreno driver environment variables
|
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
|
|
.. envvar:: FD_MESA_DEBUG
|
|
|
|
|
|
|
|
|
|
Debug flags for the Freedreno driver.
|
2023-01-11 15:50:08 +01:00
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
Other Gallium drivers have their own environment variables. These may
|
|
|
|
|
change frequently so the source code should be consulted for details.
|
2024-04-01 17:04:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Vulkan loader environment variables
|
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
|
|
These variable are handled by `Khronos' Vulkan loader
|
|
|
|
|
<https://github.com/KhronosGroup/Vulkan-Loader>`__, *not by Mesa*, but they
|
|
|
|
|
are documented here as we reference them in other places in our docs.
|
|
|
|
|
|
|
|
|
|
.. envvar:: VK_DRIVER_FILES
|
|
|
|
|
|
|
|
|
|
Force the loader to use the specific driver JSON files. The value contains
|
|
|
|
|
a list of delimited full path listings to driver JSON Manifest files
|
|
|
|
|
and/or paths to folders containing driver JSON files.
|
|
|
|
|
|
|
|
|
|
See `Vulkan loader docs on environment variables`_.
|
|
|
|
|
|
|
|
|
|
.. envvar:: VK_LOADER_LAYERS_ENABLE
|
|
|
|
|
|
|
|
|
|
A comma-delimited list of globs to search for in known layers and used to
|
|
|
|
|
select only the layers whose layer name matches one or more of the
|
|
|
|
|
provided globs.
|
|
|
|
|
Known layers are those which are found by the loader taking into account
|
|
|
|
|
default search paths and other environment variables (like VK_LAYER_PATH).
|
|
|
|
|
|
|
|
|
|
See `Vulkan loader docs on environment variables`_.
|
|
|
|
|
|
|
|
|
|
.. envvar:: VK_ICD_FILENAMES
|
|
|
|
|
|
|
|
|
|
`Deprecated`_, replaced by :envvar:`VK_DRIVER_FILES`.
|
|
|
|
|
|
|
|
|
|
.. envvar:: VK_INSTANCE_LAYERS
|
|
|
|
|
|
|
|
|
|
`Deprecated`_, replaced by :envvar:`VK_LOADER_LAYERS_ENABLE`.
|
|
|
|
|
|
|
|
|
|
.. _Vulkan loader docs on environment variables: https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#table-of-debug-environment-variables
|
|
|
|
|
.. _Deprecated: https://github.com/KhronosGroup/Vulkan-Loader/blob/main/docs/LoaderInterfaceArchitecture.md#deprecated-environment-variables
|