Mesa (main): nir: preserve all metadata when nir_lower_int_to_float doesn't make progress

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 5 10:29:40 UTC 2021


Module: Mesa
Branch: main
Commit: 804c56f1a26c7b134c38f4b85126653fa0f950db
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=804c56f1a26c7b134c38f4b85126653fa0f950db

Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date:   Mon Aug  9 17:00:01 2021 +0200

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

Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13189>

---

 src/compiler/nir/nir_lower_int_to_float.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/nir/nir_lower_int_to_float.c b/src/compiler/nir/nir_lower_int_to_float.c
index 5e20c71a317..91199708db3 100644
--- a/src/compiler/nir/nir_lower_int_to_float.c
+++ b/src/compiler/nir/nir_lower_int_to_float.c
@@ -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);



More information about the mesa-commit mailing list