Home
last modified time | relevance | path

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

/external/mesa3d/src/compiler/nir/
Dnir_lower_vec_to_movs.c149 nir_alu_instr *src_alu = in try_coalesce() local
152 if (has_replicated_dest(src_alu)) { in try_coalesce()
163 if (nir_op_infos[src_alu->op].output_size != 0) in try_coalesce()
169 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
170 if (nir_op_infos[src_alu->op].input_sizes[j] != 0) in try_coalesce()
176 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
178 swizzles[j][i] = src_alu->src[j].swizzle[i]; in try_coalesce()
186 vec->src[i].src.ssa != &src_alu->dest.dest.ssa) in try_coalesce()
193 if (has_replicated_dest(src_alu)) { in try_coalesce()
198 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce()
[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 src_alu->op == nir_op_vec2 || in is_phi_src_scalarizable()
69 src_alu->op == nir_op_vec3 || in is_phi_src_scalarizable()
70 src_alu->op == nir_op_vec4; in is_phi_src_scalarizable()
Dnir_search.c63 nir_alu_instr *src_alu = nir_instr_as_alu(src.ssa->parent_instr); in src_is_type() local
64 nir_alu_type output_type = nir_op_infos[src_alu->op].output_type; in src_is_type()
67 switch (src_alu->op) { in src_is_type()
71 return src_is_type(src_alu->src[0].src, nir_type_bool) && in src_is_type()
72 src_is_type(src_alu->src[1].src, nir_type_bool); in src_is_type()
74 return src_is_type(src_alu->src[0].src, nir_type_bool); in src_is_type()