Home
last modified time | relevance | path

Searched refs:lod_idx (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instruction_tex.cpp237 int lod_idx = nir_tex_instr_src_index(tex, nir_tex_src_lod); in lower_txl_txf_array_or_cube() local
240 assert (lod_idx >= 0 || bias_idx >= 0); in lower_txl_txf_array_or_cube()
243 nir_ssa_def *lod = (lod_idx >= 0) ? in lower_txl_txf_array_or_cube()
244 nir_ssa_for_src(b, tex->src[lod_idx].src, 1) : in lower_txl_txf_array_or_cube()
270 if (lod_idx >= 0) in lower_txl_txf_array_or_cube()
271 nir_tex_instr_remove_src(tex, lod_idx); in lower_txl_txf_array_or_cube()
/external/mesa3d/src/compiler/nir/
Dnir_lower_tex.c969 int lod_idx = nir_tex_instr_src_index(tex, nir_tex_src_lod); in nir_lower_txs_lod() local
970 if (lod_idx < 0 || in nir_lower_txs_lod()
971 (nir_src_is_const(tex->src[lod_idx].src) && in nir_lower_txs_lod()
972 nir_src_as_int(tex->src[lod_idx].src) == 0)) in nir_lower_txs_lod()
978 nir_ssa_def *lod = nir_ssa_for_src(b, tex->src[lod_idx].src, 1); in nir_lower_txs_lod()
981 nir_instr_rewrite_src(&tex->instr, &tex->src[lod_idx].src, in nir_lower_txs_lod()
/external/mesa3d/src/panfrost/bifrost/
Dbifrost_compile.c2033 int lod_idx = nir_tex_instr_src_index(instr, nir_tex_src_lod); in bi_is_normal_tex() local
2034 if (lod_idx < 0) in bi_is_normal_tex()
2037 nir_src lod = instr->src[lod_idx].src; in bi_is_normal_tex()
/external/mesa3d/src/freedreno/ir3/
Dir3_compiler_nir.c2525 int lod_idx = nir_tex_instr_src_index(tex, nir_tex_src_lod); in emit_tex_txs() local
2526 compile_assert(ctx, lod_idx >= 0); in emit_tex_txs()
2528 lod = ir3_get_src(ctx, &tex->src[lod_idx].src)[0]; in emit_tex_txs()