{
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;
}
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;
+}
/*******************************************************************************
- * Primitive processing (pipelnie) code:
+ * Primitive processing (pipeline) code:
*/
boolean draw_pipeline_init( struct draw_context *draw );
const ushort *elts,
unsigned count );
+void draw_pipeline_flush( struct draw_context *draw,
+ unsigned flags );
+
boolean draw_need_pipeline(const struct draw_context *draw,
unsigned prim );