}
}
-/**
- * Reset the vertex ids for the stage's temp verts.
- */
-void draw_reset_tmps( struct draw_stage *stage )
-{
- unsigned i;
-
- if (stage->tmp)
- for (i = 0; i < stage->nr_tmps; i++)
- stage->tmp[i]->vertex_id = UNDEFINED_VERTEX_ID;
-}
void draw_free_tmps( struct draw_stage *stage )
{
struct draw_stage *stage = draw->pipeline.first;
while (stage) {
- if (stage->reset_tmps)
- stage->reset_tmps(stage);
- else
- draw_reset_tmps(stage);
+ unsigned i;
+
+ for (i = 0; i < stage->nr_tmps; i++)
+ stage->tmp[i]->vertex_id = UNDEFINED_VERTEX_ID;
+
stage = stage->next;
}
stipple->stage.point = clip_passthrough_point;
stipple->stage.line = stipple_line;
stipple->stage.tri = clip_passthrough_tri;
- stipple->stage.reset_tmps = clip_pipe_reset_tmps;
stipple->stage.end = stipple_end;
stipple->stage.destroy = stipple_destroy;
void (*end)( struct draw_stage * );
- /**
- * Reset temporary vertex ids in this stage
- *
- * draw_free_tmps will be called instead if null.
- */
- void (*reset_tmps)( struct draw_stage * );
-
void (*reset_stipple_counter)( struct draw_stage * );
void (*destroy)( struct draw_stage * );