summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-26 15:59:21 -0700
committerEric Anholt <[email protected]>2017-10-30 13:31:28 -0700
commit1b32786de6f78559615c1c28953fdd80c9751069 (patch)
treecd27622d41322d7a9a3c66ee0810a41fdd7b2c85 /src/gallium
parent4d2619a6b3d94a02b21fdc8fc49c1542e82bc7d8 (diff)
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.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc5/vc5_emit.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}