summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_dump.c')
-rw-r--r--src/gallium/drivers/trace/tr_dump.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_dump.c b/src/gallium/drivers/trace/tr_dump.c
index ecc5bbcc2cf..90befb09b6b 100644
--- a/src/gallium/drivers/trace/tr_dump.c
+++ b/src/gallium/drivers/trace/tr_dump.c
@@ -214,6 +214,14 @@ trace_dump_tag_end(const char *name)
trace_dump_writes(">");
}
+void
+trace_dump_trace_flush(void)
+{
+ if(stream) {
+ fflush(stream);
+ }
+}
+
static void
trace_dump_trace_close(void)
{