Lines Matching refs:instr
107 b->cursor = nir_before_instr(&tex->instr);
154 nir_instr_rewrite_src(&tex->instr,
178 b->cursor = nir_before_instr(&tex->instr);
211 nir_instr_rewrite_src(&tex->instr, &tex->src[coord_index].src,
234 nir_instr_rewrite_src(&tex->instr,
243 b->cursor = nir_before_instr(&tex->instr);
252 nir_instr_rewrite_src(&tex->instr,
287 b->cursor = nir_before_instr(&tex->instr);
294 b->cursor = nir_before_instr(&tex->instr);
298 nir_instr_remove(&tex->instr);
331 nir_ssa_dest_init(&plane_tex->instr, &plane_tex->dest, 4,
334 nir_builder_instr_insert(b, &plane_tex->instr);
405 b->cursor = nir_after_instr(&tex->instr);
424 b->cursor = nir_after_instr(&tex->instr);
444 b->cursor = nir_after_instr(&tex->instr);
463 b->cursor = nir_after_instr(&tex->instr);
482 b->cursor = nir_after_instr(&tex->instr);
500 b->cursor = nir_after_instr(&tex->instr);
518 b->cursor = nir_after_instr(&tex->instr);
536 b->cursor = nir_after_instr(&tex->instr);
554 b->cursor = nir_after_instr(&tex->instr);
800 b->cursor = nir_after_instr(&tex->instr);
827 nir_ssa_dest_init(&txd->instr, &txd->dest, nir_dest_num_components(tex->dest),
829 nir_builder_instr_insert(b, &txd->instr);
831 nir_instr_remove(&tex->instr);
839 b->cursor = nir_after_instr(&tex->instr);
867 nir_ssa_dest_init(&txl->instr, &txl->dest, nir_dest_num_components(tex->dest),
869 nir_builder_instr_insert(b, &txl->instr);
871 nir_instr_remove(&tex->instr);
883 b->cursor = nir_before_instr(&tex->instr);
921 nir_instr_rewrite_src(&tex->instr,
953 b->cursor = nir_after_instr(&tex->instr);
968 b->cursor = nir_after_instr(&tex->instr);
1010 b->cursor = nir_after_instr(&tex->instr);
1041 b->cursor = nir_after_instr(&tex->instr);
1113 b->cursor = nir_before_instr(&tex->instr);
1119 nir_instr_rewrite_src_ssa(&tex->instr, &tex->src[coord_index].src, new_coord);
1150 b->cursor = nir_after_instr(&tex->instr);
1177 nir_ssa_dest_init(&tex_copy->instr, &tex_copy->dest,
1180 nir_builder_instr_insert(b, &tex_copy->instr);
1195 nir_instr_remove(&tex->instr);
1211 b->cursor = nir_before_instr(&tex->instr);
1215 nir_instr_rewrite_src(&tex->instr, &tex->src[lod_idx].src,
1222 b->cursor = nir_after_instr(&tex->instr);
1252 b->cursor = nir_after_instr(&tex->instr);
1270 b->cursor = nir_before_instr(&tex->instr);
1281 nir_ssa_dest_init(&fmask_fetch->instr, &fmask_fetch->dest, 1, 32, NULL);
1292 nir_builder_instr_insert(b, &fmask_fetch->instr);
1311 nir_instr_rewrite_src_ssa(&tex->instr, &tex->src[ms_index].src, new_sample);
1317 b->cursor = nir_after_instr(&tex->instr);
1319 nir_tex_instr *fmask_fetch = nir_instr_as_tex(nir_instr_clone(b->shader, &tex->instr));
1322 nir_ssa_dest_init(&fmask_fetch->instr, &fmask_fetch->dest, 1, 32, NULL);
1323 nir_builder_instr_insert(b, &fmask_fetch->instr);
1326 nir_instr_remove_v(&tex->instr);
1335 b->cursor = nir_after_instr(&tex->instr);
1368 nir_foreach_instr_safe(instr, block) {
1369 if (instr->type != nir_instr_type_tex)
1372 nir_tex_instr *tex = nir_instr_as_tex(instr);
1398 options->lower_offset_filter(instr, options->callback_data))) {
1543 b->cursor = nir_before_instr(&tex->instr);