agx: Use metadata for VS varying linking

Rather than variables. This gets rid of all backend nir_variable use.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20446>
This commit is contained in:
Alyssa Rosenzweig
2022-12-18 12:01:15 -05:00
parent 617f2f7a02
commit 44925a142e
+4 -4
View File
@@ -1802,10 +1802,10 @@ agx_remap_varyings_vs(nir_shader *nir, struct agx_varyings_vs *varyings)
varyings->slots[VARYING_SLOT_POS] = base;
base += 4;
nir_foreach_shader_out_variable(var, nir) {
unsigned loc = var->data.location;
if (loc == VARYING_SLOT_POS || loc == VARYING_SLOT_PSIZ)
u_foreach_bit64(loc, nir->info.outputs_written)
{
if (loc == VARYING_SLOT_POS || loc == VARYING_SLOT_PSIZ ||
loc == VARYING_SLOT_CLIP_DIST0 || loc == VARYING_SLOT_CLIP_DIST1)
continue;
varyings->slots[loc] = base;