Lines Matching defs:txs
338 nir_tex_instr *txs;
351 txs = nir_tex_instr_create(b->shader, num_srcs);
352 txs->op = nir_texop_txs;
353 txs->sampler_dim = tex->sampler_dim;
354 txs->is_array = tex->is_array;
355 txs->is_shadow = tex->is_shadow;
356 txs->is_new_style_shadow = tex->is_new_style_shadow;
357 txs->texture_index = tex->texture_index;
358 txs->sampler_index = tex->sampler_index;
359 txs->dest_type = nir_type_int32;
369 nir_src_copy(&txs->src[idx].src, &tex->src[i].src);
370 txs->src[idx].src_type = tex->src[i].src_type;
375 txs->src[idx].src = nir_src_for_ssa(nir_imm_int(b, 0));
376 txs->src[idx].src_type = nir_tex_src_lod;
378 nir_ssa_dest_init(&txs->instr, &txs->dest,
379 nir_tex_instr_dest_size(txs), 32, NULL);
380 nir_builder_instr_insert(b, &txs->instr);
382 return &txs->dest.ssa;