OSDN Git Service

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 3cb44fe..158a236 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;
                 }
 
         }