summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-12-04 08:37:14 -0500
committerMarge Bot <eric+marge@anholt.net>2020-12-22 12:01:38 +0000
commit912ba743b5e48cb5722814a792b8d26085bf4c46 (patch)
tree8304a02103b6570d2b75aba9e318a437b8e68cbd /src/gallium/drivers/r300/r300_state.c
parentd0534cea7f4920111794cf19059bd9c15b471b7f (diff)
gallium: inline pipe_depth_state to decrease DSA state size by 4 bytes
Depth and alpha states are now packed together, interleaved somewhat. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7940>
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index bcc516cbddc..f5cbc93686d 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -689,15 +689,15 @@ static void* r300_create_dsa_state(struct pipe_context* pipe,
dsa->dsa = *state;
/* Depth test setup. - separate write mask depth for decomp flush */
- if (state->depth.writemask) {
+ if (state->depth_writemask) {
z_buffer_control |= R300_Z_WRITE_ENABLE;
}
- if (state->depth.enabled) {
+ if (state->depth_enabled) {
z_buffer_control |= R300_Z_ENABLE;
z_stencil_control |=
- (r300_translate_depth_stencil_function(state->depth.func) <<
+ (r300_translate_depth_stencil_function(state->depth_func) <<
R300_Z_FUNC_SHIFT);
}