mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
asahi: Assume LAYER is flat-shaded
It can't be anything else, this makes sure the varyings are sorted properly. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
68437eb0ba
commit
e518c92d26
1 changed files with 3 additions and 0 deletions
|
|
@ -2371,6 +2371,9 @@ agx_remap_varyings_vs(nir_shader *nir, struct agx_varyings_vs *varyings,
|
|||
varyings->slots[VARYING_SLOT_POS] = base;
|
||||
base += 4;
|
||||
|
||||
/* These are always flat-shaded from the FS perspective */
|
||||
key->vs.outputs_flat_shaded |= VARYING_SLOT_LAYER | VARYING_SLOT_VIEWPORT;
|
||||
|
||||
assert(!(key->vs.outputs_flat_shaded & key->vs.outputs_linear_shaded));
|
||||
|
||||
/* Smooth 32-bit user bindings go next */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue