projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60787df
)
r600: set provoking vertex to last vertex for OGL
author
Alex Deucher
<alexdeucher@gmail.com>
Tue, 21 Jul 2009 17:28:12 +0000
(13:28 -0400)
committer
Alex Deucher
<alexdeucher@gmail.com>
Tue, 21 Jul 2009 21:10:54 +0000
(17:10 -0400)
src/mesa/drivers/dri/r600/r700_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_state.c
b/src/mesa/drivers/dri/r600/r700_state.c
index d54c6e5c146088b34841cc75cace6229fdcb85bc..9f7e45a4b78d91cf2f0192188431db9e8869c1fc 100644
(file)
--- a/
src/mesa/drivers/dri/r600/r700_state.c
+++ b/
src/mesa/drivers/dri/r600/r700_state.c
@@
-1557,6
+1557,9
@@
void r700InitState(GLcontext * ctx) //-------------------
CLEARfield(r700->PA_SU_POINT_MINMAX.u32All, MIN_SIZE_mask);
SETfield(r700->PA_SU_POINT_MINMAX.u32All, 0x8000, MAX_SIZE_shift, MAX_SIZE_mask);
+ /* GL uses last vtx for flat shading components */
+ SETbit(r700->PA_SU_SC_MODE_CNTL.u32All, PROVOKING_VTX_LAST_bit);
+
/* Set up line control */
SETfield(r700->PA_SU_LINE_CNTL.u32All, 0x8,
PA_SU_LINE_CNTL__WIDTH_shift, PA_SU_LINE_CNTL__WIDTH_mask);