Lines Matching refs:ntex
382 nir_tex_instr *ntex = nir_tex_instr_create(state->ns, tex->num_srcs);
384 ntex->sampler_dim = tex->sampler_dim;
385 ntex->dest_type = tex->dest_type;
386 ntex->op = tex->op;
387 __clone_dst(state, &ntex->instr, &ntex->dest, &tex->dest);
388 for (unsigned i = 0; i < ntex->num_srcs; i++) {
389 ntex->src[i].src_type = tex->src[i].src_type;
390 __clone_src(state, &ntex->instr, &ntex->src[i].src, &tex->src[i].src);
392 ntex->coord_components = tex->coord_components;
393 ntex->is_array = tex->is_array;
394 ntex->is_shadow = tex->is_shadow;
395 ntex->is_new_style_shadow = tex->is_new_style_shadow;
396 ntex->component = tex->component;
397 memcpy(ntex->tg4_offsets, tex->tg4_offsets, sizeof(tex->tg4_offsets));
399 ntex->texture_index = tex->texture_index;
400 ntex->texture_array_size = tex->texture_array_size;
401 ntex->sampler_index = tex->sampler_index;
403 return ntex;