summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_winsys.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-14 10:46:38 +0100
committerJosé Fonseca <[email protected]>2008-08-14 11:01:42 +0100
commit3c90678ea69ee8be832e16d42a1b8049a49535e3 (patch)
tree1eb3e72fa8b6ed78711154e80e41360039c1d43a /src/gallium/drivers/trace/tr_winsys.c
parentc67f353c0f0d3872c330e5a8cdb13334a5e2e239 (diff)
trace: Separate the trace screen/context vs the original screen/context.
Diffstat (limited to 'src/gallium/drivers/trace/tr_winsys.c')
-rw-r--r--src/gallium/drivers/trace/tr_winsys.c23
1 files changed, 7 insertions, 16 deletions
diff --git a/src/gallium/drivers/trace/tr_winsys.c b/src/gallium/drivers/trace/tr_winsys.c
index eec84a19816..524049148d0 100644
--- a/src/gallium/drivers/trace/tr_winsys.c
+++ b/src/gallium/drivers/trace/tr_winsys.c
@@ -393,28 +393,24 @@ trace_winsys_destroy(struct pipe_winsys *_winsys)
trace_dump_arg(stream, ptr, winsys);
- winsys->destroy(winsys);
+ /*
+ winsys->destroy(winsys);
+ */
trace_dump_call_end(stream);
- trace_dump_trace_end(stream);
-
hash_table_destroy(tr_ws->buffer_maps);
- trace_stream_close(tr_ws->stream);
-
FREE(tr_ws);
}
struct pipe_winsys *
-trace_winsys_create(struct pipe_winsys *winsys)
+trace_winsys_create(struct trace_stream *stream,
+ struct pipe_winsys *winsys)
{
- struct trace_stream *stream;
- struct trace_winsys *tr_ws;
- if(!debug_get_bool_option("GALLIUM_TRACE", FALSE))
- return winsys;
+ struct trace_winsys *tr_ws;
tr_ws = CALLOC_STRUCT(trace_winsys);
if(!tr_ws)
@@ -436,18 +432,13 @@ trace_winsys_create(struct pipe_winsys *winsys)
tr_ws->base.fence_finish = trace_winsys_fence_finish;
tr_ws->winsys = winsys;
-
- tr_ws->stream = stream = trace_stream_create("gallium", "trace");
- if(!tr_ws->stream)
- return NULL;
+ tr_ws->stream = stream;
tr_ws->buffer_maps = hash_table_create(trace_buffer_hash,
trace_buffer_compare);
if(!tr_ws->buffer_maps)
return NULL;
- trace_dump_trace_begin(tr_ws->stream, 0);
-
trace_dump_call_begin(stream, "", "pipe_winsys_create");
trace_dump_ret(stream, ptr, winsys);
trace_dump_call_end(stream);