broadcom/vc5: Don't forget to actually turn on stencil testing.
authorEric Anholt <eric@anholt.net>
Thu, 26 Oct 2017 22:59:21 +0000 (15:59 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:28 +0000 (13:31 -0700)
I had the rest of stencil state set up, but forgot to actually enable it
in the higher level configuration bits packet.

src/gallium/drivers/vc5/vc5_emit.c

index 3cb44feff9f9551d6e2b039c61c015bd10934ff1..158a2367aa0b30b50be8a308ddc1f1910bb1d63a 100644 (file)
@@ -265,6 +265,9 @@ vc5_emit_state(struct pipe_context *pctx)
                         } else {
                                 config.depth_test_function = PIPE_FUNC_ALWAYS;
                         }
+
+                        config.stencil_enable =
+                                vc5->zsa->base.stencil[0].enabled;
                 }
 
         }