diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:46:45 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:46:45 +0000 |
commit | 0784c49c0f8fcc8b3abd4c9286d9fd8bc089dd7d (patch) | |
tree | a6394e3e264a0f80b57f4ce0f5d9526aa543d4b0 /lib/mesa/src/gallium/tools/trace/README.txt | |
parent | d91d0007eecf589ea5699e34aa4d748fce2c57b2 (diff) |
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/tools/trace/README.txt')
-rw-r--r-- | lib/mesa/src/gallium/tools/trace/README.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/tools/trace/README.txt b/lib/mesa/src/gallium/tools/trace/README.txt new file mode 100644 index 000000000..830cd150f --- /dev/null +++ b/lib/mesa/src/gallium/tools/trace/README.txt @@ -0,0 +1,39 @@ +These directory contains tools for manipulating traces produced by the trace +pipe driver. + + +Most debug builds of state trackers already load the trace driver by default. +To produce a trace do + + export GALLIUM_TRACE=foo.gtrace + +and run the application. You can choose any name, but the .gtrace is +recommended to avoid confusion with the .trace produced by apitrace. + + +You can dump a trace by doing + + ./dump.py foo.gtrace | less + + +You can dump a JSON file describing the static state at any given draw call +(e.g., 12345) by +doing + + ./dump_state.py -v -c 12345 foo.gtrace > foo.json + +or by specifying the n-th (e.g, 1st) draw call by doing + + ./dump_state.py -v -d 1 foo.gtrace > foo.json + +The state is derived from the call sequence in the trace file, so no dynamic +(eg. rendered textures) is included. + + +You can compare two JSON files by doing + + ./diff_state.py foo.json boo.json | less + +If you're investigating a regression in a state tracker, you can obtain a good +and bad trace, dump respective state in JSON, and then compare the states to +identify the problem. |