microsoft/clc: preserve only valid metadata in clc_lower_printf_base

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12324>
This commit is contained in:
Marcin Ślusarz 2021-08-10 12:59:29 +02:00 committed by Marge Bot
parent 4d81226102
commit 70723f278f

View file

@ -273,6 +273,7 @@ clc_lower_printf_base(nir_shader *nir, unsigned uav_id)
printf_deref = &deref->dest.ssa;
}
nir_ssa_def_rewrite_uses(&intrin->dest.ssa, printf_deref);
progress = true;
}
}