~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/tests/dce_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:
51
51
{
52
52
   nir_phi_instr *phi = nir_phi_instr_create(shader);
53
53
   nir_phi_instr_add_src(phi, pred, nir_src_for_ssa(def));
54
 
   nir_ssa_dest_init(&phi->instr, &phi->dest,
55
 
                     def->num_components, def->bit_size, NULL);
 
54
   nir_ssa_dest_init(&phi->instr, &phi->dest, def->num_components,
 
55
                     def->bit_size);
56
56
 
57
57
   return phi;
58
58
}