summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-07 10:08:59 -0800
committerEric Anholt <[email protected]>2017-11-07 12:57:49 -0800
commit25d199f67dce2698aa8a9c3a4010d90a44d3a894 (patch)
treea9f1b5dc3fa3b3582a965240d626205ae0a5bef7 /src/gallium
parentdfff9ce45ef9e2ba61814d7a75b896bbaf970557 (diff)
broadcom/vc5: Add support for GL_RASTERIZER_DISCARD
Fixes piglit discard-drawarrays.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc5/vc5_emit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c
index a4a1af7ddf4..b84ddd66479 100644
--- a/src/gallium/drivers/vc5/vc5_emit.c
+++ b/src/gallium/drivers/vc5/vc5_emit.c
@@ -262,9 +262,11 @@ vc5_emit_state(struct pipe_context *pctx)
VC5_DIRTY_COMPILED_FS)) {
cl_emit(&job->bcl, CONFIGURATION_BITS, config) {
config.enable_forward_facing_primitive =
+ !vc5->rasterizer->base.rasterizer_discard &&
!(vc5->rasterizer->base.cull_face &
PIPE_FACE_FRONT);
config.enable_reverse_facing_primitive =
+ !vc5->rasterizer->base.rasterizer_discard &&
!(vc5->rasterizer->base.cull_face &
PIPE_FACE_BACK);
/* This seems backwards, but it's what gets the