summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:58:16 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:58:16 -0800
commitce6710e369d3b5c512ba8b315efc863fd41de734 (patch)
tree3ea7393964883fd579f2d93d542f6eff884833cf /src/gallium/drivers/r300/r300_state.c
parent38f610e5360a2beb46f92e75942745cfbfbac22a (diff)
r300: Clean up after rebase.
Fix a couple struct members, clear up a few texture lines.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index d81aee94e3..96fdce903e 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -325,8 +325,8 @@ static void*
R300_S_FRONT_ZFAIL_OP_SHIFT);
dsa->stencil_ref_mask = (state->stencil[0].ref_value) |
- (state->stencil[0].value_mask << R300_STENCILMASK_SHIFT) |
- (state->stencil[0].write_mask << R300_STENCILWRITEMASK_SHIFT);
+ (state->stencil[0].valuemask << R300_STENCILMASK_SHIFT) |
+ (state->stencil[0].writemask << R300_STENCILWRITEMASK_SHIFT);
if (state->stencil[1].enabled) {
dsa->z_buffer_control |= R300_STENCIL_FRONT_BACK;
@@ -341,8 +341,8 @@ static void*
R300_S_BACK_ZFAIL_OP_SHIFT);
dsa->stencil_ref_bf = (state->stencil[1].ref_value) |
- (state->stencil[1].value_mask << R300_STENCILMASK_SHIFT) |
- (state->stencil[1].write_mask << R300_STENCILWRITEMASK_SHIFT);
+ (state->stencil[1].valuemask << R300_STENCILMASK_SHIFT) |
+ (state->stencil[1].writemask << R300_STENCILWRITEMASK_SHIFT);
}
}
@@ -350,7 +350,8 @@ static void*
if (state->alpha.enabled) {
dsa->alpha_function = translate_alpha_function(state->alpha.func) |
R300_FG_ALPHA_FUNC_ENABLE;
- dsa->alpha_reference = CLAMP(state->alpha.ref * 1023.0f, 0, 1023);
+ dsa->alpha_reference = CLAMP(state->alpha.ref_value * 1023.0f,
+ 0, 1023);
} else {
dsa->z_buffer_top = R300_ZTOP_ENABLE;
}