From 1b32786de6f78559615c1c28953fdd80c9751069 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 26 Oct 2017 15:59:21 -0700 Subject: [PATCH] broadcom/vc5: Don't forget to actually turn on stencil testing. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index 3cb44feff9f..158a2367aa0 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -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; } } -- 2.30.2