From 25d199f67dce2698aa8a9c3a4010d90a44d3a894 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 7 Nov 2017 10:08:59 -0800 Subject: [PATCH] broadcom/vc5: Add support for GL_RASTERIZER_DISCARD Fixes piglit discard-drawarrays. --- src/gallium/drivers/vc5/vc5_emit.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2