comments, clean-up
authorBrian <brian.paul@tungstengraphics.com>
Tue, 10 Jul 2007 19:33:45 +0000 (13:33 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 10 Jul 2007 19:33:45 +0000 (13:33 -0600)
src/mesa/pipe/draw/draw_context.c

index c91be23eef843c3dc8fdd397c05e1e677d006956..d4654791bbe493eb4278f2768280ed4e9d9d314e 100644 (file)
@@ -81,12 +81,15 @@ static void validate_pipeline( struct draw_context *draw )
 {
    struct prim_stage *next = draw->pipeline.setup;
 
-   /* TODO: make the current primitive part of the state and build
+   /*
+    * NOTE: we build up the pipeline in end-to-start order.
+    *
+    * TODO: make the current primitive part of the state and build
     * shorter pipelines for lines & points.
     */
+
    if (draw->setup.fill_cw != PIPE_POLYGON_MODE_FILL ||
        draw->setup.fill_ccw != PIPE_POLYGON_MODE_FILL) {
-
       draw->pipeline.unfilled->next = next;
       next = draw->pipeline.unfilled;
    }
@@ -110,7 +113,6 @@ static void validate_pipeline( struct draw_context *draw )
       next = draw->pipeline.cull;
    }
 
-
    /* Clip stage
     */
    {
@@ -127,7 +129,6 @@ static void validate_pipeline( struct draw_context *draw )
       next = draw->pipeline.flatshade;
    }
    
-
    draw->pipeline.first = next;
 }