summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_stream.c')
-rw-r--r--src/gallium/drivers/trace/tr_stream.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_stream.c b/src/gallium/drivers/trace/tr_stream.c
index 14cc257e154..aecc1286b8d 100644
--- a/src/gallium/drivers/trace/tr_stream.c
+++ b/src/gallium/drivers/trace/tr_stream.c
@@ -87,6 +87,18 @@ trace_stream_write(struct trace_stream *stream, const void *data, size_t size)
void
+trace_stream_flush(struct trace_stream *stream)
+{
+ if(!stream)
+ return;
+
+#if defined(PIPE_OS_LINUX)
+ fflush(stream->file);
+#endif
+}
+
+
+void
trace_stream_close(struct trace_stream *stream)
{
if(!stream)