summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-12-27 15:33:21 -0500
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-12-30 17:11:08 -0500
commit71df7c69bc44a2daddf07efa03bf0526aea533ee (patch)
treef57c406b658ccf9205e7838967d72b5b19572935 /src/gallium/drivers/panfrost
parentc17a441666d1e339140a68b2c619bf5195f3ff30 (diff)
panfrost: Identify glProvokingVertex flag
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 1446354ade0..14c6fcbd155 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -1476,9 +1476,8 @@ panfrost_draw_vbo(
draw_flags |= 0x3000;
- if (mode == PIPE_PRIM_LINE_STRIP) {
- draw_flags |= 0x800;
- }
+ if (ctx->rasterizer && ctx->rasterizer->base.flatshade_first)
+ draw_flags |= MALI_DRAW_FLATSHADE_FIRST;
panfrost_statistics_record(ctx, info);