summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-19 16:43:15 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-19 16:43:15 +0100
commite7bac4276634ea1ee81ac71f6f6869f87e689872 (patch)
tree6a8d64272b6edd58a5fdc258dac3bd163f376adf /src/gallium/auxiliary/draw/draw_pipe.c
parentbee1d31641674c67676de86fbb4b35ca5bf7f33f (diff)
draw: put pipeline flushing behind a new interface
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe.c b/src/gallium/auxiliary/draw/draw_pipe.c
index b18b747d9c..3fae908514 100644
--- a/src/gallium/auxiliary/draw/draw_pipe.c
+++ b/src/gallium/auxiliary/draw/draw_pipe.c
@@ -274,3 +274,11 @@ void draw_pipeline_run( struct draw_context *draw,
draw->pipeline.vertex_count = 0;
}
+
+
+void draw_pipeline_flush( struct draw_context *draw,
+ unsigned flags )
+{
+ draw->pipeline.first->flush( draw->pipeline.first, flags );
+ draw->pipeline.first = draw->pipeline.validate;
+}