From 5b92bd99dbb17c446d4da223efee30d2f1cc7bfb Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 3 Feb 2023 11:57:01 -0500 Subject: [PATCH] agx: Don't treat clip distances specially We've been using the clip lowering, but it's been broken upstream because of this artefact from the (non-lowered implementation) sneaking in from downstream. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index adca4e3ce26..91db85bc14f 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1785,8 +1785,7 @@ agx_remap_varyings_vs(nir_shader *nir, struct agx_varyings_vs *varyings) 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) + if (loc == VARYING_SLOT_POS || loc == VARYING_SLOT_PSIZ) continue; varyings->slots[loc] = base;