summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915
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/i915
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/i915')
-rw-r--r--src/gallium/drivers/i915/i915_state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c
index 6726936bea2..49f63ae00e1 100644
--- a/src/gallium/drivers/i915/i915_state.c
+++ b/src/gallium/drivers/i915/i915_state.c
@@ -525,13 +525,13 @@ i915_create_depth_stencil_state(struct pipe_context *pipe,
cso->bfo[1] = 0;
}
- if (depth_stencil->depth.enabled) {
- int func = i915_translate_compare_func(depth_stencil->depth.func);
+ if (depth_stencil->depth_enabled) {
+ int func = i915_translate_compare_func(depth_stencil->depth_func);
cso->depth_LIS6 |= (S6_DEPTH_TEST_ENABLE |
(func << S6_DEPTH_TEST_FUNC_SHIFT));
- if (depth_stencil->depth.writemask)
+ if (depth_stencil->depth_writemask)
cso->depth_LIS6 |= S6_DEPTH_WRITE_ENABLE;
}