trace: Get the trace file from the GALLIUM_TRACE option itself.
[mesa.git] / src / gallium / drivers / trace / README
1 This directory contains a Gallium3D pipe driver which traces all incoming calls.
2
3 To build, invoke scons on the top dir as
4
5 scons statetrackers=mesa drivers=softpipe,i915simple,trace winsys=xlib
6
7 To use do
8
9 ln -s libGL.so build/linux-x86-debug/gallium/winsys/xlib/libGL.so.1
10 export LD_LIBRARY_PATH=$PWD/build/linux-x86-debug/gallium/winsys/xlib
11
12 ensure the right libGL.so is being picked by doing
13
14 ldd `which glxinfo`
15
16 and then try running
17
18 GALLIUM_TRACE=tri.trace ./progs/trivial/tri
19
20 which should create a tri.trace file, which is an XML file. You can view copying
21 trace.xsl to the same directory, and opening with a XSLT capable browser like
22 Firefox or Internet Explorer.
23
24 --
25 Jose Fonseca <jrfonseca@tungstengraphics.com>