microsoft/clc: preserve only valid metadata in clc_lower_printf_base
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Tue, 10 Aug 2021 10:59:29 +0000 (12:59 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Aug 2021 11:23:30 +0000 (11:23 +0000)
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>

src/microsoft/clc/clc_nir.c

index 7d37e2a..dcb3994 100644 (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;
          }
       }