~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/intel/blorp/blorp_nir_builder.h

  • 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:
53
53
   } else {
54
54
      tex->is_array = false;
55
55
      tex->coord_components = 2;
56
 
      coord = nir_channels(b, xy_pos, 0x3);
 
56
      coord = nir_trim_vector(b, xy_pos, 2);
57
57
   }
58
 
   tex->src[0].src_type = nir_tex_src_coord;
59
 
   tex->src[0].src = nir_src_for_ssa(coord);
 
58
   tex->src[0] = nir_tex_src_for_ssa(nir_tex_src_coord, coord);
60
59
 
61
60
   /* Blorp only has one texture and it's bound at unit 0 */
62
61
   tex->texture_index = 0;
63
62
   tex->sampler_index = 0;
64
63
 
65
 
   nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32, NULL);
 
64
   nir_ssa_dest_init(&tex->instr, &tex->dest, 4, 32);
66
65
   nir_builder_instr_insert(b, &tex->instr);
67
66
 
68
67
   return &tex->dest.ssa;