gallium: hardwire reset_temps functionality

This commit is contained in:
Keith Whitwell
2007-12-14 15:51:07 +00:00
committed by José Fonseca
parent 83417a8b37
commit 66719dc63a
3 changed files with 5 additions and 23 deletions
+5 -15
View File
@@ -238,17 +238,6 @@ void draw_alloc_tmps( struct draw_stage *stage, unsigned nr )
}
}
/**
* 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 )
{
@@ -271,10 +260,11 @@ void draw_reset_vertex_ids(struct draw_context *draw)
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;
}
-1
View File
@@ -265,7 +265,6 @@ struct clip_pipe_stage *clip_pipe_stipple( struct clip_pipeline *pipe )
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;
-7
View File
@@ -116,13 +116,6 @@ struct draw_stage
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 * );