R6xx/r7xx: enable flat shading, this can fix quadric/accanti/accpersp
authorCooper Yuan <cooperyuan@gmail.com>
Tue, 28 Jul 2009 05:57:07 +0000 (13:57 +0800)
committerCooper Yuan <cooperyuan@gmail.com>
Tue, 28 Jul 2009 05:57:07 +0000 (13:57 +0800)
src/mesa/drivers/dri/r600/r700_state.c

index bd0abc06e384708c5b24ea4fed9ba1f68307461b..3812b26e1363881f634e18c69ca28eb02a076429 100644 (file)
@@ -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;