trace: Make stream a global variable.
[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 export GALLIUM_TRACE=y
12
13 ensure the right libGL.so is being picked by doing
14
15 ldd `which glxinfo`
16
17 and then try running
18
19 glxinfo
20
21 which should create a gallium.*.trace file, which is an XML file. You can view
22 copying trace.xsl and trace.css to the same directory, and opening with a
23 XSLT capable browser like Firefox or Internet Explorer.
24
25 This is still work in progress, namely:
26 - surface writes are not traced
27 - no way to know the start/end of a frame
28
29 --
30 Jose Fonseca <jrfonseca@tungstengraphics.com>