Home
last modified time | relevance | path

Searched refs:src_alu (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_lower_vec_to_movs.c150 nir_alu_instr *src_alu = in try_coalesce() local
153 if (has_replicated_dest(src_alu)) { in try_coalesce()
164 if (nir_op_infos[src_alu->op].output_size != 0) in try_coalesce()
170 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
171 if (nir_op_infos[src_alu->op].input_sizes[j] != 0) in try_coalesce()
177 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
179 swizzles[j][i] = src_alu->src[j].swizzle[i]; in try_coalesce()
187 vec->src[i].src.ssa != &src_alu->dest.dest.ssa) in try_coalesce()
194 if (has_replicated_dest(src_alu)) { in try_coalesce()
199 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
[all …]
Dnir_search_helpers.h216 nir_alu_instr *src_alu = in is_not_fmul() local
219 if (src_alu == NULL) in is_not_fmul()
222 if (src_alu->op == nir_op_fneg) in is_not_fmul()
223 return is_not_fmul(ht, src_alu, 0, 0, NULL); in is_not_fmul()
225 return src_alu->op != nir_op_fmul; in is_not_fmul()
232 nir_alu_instr *src_alu = in is_fmul() local
235 if (src_alu == NULL) in is_fmul()
238 if (src_alu->op == nir_op_fneg) in is_fmul()
239 return is_fmul(ht, src_alu, 0, 0, NULL); in is_fmul()
241 return src_alu->op == nir_op_fmul; in is_fmul()
[all …]
Dnir_lower_phis_to_scalar.c60 nir_alu_instr *src_alu = nir_instr_as_alu(src_instr); in is_phi_src_scalarizable() local
67 return nir_op_infos[src_alu->op].output_size == 0 || in is_phi_src_scalarizable()
68 nir_op_is_vec(src_alu->op); in is_phi_src_scalarizable()
Dnir_opt_gcm.c120 nir_alu_instr *src_alu = nir_instr_as_alu(src_instr); in is_src_scalarizable() local
127 return nir_op_infos[src_alu->op].output_size == 0 || in is_src_scalarizable()
128 src_alu->op == nir_op_vec2 || in is_src_scalarizable()
129 src_alu->op == nir_op_vec3 || in is_src_scalarizable()
130 src_alu->op == nir_op_vec4; in is_src_scalarizable()
Dnir_search.c81 nir_alu_instr *src_alu = nir_instr_as_alu(src.ssa->parent_instr); in src_is_type() local
82 nir_alu_type output_type = nir_op_infos[src_alu->op].output_type; in src_is_type()
85 switch (src_alu->op) { in src_is_type()
89 return src_is_type(src_alu->src[0].src, nir_type_bool) && in src_is_type()
90 src_is_type(src_alu->src[1].src, nir_type_bool); in src_is_type()
92 return src_is_type(src_alu->src[0].src, nir_type_bool); in src_is_type()
Dnir_split_vars.c1192 nir_alu_instr *src_alu = nir_instr_as_alu(src_instr); in get_non_self_referential_store_comps() local
1194 if (src_alu->op == nir_op_mov) { in get_non_self_referential_store_comps()
1198 if (src_is_load_deref(src_alu->src[0].src, store->src[0])) { in get_non_self_referential_store_comps()
1200 if (src_alu->src[0].swizzle[i] == i) in get_non_self_referential_store_comps()
1204 } else if (nir_op_is_vec(src_alu->op)) { in get_non_self_referential_store_comps()
1208 for (unsigned i = 0; i < nir_op_infos[src_alu->op].num_inputs; i++) { in get_non_self_referential_store_comps()
1209 if (src_is_load_deref(src_alu->src[i].src, store->src[0]) && in get_non_self_referential_store_comps()
1210 src_alu->src[i].swizzle[0] == i) in get_non_self_referential_store_comps()