r300: remove unnecessary function calls
authorMaciej Cencora <m.cencora@gmail.com>
Sun, 19 Apr 2009 19:13:18 +0000 (21:13 +0200)
committerDave Airlie <airlied@linux.ie>
Mon, 27 Apr 2009 09:04:21 +0000 (19:04 +1000)
r300SetEarlyZState is called during r300UpdateShaderStates which is called for every rendering operation.

src/mesa/drivers/dri/r300/r300_state.c

index 4cbbfd49c91936145b03ac91ff8314fd80c20ac2..c86c16bfa719e030cb523fb47374350cc1015f2e 100644 (file)
@@ -524,8 +524,6 @@ static void r300SetAlphaState(GLcontext * ctx)
        R300_STATECHANGE(r300, at);
        r300->hw.at.cmd[R300_AT_ALPHA_TEST] = pp_misc;
        r300->hw.at.cmd[R300_AT_UNKNOWN] = 0;
-
-       r300SetEarlyZState(ctx);
 }
 
 static void r300AlphaFunc(GLcontext * ctx, GLenum func, GLfloat ref)
@@ -573,8 +571,6 @@ static void r300SetDepthState(GLcontext * ctx)
                r300->hw.zs.cmd[R300_ZS_CNTL_1] |=
                    translate_func(ctx->Depth.Func) << R300_Z_FUNC_SHIFT;
        }
-
-       r300SetEarlyZState(ctx);
 }
 
 static void r300SetStencilState(GLcontext * ctx, GLboolean state)