trace: Make stream a global variable.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 14 Aug 2008 11:50:52 +0000 (12:50 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Aug 2008 09:35:18 +0000 (10:35 +0100)
commit196167e9d5c84f9f6dfe6f15b3e2f2c3ec6825dc
treead5899807c7bb563edc35e5b7f62f2a2abe96ab7
parent2f34c851c01321b177bc3074755e97af270ec994
trace: Make stream a global variable.

This not only simplifies the code, but allows to use atexit() to ensure
the log is closed when applications don't exit cleanly.
12 files changed:
src/gallium/drivers/trace/README
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/trace/tr_context.h
src/gallium/drivers/trace/tr_dump.c
src/gallium/drivers/trace/tr_dump.h
src/gallium/drivers/trace/tr_screen.c
src/gallium/drivers/trace/tr_screen.h
src/gallium/drivers/trace/tr_state.c
src/gallium/drivers/trace/tr_state.h
src/gallium/drivers/trace/tr_stream.h
src/gallium/drivers/trace/tr_winsys.c
src/gallium/drivers/trace/tr_winsys.h