summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-07-10 13:33:45 -0600
committerBrian <[email protected]>2007-07-10 13:33:45 -0600
commit5e4379b5a430bcaf7dea4814341830fce0820cb1 (patch)
treee988c80c301bbcb6c6eb4ed3c91915333179744c /src
parent720c0eb71db9908c5ecef15263c2ae638d61d07b (diff)
comments, clean-up
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_context.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index c91be23eef8..d4654791bbe 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -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;
}