• Home
  • Raw
  • Download

Lines Matching refs:txl

337    nir_tex_instr *txl = nir_tex_instr_create(b->shader, num_srcs);  in replace_gradient_with_lod()  local
339 txl->op = nir_texop_txl; in replace_gradient_with_lod()
340 txl->sampler_dim = tex->sampler_dim; in replace_gradient_with_lod()
341 txl->texture_index = tex->texture_index; in replace_gradient_with_lod()
342 txl->dest_type = tex->dest_type; in replace_gradient_with_lod()
343 txl->is_array = tex->is_array; in replace_gradient_with_lod()
344 txl->is_shadow = tex->is_shadow; in replace_gradient_with_lod()
345 txl->is_new_style_shadow = tex->is_new_style_shadow; in replace_gradient_with_lod()
346 txl->sampler_index = tex->sampler_index; in replace_gradient_with_lod()
347 txl->texture = nir_deref_var_clone(tex->texture, txl); in replace_gradient_with_lod()
348 txl->sampler = nir_deref_var_clone(tex->sampler, txl); in replace_gradient_with_lod()
349 txl->coord_components = tex->coord_components; in replace_gradient_with_lod()
351 nir_ssa_dest_init(&txl->instr, &txl->dest, 4, 32, NULL); in replace_gradient_with_lod()
358 nir_src_copy(&txl->src[src_num].src, &tex->src[i].src, txl); in replace_gradient_with_lod()
359 txl->src[src_num].src_type = tex->src[i].src_type; in replace_gradient_with_lod()
363 txl->src[src_num].src = nir_src_for_ssa(lod); in replace_gradient_with_lod()
364 txl->src[src_num].src_type = nir_tex_src_lod; in replace_gradient_with_lod()
369 nir_ssa_dest_init(&txl->instr, &txl->dest, in replace_gradient_with_lod()
371 nir_builder_instr_insert(b, &txl->instr); in replace_gradient_with_lod()
373 nir_ssa_def_rewrite_uses(&tex->dest.ssa, nir_src_for_ssa(&txl->dest.ssa)); in replace_gradient_with_lod()