nir: preserve all metadata when nir_lower_int_to_float doesn't make progress

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13189>
This commit is contained in:
Marcin Ślusarz 2021-08-09 17:00:01 +02:00 committed by Marge Bot
parent 87ecdd4eff
commit 804c56f1a2

View file

@ -165,6 +165,8 @@ nir_lower_int_to_float_impl(nir_function_impl *impl)
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
} else {
nir_metadata_preserve(impl, nir_metadata_all);
}
free(float_types);