diff options
author | Roland Scheidegger <[email protected]> | 2005-10-08 23:41:20 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2005-10-08 23:41:20 +0000 |
commit | 1c0f11046a6dff2568bf42f213983df583b765b9 (patch) | |
tree | e39b6bf8efd7929f9c246b5dd00a8a07adc41ceb /src | |
parent | 30f2d6f0cb34744c323c301573684b918332437f (diff) |
do not set format of the incoming vertices needed for fog_coord in the generic state functions. This is done in the vtxfmt/hwtcl/swtcl pathes respectively.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c index 788afb4c24f..79e10938224 100644 --- a/src/mesa/drivers/dri/r200/r200_state.c +++ b/src/mesa/drivers/dri/r200/r200_state.c @@ -485,19 +485,16 @@ static void r200Fogfv( GLcontext *ctx, GLenum pname, const GLfloat *param ) rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR] |= i; break; case GL_FOG_COORD_SRC: { - GLuint fmt_0 = rmesa->hw.vtx.cmd[VTX_VTXFMT_0]; GLuint out_0 = rmesa->hw.vtx.cmd[VTX_TCL_OUTPUT_VTXFMT_0]; GLuint fog = rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR]; fog &= ~R200_FOG_USE_MASK; if ( ctx->Fog.FogCoordinateSource == GL_FOG_COORD ) { fog |= R200_FOG_USE_VTX_FOG; - fmt_0 |= R200_VTX_DISCRETE_FOG; out_0 |= R200_VTX_DISCRETE_FOG; } else { fog |= R200_FOG_USE_SPEC_ALPHA; - fmt_0 &= ~R200_VTX_DISCRETE_FOG; out_0 &= ~R200_VTX_DISCRETE_FOG; } @@ -506,10 +503,8 @@ static void r200Fogfv( GLcontext *ctx, GLenum pname, const GLfloat *param ) rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR] = fog; } - if ( (fmt_0 != rmesa->hw.vtx.cmd[VTX_VTXFMT_0]) - || (out_0 != rmesa->hw.vtx.cmd[VTX_TCL_OUTPUT_VTXFMT_0])) { + if (out_0 != rmesa->hw.vtx.cmd[VTX_TCL_OUTPUT_VTXFMT_0]) { R200_STATECHANGE( rmesa, vtx ); - rmesa->hw.vtx.cmd[VTX_VTXFMT_0] = fmt_0; rmesa->hw.vtx.cmd[VTX_TCL_OUTPUT_VTXFMT_0] = out_0; } |