Mesa (master): zink: correct typo in stencil-setup
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 25 09:21:38 UTC 2020
Module: Mesa
Branch: master
Commit: 9e94dcca67ab416cacee7646aca1010a78058837
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e94dcca67ab416cacee7646aca1010a78058837
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Thu Sep 24 21:31:39 2020 +0200
zink: correct typo in stencil-setup
Without this, we end up using two-sided stencil when one-sided stencil
should be used. Whoops.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853>
---
src/gallium/drivers/zink/zink_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index fbb3bd1272f..374bbf95add 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -350,7 +350,7 @@ zink_create_depth_stencil_alpha_state(struct pipe_context *pctx,
cso->stencil_front = stencil_op_state(depth_stencil_alpha->stencil);
}
- if (depth_stencil_alpha->stencil[0].enabled)
+ if (depth_stencil_alpha->stencil[1].enabled)
cso->stencil_back = stencil_op_state(depth_stencil_alpha->stencil + 1);
else
cso->stencil_back = cso->stencil_front;
More information about the mesa-commit
mailing list