From: Kenneth Graunke Date: Sat, 9 Mar 2019 08:25:30 +0000 (-0800) Subject: iris: Fix backface stencil write condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f36794d1f0c7f3638f34ff6face8840938a445d0;p=mesa.git iris: Fix backface stencil write condition A bit too much search and replace here. --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 469d149dfba..1c89682b61c 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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));