mesa/src/gallium/auxiliary/driver_trace
2023-07-16 22:11:49 +01:00
..
enums2names.py aux/trace: dump blend states with enums 2023-03-28 16:17:39 +00:00
README
tr_context.c aux/trace: fix bindless texture dumping 2023-07-16 22:11:49 +01:00
tr_context.h gallium/u_threaded: Split out options struct 2021-10-07 17:32:25 +00:00
tr_dump.c aux/trace: fix GALLIUM_TRACE_NIR handling 2023-03-28 16:17:39 +00:00
tr_dump.h aux/trace: dump blend states with enums 2023-03-28 16:17:39 +00:00
tr_dump_defines.h gallivm/st/lvp: add flags arg to get_query_result_resource api. 2022-02-15 10:12:01 +10:00
tr_dump_state.c aux/trace: dump blend states with enums 2023-03-28 16:17:39 +00:00
tr_dump_state.h aux/trace: fix sampler view dumping 2022-06-03 04:24:56 +00:00
tr_public.h
tr_screen.c gallium: add pipe_screen::driver_thread_add_job 2022-09-10 19:01:56 +00:00
tr_screen.h util: Remove os/os_thread.h and replace #include "os/os_thread.h" with #include "util/u_thread.h" 2022-11-08 05:21:42 +00:00
tr_texture.c gallium/driver_trace: remove simple_list.h 2022-04-22 09:39:45 -07: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>