Lines Matching refs:txs
31 * to normalized coordinates with txs plus ALU instructions
109 nir_tex_instr *txs;
111 txs = nir_tex_instr_create(b->shader, 1);
112 txs->op = nir_texop_txs;
113 txs->sampler_dim = tex->sampler_dim;
114 txs->is_array = tex->is_array;
115 txs->is_shadow = tex->is_shadow;
116 txs->is_new_style_shadow = tex->is_new_style_shadow;
117 txs->texture_index = tex->texture_index;
118 txs->texture = nir_deref_var_clone(tex->texture, txs);
119 txs->sampler_index = tex->sampler_index;
120 txs->sampler = nir_deref_var_clone(tex->sampler, txs);
121 txs->dest_type = nir_type_int;
124 txs->src[0].src = nir_src_for_ssa(nir_imm_int(b, 0));
125 txs->src[0].src_type = nir_tex_src_lod;
127 nir_ssa_dest_init(&txs->instr, &txs->dest,
128 nir_tex_instr_dest_size(txs), 32, NULL);
129 nir_builder_instr_insert(b, &txs->instr);
131 return nir_i2f32(b, &txs->dest.ssa);
156 nir_ssa_def *txs = get_texture_size(b, tex);
157 nir_ssa_def *scale = nir_frcp(b, txs);
193 nir_ssa_def *txs = get_texture_size(b, tex);
194 nir_ssa_def *scale = nir_frcp(b, txs);
610 nir_ssa_def *txs = get_texture_size(b, tex);
612 comp[j] = nir_fmin(b, comp[j], nir_channel(b, txs, j));
828 /* TXF, TXS and TXL require a LOD but not everything we implement using those