iris: Fix backface stencil write condition

A bit too much search and replace here.
This commit is contained in:
Kenneth Graunke 2019-03-09 00:25:30 -08:00
parent ea2cd73625
commit f36794d1f0

View file

@ -1027,7 +1027,7 @@ iris_create_zsa_state(struct pipe_context *ctx,
cso->depth_writes_enabled = state->depth.writemask;
cso->stencil_writes_enabled =
state->stencil[0].writemask != 0 ||
(two_sided_stencil && state->stencil[1].writemask != 1);
(two_sided_stencil && state->stencil[1].writemask != 0);
/* The state tracker needs to optimize away EQUAL writes for us. */
assert(!(state->depth.func == PIPE_FUNC_EQUAL && state->depth.writemask));