mesa/src/gallium/auxiliary/driver_trace
Jesse Natalie acba2bbb0e gallium, mesa: Support setting timeline semaphore values
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17446>
2022-07-14 03:45:17 +00:00
..
README
enums2names.py aux/trace: print enum names instead of integer values in gallium traces 2022-01-19 11:57:17 +00:00
tr_context.c trace: Fix framebuffer state serialization. 2022-06-28 09:54:29 +00:00
tr_context.h gallium/u_threaded: Split out options struct 2021-10-07 17:32:25 +00:00
tr_dump.c trace: Allow to control nir dumping via an environment variable. 2022-06-28 09:54:29 +00:00
tr_dump.h trace: Dump NIR. 2022-06-28 09:54:29 +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 mesa/st: add PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_FREEDRENO 2022-07-07 20:39:30 +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, mesa: Support setting timeline semaphore values 2022-07-14 03:45:17 +00:00
tr_screen.h gallium: Learn about kopper 2022-04-07 00:17:40 +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

README

                             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>