~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/compiler/nir/nir_lower_array_deref_of_vec.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:
50
50
      build_write_masked_store(b, vec_deref, value, start);
51
51
   } else {
52
52
      unsigned mid = start + (end - start) / 2;
53
 
      nir_push_if(b, nir_ilt(b, index, nir_imm_int(b, mid)));
 
53
      nir_push_if(b, nir_ilt_imm(b, index, mid));
54
54
      build_write_masked_stores(b, vec_deref, value, index, start, mid);
55
55
      nir_push_else(b, NULL);
56
56
      build_write_masked_stores(b, vec_deref, value, index, mid, end);
65
65
{
66
66
   bool progress = false;
67
67
 
68
 
   nir_builder b;
69
 
   nir_builder_init(&b, impl);
 
68
   nir_builder b = nir_builder_create(impl);
70
69
 
71
70
   nir_foreach_block(block, impl) {
72
71
      nir_foreach_instr_safe(instr, block) {
187
186
{
188
187
   bool progress = false;
189
188
 
190
 
   nir_foreach_function(function, shader) {
191
 
      if (function->impl &&
192
 
          nir_lower_array_deref_of_vec_impl(function->impl, modes, options))
 
189
   nir_foreach_function_impl(impl, shader) {
 
190
      if (nir_lower_array_deref_of_vec_impl(impl, modes, options))
193
191
         progress = true;
194
192
   }
195
193