Mesa (r6xx-r7xx-support): R6xx: Fix texture perspective gradients issue
Cooper Yuan
cooperyuan at kemper.freedesktop.org
Mon Apr 20 03:33:55 UTC 2009
Module: Mesa
Branch: r6xx-r7xx-support
Commit: ce3d7270479744bbe9f19773f34b74743ad61e57
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ce3d7270479744bbe9f19773f34b74743ad61e57
Author: Cooper Yuan <cooperyuan at gmail.com>
Date: Mon Apr 20 11:32:59 2009 +0800
R6xx: 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 786dcd1..9449a40 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -209,8 +209,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
{
@@ -220,8 +220,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->NewGLState |= new_state;
More information about the mesa-commit
mailing list