From f36794d1f0c7f3638f34ff6face8840938a445d0 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sat, 9 Mar 2019 00:25:30 -0800 Subject: [PATCH] iris: Fix backface stencil write condition A bit too much search and replace here. --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2