2010-08-15 00:59:57 +01:00
|
|
|
Debugging
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
Debugging utilities in gallium.
|
|
|
|
|
|
|
|
|
|
Debug Variables
|
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
|
2010-08-15 03:26:58 -07:00
|
|
|
All drivers respond to a set of common debug environment variables, as well as
|
|
|
|
|
some driver-specific variables. Set them as normal environment variables for
|
|
|
|
|
the platform or operating system you are running. For example, for Linux this
|
|
|
|
|
can be done by typing "export var=value" into a console and then running the
|
2010-08-15 00:59:57 +01:00
|
|
|
program from that console.
|
|
|
|
|
|
|
|
|
|
Common
|
|
|
|
|
""""""
|
|
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: GALLIUM_TRACE
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
If set, this variable will cause the :ref:`trace` output to be written to the
|
|
|
|
|
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.
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: GALLIUM_TRACE_TC
|
2021-04-12 12:55:33 -04:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
If enabled while :ref:`trace` is active, this variable specifies that the threaded context
|
|
|
|
|
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.
|
2021-04-12 12:55:33 -04:00
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: GALLIUM_TRACE_TRIGGER
|
2021-04-06 09:40:21 -04:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
If set while :ref:`trace` is active, this variable specifies a filename to monitor.
|
|
|
|
|
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.
|
2021-04-06 09:40:21 -04:00
|
|
|
|
2010-08-15 03:26:58 -07:00
|
|
|
Driver-specific
|
2010-08-15 00:59:57 +01:00
|
|
|
"""""""""""""""
|
|
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: I915_DEBUG
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
Debug :ref:`flags` for the i915 driver.
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: I915_NO_HW
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
Stop the i915 driver from submitting commands to the hardware.
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: I915_DUMP_CMD
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
Dump all commands going to the hardware.
|
2010-08-15 00:59:57 +01:00
|
|
|
|
2022-11-08 10:24:07 +01:00
|
|
|
.. envvar:: FD_MESA_DEBUG
|
2013-03-26 14:48:45 +01:00
|
|
|
|
2022-11-08 10:18:02 +01:00
|
|
|
Debug :ref:`flags` for the Freedreno driver.
|
2013-03-26 14:48:45 +01:00
|
|
|
|
2010-08-15 00:59:57 +01:00
|
|
|
|
|
|
|
|
.. _flags:
|
|
|
|
|
|
|
|
|
|
Flags
|
|
|
|
|
"""""
|
|
|
|
|
|
2010-08-15 03:26:58 -07:00
|
|
|
The variables of type "flags" all take a string with comma-separated flags to
|
|
|
|
|
enable different debugging for different parts of the drivers or state
|
|
|
|
|
tracker. If set to "help", the driver will print a list of flags which the
|
|
|
|
|
variable accepts. Order does not matter.
|