~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/imagination/rogue/nir/rogue_nir_lower_io.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:
67
67
   for (uint8_t i = 0; i < intr->num_components; i++) {
68
68
      nir_intrinsic_instr *chan_intr =
69
69
         nir_intrinsic_instr_create(b->shader, intr->intrinsic);
70
 
      nir_ssa_dest_init(&chan_intr->instr,
71
 
                        &chan_intr->dest,
72
 
                        1,
73
 
                        intr->dest.ssa.bit_size,
74
 
                        NULL);
 
70
      nir_ssa_dest_init(&chan_intr->instr, &chan_intr->dest, 1,
 
71
                        intr->dest.ssa.bit_size);
75
72
      chan_intr->num_components = 1;
76
73
 
77
74
      nir_intrinsic_set_access(chan_intr, nir_intrinsic_access(intr));
114
111
static bool lower_impl(nir_function_impl *impl)
115
112
{
116
113
   bool progress = false;
117
 
   nir_builder b;
118
 
 
119
 
   nir_builder_init(&b, impl);
 
114
   nir_builder b = nir_builder_create(impl);
120
115
 
121
116
   nir_foreach_block (block, impl) {
122
117
      nir_foreach_instr_safe (instr, block) {