Searched refs:src_alu (Results 1 – 7 of 7) sorted by relevance
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_vec_to_movs.c | 161 nir_alu_instr *src_alu = in try_coalesce() local 164 if (has_replicated_dest(src_alu)) { in try_coalesce() 175 if (nir_op_infos[src_alu->op].output_size != 0) in try_coalesce() 181 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce() 182 if (nir_op_infos[src_alu->op].input_sizes[j] != 0) in try_coalesce() 188 for (unsigned j = 0; j < nir_op_infos[src_alu->op].num_inputs; j++) in try_coalesce() 190 swizzles[j][i] = src_alu->src[j].swizzle[i]; in try_coalesce() 199 vec->src[i].src.ssa != &src_alu->dest.dest.ssa) in try_coalesce() 207 if (data->cb && !data->cb(&src_alu->instr, write_mask, data->data)) in try_coalesce() 217 if (has_replicated_dest(src_alu)) { in try_coalesce() [all …]
|
D | nir_search_helpers.h | 241 nir_alu_instr *src_alu = in is_not_fmul() local 244 if (src_alu == NULL) in is_not_fmul() 247 if (src_alu->op == nir_op_fneg) in is_not_fmul() 248 return is_not_fmul(ht, src_alu, 0, 0, NULL); in is_not_fmul() 250 return src_alu->op != nir_op_fmul; in is_not_fmul() 257 nir_alu_instr *src_alu = in is_fmul() local 260 if (src_alu == NULL) in is_fmul() 263 if (src_alu->op == nir_op_fneg) in is_fmul() 264 return is_fmul(ht, src_alu, 0, 0, NULL); in is_fmul() 266 return src_alu->op == nir_op_fmul; in is_fmul() [all …]
|
D | nir_lower_mediump.c | 438 nir_alu_instr *src_alu; in nir_fold_16bit_sampler_conversions() local 456 src_alu = nir_instr_as_alu(src); in nir_fold_16bit_sampler_conversions() 459 if (src_alu->op == nir_op_mov) { in nir_fold_16bit_sampler_conversions() 466 if (nir_op_is_vec(src_alu->op)) { in nir_fold_16bit_sampler_conversions() 468 unsigned num = nir_dest_num_components(src_alu->dest.dest); in nir_fold_16bit_sampler_conversions() 473 nir_instr *instr = src_alu->src[comp].src.ssa->parent_instr; in nir_fold_16bit_sampler_conversions() 487 nir_alu_instr *new_vec = nir_alu_instr_clone(nir, src_alu); in nir_fold_16bit_sampler_conversions() 488 nir_instr_insert_after(&src_alu->instr, &new_vec->instr); in nir_fold_16bit_sampler_conversions() 503 } else if (is_f16_to_f32_conversion(&src_alu->instr) || in nir_fold_16bit_sampler_conversions() 504 is_u16_to_u32_conversion(&src_alu->instr) || in nir_fold_16bit_sampler_conversions() [all …]
|
D | nir_lower_phis_to_scalar.c | 63 nir_alu_instr *src_alu = nir_instr_as_alu(src_instr); in is_phi_src_scalarizable() local 70 return nir_op_infos[src_alu->op].output_size == 0 || in is_phi_src_scalarizable() 71 nir_op_is_vec(src_alu->op); in is_phi_src_scalarizable()
|
D | nir_opt_gcm.c | 169 nir_alu_instr *src_alu = nir_instr_as_alu(src_instr); in is_src_scalarizable() local 176 return nir_op_infos[src_alu->op].output_size == 0 || in is_src_scalarizable() 177 src_alu->op == nir_op_vec2 || in is_src_scalarizable() 178 src_alu->op == nir_op_vec3 || in is_src_scalarizable() 179 src_alu->op == nir_op_vec4; in is_src_scalarizable()
|
D | nir_search.c | 81 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()
|
D | nir_split_vars.c | 1192 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()
|