trace: Flush before drawing.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 26 Oct 2012 14:05:14 +0000 (15:05 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 26 Oct 2012 15:02:59 +0000 (16:02 +0100)
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/trace/tr_dump.c
src/gallium/drivers/trace/tr_dump.h

index a1333e5a132291fd594f01f609ca94b3beadb650..a5110bec4870afb9488026461c2c22f3a15a8842 100644 (file)
@@ -94,6 +94,8 @@ trace_context_draw_vbo(struct pipe_context *_pipe,
    trace_dump_arg(ptr,  pipe);
    trace_dump_arg(draw_info, info);
 
+   trace_dump_trace_flush();
+
    pipe->draw_vbo(pipe, info);
 
    trace_dump_call_end();
index ecc5bbcc2cf82f4f77aeebcfd759948f056aa8ec..90befb09b6bb2719b4a7ea4168a19f8270977005 100644 (file)
@@ -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)
 {
index 62b4fe429b1e10b32b309424ab606c9d9ff9a90d..5739e8694a0ed3f06e76e46d5f4191c696134a66 100644 (file)
@@ -49,6 +49,7 @@ struct pipe_box;
  */
 boolean trace_dump_trace_begin(void);
 boolean trace_dump_trace_enabled(void);
+void trace_dump_trace_flush(void);
 void trace_dump_trace_end(void);
 
 /*