ac/nir/lower_ngg: never export edge flags via position exports

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 <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35351>
This commit is contained in:
Marek Olšák 2025-05-27 06:31:35 -04:00 committed by Marge Bot
parent a742b859bd
commit 7c3760201d

View file

@ -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)