summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2009-07-28 13:57:07 +0800
committerCooper Yuan <cooperyuan@gmail.com>2009-07-28 13:57:07 +0800
commit506bacb8e40b0a170a4b620113506925d2333735 (patch)
treea9cb65f0fcc60bc94e1d80dd1e5953b9c99c0994 /src/mesa
parentfcf317ac16e72cff754640cb6c7490531d5de667 (diff)
R6xx/r7xx: enable flat shading, this can fix quadric/accanti/accpersp
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r600/r700_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index bd0abc06e3..3812b26e13 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -808,9 +808,11 @@ static void r700ShadeModel(GLcontext * ctx, GLenum mode) //--------------------
switch (mode) {
case GL_FLAT:
SETbit(r700->SPI_INTERP_CONTROL_0.u32All, FLAT_SHADE_ENA_bit);
+ SETbit(r700->SPI_PS_INPUT_CNTL_0.u32All, FLAT_SHADE_bit);
break;
case GL_SMOOTH:
CLEARbit(r700->SPI_INTERP_CONTROL_0.u32All, FLAT_SHADE_ENA_bit);
+ CLEARbit(r700->SPI_PS_INPUT_CNTL_0.u32All, FLAT_SHADE_bit);
break;
default:
return;