Home
last modified time | relevance | path

Searched refs:bias_idx (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_tex.cpp256 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_txl_txf_array_or_cube() local
258 assert (lod_idx >= 0 || bias_idx >= 0); in lower_txl_txf_array_or_cube()
265 if (bias_idx >= 0) in lower_txl_txf_array_or_cube()
266 lod = nir_fadd(b, lod,nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_txl_txf_array_or_cube()
290 if (bias_idx >= 0) in lower_txl_txf_array_or_cube()
291 nir_tex_instr_remove_src(tex, bias_idx); in lower_txl_txf_array_or_cube()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_tex.c240 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_lod() local
241 if (bias_idx >= 0) { in lower_lod()
243 lod = nir_fadd(b, lod, nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_lod()
244 nir_tex_instr_remove_src(tex, bias_idx); in lower_lod()
816 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_txb_to_txl() local
817 assert(bias_idx >= 0); in lower_txb_to_txl()
818 lod = nir_fadd(b, nir_channel(b, lod, 1), nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_txb_to_txl()