summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_context.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_context.c
parentbee1d31641674c67676de86fbb4b35ca5bf7f33f (diff)
draw: put pipeline flushing behind a new interface
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index fa6791fa0b..3e69867d11 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -379,11 +379,9 @@ void draw_do_flush( struct draw_context *draw, unsigned flags )
{
draw->flushing = TRUE;
- if (flags >= DRAW_FLUSH_STATE_CHANGE) {
- draw->pipeline.first->flush( draw->pipeline.first, flags );
- draw->pipeline.first = draw->pipeline.validate;
- draw->reduced_prim = ~0; /* is reduced_prim needed any more? */
- }
+ draw_pipeline_flush( draw, flags );
+
+ draw->reduced_prim = ~0; /* is reduced_prim needed any more? */
draw->flushing = FALSE;
}