mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
draw: put pipeline flushing behind a new interface
This commit is contained in:
parent
bee1d31641
commit
e7bac42766
3 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ void draw_pt_reset_vertex_ids( struct draw_context *draw );
|
|||
|
||||
|
||||
/*******************************************************************************
|
||||
* Primitive processing (pipelnie) code:
|
||||
* Primitive processing (pipeline) code:
|
||||
*/
|
||||
|
||||
boolean draw_pipeline_init( struct draw_context *draw );
|
||||
|
|
@ -241,6 +241,9 @@ void draw_pipeline_run( 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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue