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@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6853>
This commit is contained in:
Erik Faye-Lund 2020-09-24 21:31:39 +02:00 committed by Marge Bot
parent d1d27e9db4
commit 9e94dcca67

View file

@ -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;