Searched refs:bias_idx (Results 1 – 4 of 4) sorted by relevance
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir_lower_tex.cpp | 149 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_txl_txf_array_or_cube() local 151 assert (lod_idx >= 0 || bias_idx >= 0); in lower_txl_txf_array_or_cube() 158 if (bias_idx >= 0) in lower_txl_txf_array_or_cube() 159 lod = nir_fadd(b, lod,nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_txl_txf_array_or_cube() 183 if (bias_idx >= 0) in lower_txl_txf_array_or_cube() 184 nir_tex_instr_remove_src(tex, bias_idx); in lower_txl_txf_array_or_cube()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_opt_constant_folding.c | 313 const int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in try_fold_txb_to_tex() local 319 if (bias_idx < 0) in try_fold_txb_to_tex() 322 if (nir_src_is_const(tex->src[bias_idx].src) && in try_fold_txb_to_tex() 323 nir_src_as_float(tex->src[bias_idx].src) == 0.0) { in try_fold_txb_to_tex() 324 nir_tex_instr_remove_src(tex, bias_idx); in try_fold_txb_to_tex()
|
D | nir_lower_tex.c | 266 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_lod() local 267 if (bias_idx >= 0) { in lower_lod() 269 lod = nir_fadd(b, lod, nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_lod() 270 nir_tex_instr_remove_src(tex, bias_idx); in lower_lod() 861 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_txb_to_txl() local 862 assert(bias_idx >= 0); in lower_txb_to_txl() 863 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()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_lower_cubemap_to_array.c | 416 int bias_idx = nir_tex_instr_src_index(tex, nir_tex_src_bias); in lower_tex_to_txl() local 417 unsigned num_srcs = bias_idx >= 0 ? tex->num_srcs : tex->num_srcs + 1; in lower_tex_to_txl() 433 if (i == bias_idx) in lower_tex_to_txl() 441 if (bias_idx >= 0) in lower_tex_to_txl() 442 lod = nir_fadd(b, lod, nir_ssa_for_src(b, tex->src[bias_idx].src, 1)); in lower_tex_to_txl()
|