aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_dump.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-10-26 15:05:14 +0100
committerJosé Fonseca <[email protected]>2012-10-26 16:02:59 +0100
commitce10624e9e827921b503962e2eb04ce0eb06246a (patch)
treebfb9d9b91e1c78b0efbefceb1b9e63a8bc8efc5d /src/gallium/drivers/trace/tr_dump.c
parent91332e455a530b86f897874919da29efa563fdf3 (diff)
trace: Flush before drawing.
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)
{