diff options
author | José Fonseca <[email protected]> | 2008-08-08 23:11:56 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-08-09 14:10:24 +0100 |
commit | 6c7aff209ca3b310008dd345836ebc020d2db004 (patch) | |
tree | 44548715ebecf238714b7d6a100fae7420590110 /src/gallium/drivers/trace/tr_screen.c | |
parent | fcfe63805d1a4b1815dec7d85a21772d02ac12b8 (diff) |
trace: Trace pipe_winsys calls.
Diffstat (limited to 'src/gallium/drivers/trace/tr_screen.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_screen.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c index 3a48654609a..b40d56bcff3 100644 --- a/src/gallium/drivers/trace/tr_screen.c +++ b/src/gallium/drivers/trace/tr_screen.c @@ -30,6 +30,7 @@ #include "tr_stream.h" #include "tr_dump.h" #include "tr_state.h" +#include "tr_winsys.h" #include "tr_screen.h" @@ -338,10 +339,6 @@ trace_screen_destroy(struct pipe_screen *_screen) trace_dump_call_end(stream); - trace_dump_trace_end(stream); - - trace_stream_close(tr_scr->stream); - FREE(tr_scr); } @@ -375,11 +372,9 @@ trace_screen_create(struct pipe_screen *screen) tr_scr->screen = screen; - tr_scr->stream = trace_stream_create("gallium", "trace"); + tr_scr->stream = trace_winsys(screen->winsys)->stream; if(!tr_scr->stream) return NULL; - trace_dump_trace_begin(tr_scr->stream, 0); - return &tr_scr->base; } |