Lines Matching defs:instr
31 nir_tex_instr *instr, unsigned src_idx)
36 nir_tex_src *src = &instr->src[src_idx];
63 * Otherwise instr->sampler_index or instr->texture_index would be out
97 * instr if needed
100 nir_instr_rewrite_src(&instr->instr, &src->src,
107 nir_tex_instr_remove_src(instr, src_idx);
111 instr->sampler_index = base_index;
113 instr->texture_index = base_index;
118 lower_sampler(nir_builder *b, nir_tex_instr *instr)
121 nir_tex_instr_src_index(instr, nir_tex_src_texture_deref);
124 b->cursor = nir_before_instr(&instr->instr);
126 lower_tex_src_to_offset(b, instr, texture_idx);
130 nir_tex_instr_src_index(instr, nir_tex_src_sampler_deref);
133 lower_tex_src_to_offset(b, instr, sampler_idx);
150 nir_foreach_instr(instr, block) {
151 if (instr->type == nir_instr_type_tex)
152 progress |= lower_sampler(&b, nir_instr_as_tex(instr));