diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-12-27 15:33:21 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-12-30 17:11:08 -0500 |
commit | 71df7c69bc44a2daddf07efa03bf0526aea533ee (patch) | |
tree | f57c406b658ccf9205e7838967d72b5b19572935 /src/gallium/drivers/panfrost | |
parent | c17a441666d1e339140a68b2c619bf5195f3ff30 (diff) |
panfrost: Identify glProvokingVertex flag
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 5 |
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); |