~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/nir_lower_goto_ifs.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
944
944
   /* From this point on, it's structured */
945
945
   impl->structured = true;
946
946
 
947
 
   nir_builder b;
948
 
   nir_builder_init(&b, impl);
949
 
   b.cursor = nir_before_block(nir_start_block(impl));
 
947
   nir_builder b = nir_builder_at(nir_before_block(nir_start_block(impl)));
950
948
 
951
949
   void *mem_ctx = ralloc_context(b.shader);
952
950
 
977
975
   nir_metadata_preserve(impl, nir_metadata_none);
978
976
 
979
977
   nir_repair_ssa_impl(impl);
980
 
   nir_lower_regs_to_ssa_impl(impl);
 
978
   nir_lower_reg_intrinsics_to_ssa_impl(impl);
981
979
 
982
980
   return true;
983
981
}
987
985
{
988
986
   bool progress = true;
989
987
 
990
 
   nir_foreach_function(function, shader) {
991
 
      if (function->impl && nir_lower_goto_ifs_impl(function->impl))
 
988
   nir_foreach_function_impl(impl, shader) {
 
989
      if (nir_lower_goto_ifs_impl(impl))
992
990
         progress = true;
993
991
   }
994
992