asahi: Identify triangle/lines vs point varyings

Seems to allow skipping over point coords?

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11818>
This commit is contained in:
Alyssa Rosenzweig
2021-07-11 17:10:29 -04:00
committed by Marge Bot
parent e2176490d6
commit 3d75cff7d7
3 changed files with 9 additions and 8 deletions

View File

@@ -1212,7 +1212,7 @@ agx_remap_varyings_fs(nir_shader *nir, struct agx_varyings *varyings,
agx_pack(packed, VARYING, cfg) {
cfg.type = AGX_VARYING_TYPE_FRAGCOORD_W;
cfg.components = 1;
cfg.slot_1 = cfg.slot_2 = base;
cfg.triangle_slot = cfg.point_slot = base;
}
base++;
@@ -1221,7 +1221,7 @@ agx_remap_varyings_fs(nir_shader *nir, struct agx_varyings *varyings,
agx_pack(packed, VARYING, cfg) {
cfg.type = AGX_VARYING_TYPE_FRAGCOORD_Z;
cfg.components = 1;
cfg.slot_1 = cfg.slot_2 = base;
cfg.triangle_slot = cfg.point_slot = base;
}
base++;
@@ -1258,7 +1258,7 @@ agx_remap_varyings_fs(nir_shader *nir, struct agx_varyings *varyings,
AGX_VARYING_TYPE_FLAT_LAST :
AGX_VARYING_TYPE_SMOOTH;
cfg.components = channels;
cfg.slot_1 = cfg.slot_2 = base;
cfg.triangle_slot = cfg.point_slot = base;
}
base += channels;