CLAMPED_FLOAT_TO_UBYTE(color[3], cf[3]);
rmesa->hw.blend_color.cmd[1] = PACK_COLOR_8888(color[3], color[0],
- color[1], color[2]);
+ color[1], color[2]);
}
/**
r300->hw.cul.cmd[R300_CUL_CULL] = val;
}
-static void update_early_z(GLcontext * ctx)
+static void r300SetEarlyZState(GLcontext * ctx)
{
/* updates register R300_RB3D_EARLY_Z (0x4F14)
if depth test is not enabled it should be R300_EARLY_Z_DISABLE
}
}
-static void update_alpha(GLcontext * ctx)
+static void r300SetAlphaState(GLcontext * ctx)
{
r300ContextPtr r300 = R300_CONTEXT(ctx);
GLubyte refByte;
R300_STATECHANGE(r300, at);
r300->hw.at.cmd[R300_AT_ALPHA_TEST] = pp_misc;
- update_early_z(ctx);
+
+ r300SetEarlyZState(ctx);
}
static void r300AlphaFunc(GLcontext * ctx, GLenum func, GLfloat ref)
{
(void)func;
(void)ref;
- update_alpha(ctx);
+ r300SetAlphaState(ctx);
}
static int translate_func(int func)
return 0;
}
-static void update_depth(GLcontext * ctx)
+static void r300SetDepthState(GLcontext * ctx)
{
r300ContextPtr r300 = R300_CONTEXT(ctx);
translate_func(GL_NEVER) << R300_RB3D_ZS1_DEPTH_FUNC_SHIFT;
}
- update_early_z(ctx);
+ r300SetEarlyZState(ctx);
}
/**
break;
case GL_ALPHA_TEST:
- update_alpha(ctx);
+ r300SetAlphaState(ctx);
break;
case GL_BLEND:
break;
case GL_DEPTH_TEST:
- update_depth(ctx);
+ r300SetDepthState(ctx);
break;
case GL_STENCIL_TEST:
static void r300DepthFunc(GLcontext * ctx, GLenum func)
{
(void)func;
- update_depth(ctx);
+ r300SetDepthState(ctx);
}
/**
static void r300DepthMask(GLcontext * ctx, GLboolean mask)
{
(void)mask;
- update_depth(ctx);
+ r300SetDepthState(ctx);
}
/**