Lines Matching defs:deref
156 nir_deref_instr *deref = nir_instr_as_deref(instr);
157 if (deref->deref_type != nir_deref_type_var)
160 if (!glsl_type_is_image(deref->type) &&
161 !glsl_type_is_sampler(deref->type))
164 b.cursor = nir_instr_remove(&deref->instr);
166 nir_imm_intN_t(&b, deref->var->data.driver_location,
167 deref->dest.ssa.bit_size);
168 nir_ssa_def_rewrite_uses(&deref->dest.ssa, loc);
179 nir_deref_instr *deref = nir_src_as_deref(tex->src[i].src);
180 if (deref->deref_type == nir_deref_type_var) {
183 tex->texture_index = deref->var->data.driver_location;
185 tex->sampler_index = deref->var->data.driver_location;