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.c115 nir_alu_instr *alu_instr = nir_instr_as_alu(src_instr); in copy_prop_src() local
116 if (!is_swizzleless_move(alu_instr)) in copy_prop_src()
119 if (alu_instr->src[0].src.ssa->num_components != num_components) in copy_prop_src()
124 nir_src_for_ssa(alu_instr->src[0].src.ssa)); in copy_prop_src()
128 nir_src_for_ssa(alu_instr->src[0].src.ssa)); in copy_prop_src()
149 nir_alu_instr *alu_instr = nir_instr_as_alu(src_instr); in copy_prop_alu_src() local
150 if (!is_move(alu_instr) && !is_vec(alu_instr)) in copy_prop_alu_src()
156 if (alu_instr->op == nir_op_fmov || in copy_prop_alu_src()
157 alu_instr->op == nir_op_imov) { in copy_prop_alu_src()
159 new_swizzle[i] = alu_instr->src[0].swizzle[src->swizzle[i]]; in copy_prop_alu_src()
[all …]
Dnir_lower_64bit_packing.c63 nir_alu_instr *alu_instr = (nir_alu_instr *) instr; in lower_64bit_pack_impl() local
65 if (alu_instr->op != nir_op_pack_64_2x32 && in lower_64bit_pack_impl()
66 alu_instr->op != nir_op_unpack_64_2x32) in lower_64bit_pack_impl()
69 b.cursor = nir_before_instr(&alu_instr->instr); in lower_64bit_pack_impl()
71 nir_ssa_def *src = nir_ssa_for_alu_src(&b, alu_instr, 0); in lower_64bit_pack_impl()
74 switch (alu_instr->op) { in lower_64bit_pack_impl()
85 nir_ssa_def_rewrite_uses(&alu_instr->dest.dest.ssa, nir_src_for_ssa(dest)); in lower_64bit_pack_impl()
86 nir_instr_remove(&alu_instr->instr); in lower_64bit_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.cpp1312 nir_alu_instr *alu_instr; in get_instr_dest() local
1318 alu_instr = nir_instr_as_alu(instr); in get_instr_dest()
1319 return &alu_instr->dest.dest; in get_instr_dest()