aux/trace: add GALLIUM_TRACE_TRIGGER mode
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 6 Apr 2021 13:40:21 +0000 (09:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 8 Apr 2021 00:01:31 +0000 (00:01 +0000)
commit193c02e0cfcf832e4556ada5de251f32e6ca4768
treed034253e3edd5c074608d7f1fcc1adeaa543dc96
parentad88e2f959daa610b5d9b3c65c488514ec8ff475
aux/trace: add GALLIUM_TRACE_TRIGGER mode

similar to amd/radv driver debug modes for sqtt, this specifies a filename
which is checked on every flush(PIPE_FLUSH_END_OF_FRAME); when it exists,
the next frame (and only that frame) is captured into the trace

to use, specify a file with the env var, run your app, and 'touch /path/to/file'
when you want to capture a trace

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10058>
docs/gallium/debugging.rst
src/gallium/auxiliary/driver_trace/tr_context.c
src/gallium/auxiliary/driver_trace/tr_dump.c
src/gallium/auxiliary/driver_trace/tr_dump.h