gallium: hardwire reset_temps functionality
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 14 Dec 2007 15:51:07 +0000 (15:51 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 17 Jan 2008 03:06:16 +0000 (12:06 +0900)
src/mesa/pipe/draw/draw_context.c
src/mesa/pipe/draw/draw_linestipple.c
src/mesa/pipe/draw/draw_private.h

index 39d324f97f46601e5dc5315bca7a17c18fcd9f48..fd43d690f656dcdb4425238738a8340ef2a4a800 100644 (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;
    }
 
index 5f0db99b23fc1ee32ce82562d12bba6d2c135665..d7fe1071f0fea6a74e1290ebd8a61b6786b934e5 100644 (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;
 
index 5f89ac121eb00202f600f04e1b926349c1190d81..d8832449eabf80e4f0d4d4f026db2b10783cec78 100644 (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 * );