From: Eric Anholt Date: Tue, 7 Nov 2017 18:08:59 +0000 (-0800) Subject: broadcom/vc5: Add support for GL_RASTERIZER_DISCARD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25d199f67dce2698aa8a9c3a4010d90a44d3a894;p=mesa.git broadcom/vc5: Add support for GL_RASTERIZER_DISCARD Fixes piglit discard-drawarrays. --- 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