~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/tests/opt_if_tests.cpp

  • 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:
126
126
   nir_phi_instr_add_src(phi, then_block, nir_src_for_ssa(one));
127
127
 
128
128
   nir_ssa_dest_init(&phi->instr, &phi->dest,
129
 
                     one->num_components, one->bit_size, NULL);
 
129
                     one->num_components, one->bit_size);
130
130
 
131
131
   nir_builder_instr_insert(&bld, &phi->instr);
132
132
 
148
148
   nir_loop *loop = nir_push_loop(&bld);
149
149
   {
150
150
      nir_ssa_dest_init(&phi->instr, &phi->dest,
151
 
                        x->num_components, x->bit_size, NULL);
 
151
                        x->num_components, x->bit_size);
152
152
 
153
153
      nir_phi_instr_add_src(phi, x->parent_instr->block, nir_src_for_ssa(x));
154
154