Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_opt_copy_propagate.c114 nir_alu_instr *alu_instr = nir_instr_as_alu(src_instr); in copy_prop_src() local
115 if (!is_swizzleless_move(alu_instr)) in copy_prop_src()
126 alu_instr->src[0].src.ssa->num_components) in copy_prop_src()
132 nir_src_for_ssa(alu_instr->src[0].src.ssa)); in copy_prop_src()
136 nir_src_for_ssa(alu_instr->src[0].src.ssa)); in copy_prop_src()
157 nir_alu_instr *alu_instr = nir_instr_as_alu(src_instr); in copy_prop_alu_src() local
158 if (!is_move(alu_instr) && !is_vec(alu_instr)) in copy_prop_alu_src()
164 if (alu_instr->op == nir_op_fmov || in copy_prop_alu_src()
165 alu_instr->op == nir_op_imov) { in copy_prop_alu_src()
167 new_swizzle[i] = alu_instr->src[0].swizzle[src->swizzle[i]]; in copy_prop_alu_src()
[all …]
Dnir_lower_double_packing.c60 nir_alu_instr *alu_instr = (nir_alu_instr *) instr; in lower_double_pack_impl() local
62 if (alu_instr->op != nir_op_pack_double_2x32 && in lower_double_pack_impl()
63 alu_instr->op != nir_op_unpack_double_2x32) in lower_double_pack_impl()
66 b.cursor = nir_before_instr(&alu_instr->instr); in lower_double_pack_impl()
68 nir_ssa_def *src = nir_ssa_for_alu_src(&b, alu_instr, 0); in lower_double_pack_impl()
70 alu_instr->op == nir_op_pack_double_2x32 ? in lower_double_pack_impl()
74 nir_ssa_def_rewrite_uses(&alu_instr->dest.dest.ssa, nir_src_for_ssa(dest)); in lower_double_pack_impl()
75 nir_instr_remove(&alu_instr->instr); in lower_double_pack_impl()
Dnir_opt_dce.c69 nir_alu_instr *alu_instr; in init_instr() local
86 alu_instr = nir_instr_as_alu(instr); in init_instr()
87 if (!alu_instr->dest.dest.is_ssa) in init_instr()
/external/mesa3d/src/compiler/glsl/
Dglsl_to_nir.cpp1240 nir_alu_instr *alu_instr; in get_instr_dest() local
1246 alu_instr = nir_instr_as_alu(instr); in get_instr_dest()
1247 return &alu_instr->dest.dest; in get_instr_dest()