iris: Fix backface stencil write condition
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 9 Mar 2019 08:25:30 +0000 (00:25 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 10 Mar 2019 21:52:53 +0000 (14:52 -0700)
A bit too much search and replace here.

src/gallium/drivers/iris/iris_state.c

index 469d149dfba424214be2a8f0aef84fa08d99e147..1c89682b61c5898584e1247982a8a6a3f1706a8c 100644 (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));