summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/trace/tr_dump.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-09-11 18:32:05 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-09-11 18:32:05 +0100
commitcc7dd4fc1b3c765ca1ecd943d189bb156dae529d (patch)
tree1a3560eb6df8a443c4f0e5af0a916f190b1542f6 /src/gallium/drivers/trace/tr_dump.c
parent685248bea1fef5fd6335982570e34d0f6672030d (diff)
parentd50d68a1c940ed9c8d8c65e8e33667fa90d5baa1 (diff)
Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts: Makefile progs/demos/Makefile progs/glsl/Makefile progs/redbook/Makefile progs/samples/Makefile progs/tests/Makefile progs/trivial/Makefile progs/xdemos/Makefile src/gallium/Makefile src/mesa/main/attrib.c src/mesa/main/bufferobj.c src/mesa/vbo/vbo_exec_draw.c
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index 48032c1617..a0ead0ded3 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -48,12 +48,12 @@
#include "pipe/p_debug.h"
#include "util/u_memory.h"
#include "util/u_string.h"
+#include "util/u_stream.h"
-#include "tr_stream.h"
#include "tr_dump.h"
-static struct trace_stream *stream = NULL;
+static struct util_stream *stream = NULL;
static unsigned refcount = 0;
@@ -61,7 +61,7 @@ static INLINE void
trace_dump_write(const char *buf, size_t size)
{
if(stream)
- trace_stream_write(stream, buf, size);
+ util_stream_write(stream, buf, size);
}
@@ -212,7 +212,7 @@ trace_dump_trace_close(void)
{
if(stream) {
trace_dump_writes("</trace>\n");
- trace_stream_close(stream);
+ util_stream_close(stream);
stream = NULL;
refcount = 0;
}
@@ -228,7 +228,7 @@ boolean trace_dump_trace_begin()
if(!stream) {
- stream = trace_stream_create(filename);
+ stream = util_stream_create(filename, 0);
if(!stream)
return FALSE;
@@ -272,7 +272,7 @@ void trace_dump_call_end(void)
trace_dump_indent(1);
trace_dump_tag_end("call");
trace_dump_newline();
- trace_stream_flush(stream);
+ util_stream_flush(stream);
}
void trace_dump_arg_begin(const char *name)