Lines Matching refs:ntex
401 nir_tex_instr *ntex = nir_tex_instr_create(state->ns, tex->num_srcs);
403 ntex->sampler_dim = tex->sampler_dim;
404 ntex->dest_type = tex->dest_type;
405 ntex->op = tex->op;
406 __clone_dst(state, &ntex->instr, &ntex->dest, &tex->dest);
407 for (unsigned i = 0; i < ntex->num_srcs; i++) {
408 ntex->src[i].src_type = tex->src[i].src_type;
409 __clone_src(state, &ntex->instr, &ntex->src[i].src, &tex->src[i].src);
411 ntex->coord_components = tex->coord_components;
412 ntex->is_array = tex->is_array;
413 ntex->array_is_lowered_cube = tex->array_is_lowered_cube;
414 ntex->is_shadow = tex->is_shadow;
415 ntex->is_new_style_shadow = tex->is_new_style_shadow;
416 ntex->is_sparse = tex->is_sparse;
417 ntex->component = tex->component;
418 memcpy(ntex->tg4_offsets, tex->tg4_offsets, sizeof(tex->tg4_offsets));
420 ntex->texture_index = tex->texture_index;
421 ntex->sampler_index = tex->sampler_index;
423 ntex->texture_non_uniform = tex->texture_non_uniform;
424 ntex->sampler_non_uniform = tex->sampler_non_uniform;
426 return ntex;