mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
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:
parent
a742b859bd
commit
7c3760201d
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue