mesa/src/gallium/auxiliary/driver_trace
Matti Hamalainen bbc4ca5d7d aux/trace: cosmetic cleanup
Fix up some function argument indentation alignments and
adjust few other small cosmetics.

Signed-off-by: Matti Hamalainen <ccr@tnsp.org>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14398>
2022-01-19 11:57:17 +00:00
..
enums2names.py aux/trace: print enum names instead of integer values in gallium traces 2022-01-19 11:57:17 +00:00
README gallium: remove more "state tracker" occurences 2020-05-13 13:47:27 -04:00
tr_context.c aux/trace: print enum names instead of integer values in gallium traces 2022-01-19 11:57:17 +00:00
tr_context.h gallium/u_threaded: Split out options struct 2021-10-07 17:32:25 +00:00
tr_dump.c aux/trace: enhance trigger mode to dump context states during bind 2021-04-13 02:04:22 +00:00
tr_dump.h aux/trace: print enum names instead of integer values in gallium traces 2022-01-19 11:57:17 +00:00
tr_dump_defines.h util: Move gallium's PIPE_FORMAT utils to /util/format/ 2019-11-14 10:47:20 -08:00
tr_dump_state.c aux/trace: fix PIPE_QUERY_PIPELINE_STATISTICS_SINGLE tracing 2021-11-05 14:36:54 -04:00
tr_dump_state.h aux/trace: fix PIPE_QUERY_PIPELINE_STATISTICS_SINGLE tracing 2021-11-05 14:36:54 -04:00
tr_public.h gallium: switch boolean -> bool at the interface definitions 2019-07-22 22:13:51 -04:00
tr_screen.c aux/trace: cosmetic cleanup 2022-01-19 11:57:17 +00:00
tr_screen.h aux/trace: hook tc methods 2021-05-22 12:37:57 +00:00
tr_texture.c gallium: split transfer_(un)map into buffer_(un)map and texture_(un)map 2021-05-21 17:38:04 +00:00
tr_texture.h aux/trace: use private refcounts for samplerviews 2021-09-09 19:27:35 +00:00
trace.xsl

                             TRACE PIPE DRIVER


= About =

This directory contains a Gallium3D trace debugger pipe driver.
It can traces all incoming calls.


= Usage =

== Tracing ==

For tracing then do

 GALLIUM_TRACE=tri.trace trivial/tri

which should create a tri.trace file, which is an XML file. You can view copying 
trace.xsl to the same directory, and opening with a XSLT capable browser such as 
Firefox or Internet Explorer.

For long traces you can use the

  src/gallium/tools/trace/dump.py tri.trace | less -R


== Remote debugging ==

For remote debugging see:

  src/gallium/auxiliary/driver_rbug/README


= Integrating =

You can integrate the trace pipe driver either inside the gallium frontend or the 
target. The procedure on both cases is the same. Let's assume you have a 
pipe_screen obtained by the usual means (variable and function names are just
for illustration purposes):

  real_screen = real_screen_create(...);
  
The trace screen is then created by doing

  trace_screen = trace_screen_create(real_screen);

You can then simply use trace_screen instead of real_screen.

You can create as many contexts you wish from trace_screen::context_create they
are automatically wrapped by trace_screen.


--
Jose Fonseca <jfonseca@vmware.com>
Jakob Bornecrantz <jakob@vmware.com>