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:
@@ -844,4 +844,8 @@ ac_nir_lower_ps(nir_shader *nir, const ac_nir_lower_ps_options *options)
|
|||||||
init_interp_param(b, &state);
|
init_interp_param(b, &state);
|
||||||
|
|
||||||
export_ps_outputs(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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user