ac/nir/ps: remove used nir_variable if created

RADV won't do this, so remove them at last.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22199>
This commit is contained in:
Qiang Yu
2023-03-30 17:17:07 +08:00
committed by Marge Bot
parent bfcf03872e
commit df74919bc2

View File

@@ -844,4 +844,8 @@ ac_nir_lower_ps(nir_shader *nir, const ac_nir_lower_ps_options *options)
init_interp_param(b, &state);
export_ps_outputs(b, &state);
/* Cleanup nir variable, as RADV won't do this. */
if (state.lower_load_barycentric)
nir_lower_vars_to_ssa(nir);
}