Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
Makefile.am | D | 23-Nov-2023 | 275 | 16 | 11 | |
Makefile.sources | D | 22-Nov-2023 | 207 | 14 | 13 | |
README | D | 22-Nov-2023 | 1.3 KiB | 56 | 30 | |
SConscript | D | 22-Nov-2023 | 224 | 15 | 9 | |
meson.build | D | 23-Nov-2023 | 1.5 KiB | 30 | 25 | |
tr_context.c | D | 23-Nov-2023 | 54.9 KiB | 1,949 | 1,417 | |
tr_context.h | D | 22-Nov-2023 | 2 KiB | 78 | 33 | |
tr_dump.c | D | 23-Nov-2023 | 11.6 KiB | 600 | 434 | |
tr_dump.h | D | 23-Nov-2023 | 5.7 KiB | 191 | 118 | |
tr_dump_defines.h | D | 23-Nov-2023 | 1.8 KiB | 59 | 21 | |
tr_dump_state.c | D | 23-Nov-2023 | 26.6 KiB | 962 | 722 | |
tr_dump_state.h | D | 23-Nov-2023 | 3.5 KiB | 95 | 36 | |
tr_public.h | D | 22-Nov-2023 | 1.6 KiB | 51 | 16 | |
tr_screen.c | D | 23-Nov-2023 | 18 KiB | 685 | 453 | |
tr_screen.h | D | 22-Nov-2023 | 1.9 KiB | 66 | 19 | |
tr_texture.c | D | 23-Nov-2023 | 3.3 KiB | 120 | 67 | |
tr_texture.h | D | 23-Nov-2023 | 2.9 KiB | 123 | 65 | |
trace.xsl | D | 22-Nov-2023 | 4.6 KiB | 197 | 146 |
README
1 TRACE PIPE DRIVER 2 3 4= About = 5 6This directory contains a Gallium3D trace debugger pipe driver. 7It can traces all incoming calls. 8 9 10= Usage = 11 12== Tracing == 13 14For tracing then do 15 16 GALLIUM_TRACE=tri.trace trivial/tri 17 18which should create a tri.trace file, which is an XML file. You can view copying 19trace.xsl to the same directory, and opening with a XSLT capable browser such as 20Firefox or Internet Explorer. 21 22For long traces you can use the 23 24 src/gallium/tools/trace/dump.py tri.trace | less -R 25 26 27== Remote debugging == 28 29For remote debugging see: 30 31 src/gallium/drivers/rbug/README 32 33 34= Integrating = 35 36You can integrate the trace pipe driver either inside the state tracker or the 37target. The procedure on both cases is the same. Let's assume you have a 38pipe_screen obtained by the usual means (variable and function names are just 39for illustration purposes): 40 41 real_screen = real_screen_create(...); 42 43The trace screen is then created by doing 44 45 trace_screen = trace_screen_create(real_screen); 46 47You can then simply use trace_screen instead of real_screen. 48 49You can create as many contexts you wish from trace_screen::context_create they 50are automatically wrapped by trace_screen. 51 52 53-- 54Jose Fonseca <jfonseca@vmware.com> 55Jakob Bornecrantz <jakob@vmware.com> 56