summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pipe.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-19 16:43:15 +0100
committerKeith Whitwell <[email protected]>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 b18b747d9ce..3fae9085146 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;
+}