R6xx/r7xx: Fix texture perspective gradients issue
authorCooper Yuan <cooperyuan@gmail.com>
Sun, 31 May 2009 08:41:19 +0000 (16:41 +0800)
committerCooper Yuan <cooperyuan@gmail.com>
Sun, 31 May 2009 08:41:19 +0000 (16:41 +0800)
src/mesa/drivers/dri/r600/r700_state.c

index 768e1846235ae971a29565483a95e0564cbc41e1..d1f77ef6effab8c1668255a0b08b101ab5f6920f 100644 (file)
@@ -216,8 +216,8 @@ static void r700InvalidateState(GLcontext * ctx, GLuint new_state) //-----------
 
         SETbit(r700->PA_CL_VTE_CNTL.u32All, VTX_W0_FMT_bit);
 
-        CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, PERSP_GRADIENT_ENA_bit);
-        SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, LINEAR_GRADIENT_ENA_bit);
+        SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, PERSP_GRADIENT_ENA_bit);
+        CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, LINEAR_GRADIENT_ENA_bit);
     }
     else
     {
@@ -227,8 +227,8 @@ static void r700InvalidateState(GLcontext * ctx, GLuint new_state) //-----------
 
         SETbit(r700->PA_CL_VTE_CNTL.u32All, VTX_W0_FMT_bit);
 
-        SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, PERSP_GRADIENT_ENA_bit);
-        CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, LINEAR_GRADIENT_ENA_bit);
+        CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, PERSP_GRADIENT_ENA_bit);
+        SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, LINEAR_GRADIENT_ENA_bit);
     }
 
        context->radeon.NewGLState |= new_state;