• Home
  • Raw
  • Download

Lines Matching refs:txs

109    nir_tex_instr *txs;  in get_texture_size()  local
111 txs = nir_tex_instr_create(b->shader, 1); in get_texture_size()
112 txs->op = nir_texop_txs; in get_texture_size()
113 txs->sampler_dim = tex->sampler_dim; in get_texture_size()
114 txs->is_array = tex->is_array; in get_texture_size()
115 txs->is_shadow = tex->is_shadow; in get_texture_size()
116 txs->is_new_style_shadow = tex->is_new_style_shadow; in get_texture_size()
117 txs->texture_index = tex->texture_index; in get_texture_size()
118 txs->texture = nir_deref_var_clone(tex->texture, txs); in get_texture_size()
119 txs->sampler_index = tex->sampler_index; in get_texture_size()
120 txs->sampler = nir_deref_var_clone(tex->sampler, txs); in get_texture_size()
121 txs->dest_type = nir_type_int; in get_texture_size()
124 txs->src[0].src = nir_src_for_ssa(nir_imm_int(b, 0)); in get_texture_size()
125 txs->src[0].src_type = nir_tex_src_lod; in get_texture_size()
127 nir_ssa_dest_init(&txs->instr, &txs->dest, in get_texture_size()
128 nir_tex_instr_dest_size(txs), 32, NULL); in get_texture_size()
129 nir_builder_instr_insert(b, &txs->instr); in get_texture_size()
131 return nir_i2f32(b, &txs->dest.ssa); in get_texture_size()
156 nir_ssa_def *txs = get_texture_size(b, tex); in lower_offset() local
157 nir_ssa_def *scale = nir_frcp(b, txs); in lower_offset()
193 nir_ssa_def *txs = get_texture_size(b, tex); in lower_rect() local
194 nir_ssa_def *scale = nir_frcp(b, txs); in lower_rect()
610 nir_ssa_def *txs = get_texture_size(b, tex); in saturate_src() local
612 comp[j] = nir_fmin(b, comp[j], nir_channel(b, txs, j)); in saturate_src()