mesa/docs/gallium/debugging.rst

67 lines
2 KiB
ReStructuredText
Raw Normal View History

2010-08-15 00:59:57 +01:00
Debugging
=========
Debugging utilities in gallium.
Debug Variables
^^^^^^^^^^^^^^^
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
""""""
.. envvar:: GALLIUM_TRACE
2010-08-15 00:59:57 +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
.. envvar:: GALLIUM_TRACE_TC
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.
.. envvar:: GALLIUM_TRACE_TRIGGER
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.
Driver-specific
2010-08-15 00:59:57 +01:00
"""""""""""""""
.. envvar:: I915_DEBUG
2010-08-15 00:59:57 +01:00
Debug :ref:`flags` for the i915 driver.
2010-08-15 00:59:57 +01:00
.. envvar:: I915_NO_HW
2010-08-15 00:59:57 +01:00
Stop the i915 driver from submitting commands to the hardware.
2010-08-15 00:59:57 +01:00
.. envvar:: I915_DUMP_CMD
2010-08-15 00:59:57 +01:00
Dump all commands going to the hardware.
2010-08-15 00:59:57 +01:00
.. envvar:: FD_MESA_DEBUG
Debug :ref:`flags` for the Freedreno driver.
2010-08-15 00:59:57 +01:00
.. _flags:
Flags
"""""
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.