mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
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:
parent
bfcf03872e
commit
df74919bc2
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue