Mesa (r6xx-rewrite): R6xx/r7xx: Fix texture perspective gradients issue
Cooper Yuan
cooperyuan at kemper.freedesktop.org
Sun May 31 08:49:13 UTC 2009
Module: Mesa
Branch: r6xx-rewrite
Commit: 377d8b3673571eae4b23798a13e03929e1e47957
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=377d8b3673571eae4b23798a13e03929e1e47957
Author: Cooper Yuan <cooperyuan at gmail.com>
Date: Sun May 31 16:41:19 2009 +0800
R6xx/r7xx: Fix texture perspective gradients issue
---
src/mesa/drivers/dri/r600/r700_state.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index 768e184..d1f77ef 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -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;
More information about the mesa-commit
mailing list