From 7c3760201da4141662ff842f23436d60d74f82b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 27 May 2025 06:31:35 -0400 Subject: [PATCH] ac/nir/lower_ngg: never export edge flags via position exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has no effect, but the extra export instructions is unnecessary and we can't gather the effective number of position exports from NIR if we insert incorrect exports. Acked-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Timur Kristóf Part-of: --- src/amd/common/nir/ac_nir_lower_ngg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/nir/ac_nir_lower_ngg.c b/src/amd/common/nir/ac_nir_lower_ngg.c index 5c7a6bcc75c..d982918c877 100644 --- a/src/amd/common/nir/ac_nir_lower_ngg.c +++ b/src/amd/common/nir/ac_nir_lower_ngg.c @@ -1761,6 +1761,7 @@ ac_nir_lower_ngg_nogs(nir_shader *shader, const ac_nir_lower_ngg_options *option } uint64_t export_outputs = shader->info.outputs_written | VARYING_BIT_POS; + export_outputs &= ~VARYING_BIT_EDGE; /* edge flags are never exported via pos with NGG */ if (options->kill_pointsize) export_outputs &= ~VARYING_BIT_PSIZ; if (options->kill_layer)