summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-12-11 15:48:30 +0000
committerKeith Whitwell <[email protected]>2007-12-11 17:10:47 +0000
commitecb5e14e8688e31446fdcbdea59d25ea628fb211 (patch)
treefc9c64dea749133489aa713d5da0a819933b7649
parent4a4543f5360b5f0a3350d9db770f1325cc3a9e84 (diff)
gallium: remove clear values from depth, stencil state
-rw-r--r--src/mesa/pipe/p_state.h2
-rw-r--r--src/mesa/state_tracker/st_atom_depth.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 56d4f96ed76..a571071ea99 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -152,7 +152,6 @@ struct pipe_depth_stencil_state
unsigned writemask:1; /**< allow depth buffer writes? */
unsigned func:3; /**< depth test func (PIPE_FUNC_x) */
unsigned occlusion_count:1; /**< XXX move this elsewhere? */
- float clear; /**< Clear value in [0,1] (XXX correct place?) */
} depth;
struct {
unsigned front_enabled:1;
@@ -168,7 +167,6 @@ struct pipe_depth_stencil_state
ubyte ref_value[2]; /**< [0] = front, [1] = back */
ubyte value_mask[2];
ubyte write_mask[2];
- ubyte clear_value;
} stencil;
};
diff --git a/src/mesa/state_tracker/st_atom_depth.c b/src/mesa/state_tracker/st_atom_depth.c
index f0f360e6ddf..e785434cecf 100644
--- a/src/mesa/state_tracker/st_atom_depth.c
+++ b/src/mesa/state_tracker/st_atom_depth.c
@@ -101,7 +101,6 @@ update_depth_stencil(struct st_context *st)
depth_stencil.depth.enabled = st->ctx->Depth.Test;
depth_stencil.depth.writemask = st->ctx->Depth.Mask;
depth_stencil.depth.func = st_compare_func_to_pipe(st->ctx->Depth.Func);
- depth_stencil.depth.clear = st->ctx->Depth.Clear;
if (st->ctx->Query.CurrentOcclusionObject &&
st->ctx->Query.CurrentOcclusionObject->Active)
@@ -126,7 +125,6 @@ update_depth_stencil(struct st_context *st)
depth_stencil.stencil.value_mask[1] = st->ctx->Stencil.ValueMask[1] & 0xff;
depth_stencil.stencil.write_mask[1] = st->ctx->Stencil.WriteMask[1] & 0xff;
}
- depth_stencil.stencil.clear_value = st->ctx->Stencil.Clear & 0xff;
}
cso = st_cached_depth_stencil_state(st, &depth_stencil);