Module: Mesa Branch: master Commit: 9e94dcca67ab416cacee7646aca1010a78058837 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e94dcca67ab416cacee7646aca1010a78058837
Author: Erik Faye-Lund <[email protected]> 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 <[email protected]> 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
