summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_emit.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-02 14:09:56 -0700
committerEric Anholt <[email protected]>2017-10-10 11:42:05 -0700
commitf0ee7d6ba85c0695e276b61c8c8113552d8bde6c (patch)
tree8c1522c4842c400a37ac6152c681e40e7aa568a8 /src/gallium/drivers/vc5/vc5_emit.c
parentf4133865d191c6a5377d63a2384e5844b1e0e14d (diff)
broadcom/vc5: Add support for GL_EXT_provoking_vertex.
The bit was missing from the spec, but it's there in the simulator. Fixes the piglit clipflat test.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_emit.c')
-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 7f78817bf91..475db7bc868 100644
--- a/src/gallium/drivers/vc5/vc5_emit.c
+++ b/src/gallium/drivers/vc5/vc5_emit.c
@@ -248,6 +248,9 @@ vc5_emit_state(struct pipe_context *pctx)
config.rasterizer_oversample_mode =
vc5->rasterizer->base.multisample;
+ config.direct3d_provoking_vertex =
+ vc5->rasterizer->base.flatshade_first;
+
config.blend_enable = vc5->blend->rt[0].blend_enable;
config.early_z_updates_enable = true;