projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
091fcf3
)
softpipe: implement flatshade_first for line setup
author
Brian Paul
<brianp@vmware.com>
Wed, 10 Jun 2009 03:51:29 +0000
(21:51 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 10 Jun 2009 03:51:29 +0000
(21:51 -0600)
src/gallium/drivers/softpipe/sp_setup.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_setup.c
b/src/gallium/drivers/softpipe/sp_setup.c
index c6844a26498dfc119aa349ff9dab0a2a23bbe677..7d248186fde34310706e5aeb0f5f042bd75a3709 100644
(file)
--- 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;