mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 14:50:11 +01:00
panfrost: Identify glProvokingVertex flag
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
c17a441666
commit
71df7c69bc
2 changed files with 8 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -884,6 +884,12 @@ struct mali_uniform_buffer_meta {
|
|||
#define MALI_DRAW_INDEXED_SHIFT (4)
|
||||
|
||||
#define MALI_DRAW_VARYING_SIZE (0x100)
|
||||
|
||||
/* Set to use first vertex as the provoking vertex for flatshading. Clear to
|
||||
* use the last vertex. This is the default in DX and VK, but not in GL. */
|
||||
|
||||
#define MALI_DRAW_FLATSHADE_FIRST (0x800)
|
||||
|
||||
#define MALI_DRAW_PRIMITIVE_RESTART_FIXED_INDEX (0x10000)
|
||||
|
||||
struct mali_vertex_tiler_prefix {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue