summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-09 21:51:29 -0600
committerBrian Paul <brianp@vmware.com>2009-06-09 21:51:29 -0600
commit6f26f8c750d087211e266e9a228d4c4db473c31f (patch)
treeb9276d978e7137f011103040f44d523a059fe596
parent091fcf3a27b2588640e543342e681cad85fec615 (diff)
softpipe: implement flatshade_first for line setup
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index c6844a2649..7d248186fd 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -1051,7 +1051,10 @@ setup_line_coefficients(struct setup_context *setup,
float area;
/* use setup->vmin, vmax to point to vertices */
- setup->vprovoke = v1;
+ if (softpipe->rasterizer->flatshade_first)
+ setup->vprovoke = v0;
+ else
+ setup->vprovoke = v1;
setup->vmin = v0;
setup->vmax = v1;