• Home
  • Raw
  • Download

Lines Matching refs:alu2

425                             const nir_alu_instr *alu2,  in nir_alu_srcs_negative_equal()  argument
431 nir_alu_instr_channel_used(alu2, src2, i)); in nir_alu_srcs_negative_equal()
436 nir_op_infos[alu2->op].input_types[src2]); in nir_alu_srcs_negative_equal()
439 assert(nir_op_infos[alu2->op].input_types[src2] == nir_type_int); in nir_alu_srcs_negative_equal()
443 if (alu1->src[src1].abs != alu2->src[src2].abs) in nir_alu_srcs_negative_equal()
446 bool parity = alu1->src[src1].negate != alu2->src[src2].negate; in nir_alu_srcs_negative_equal()
461 nir_src_as_const_value(alu2->src[src2].src); in nir_alu_srcs_negative_equal()
467 nir_src_bit_size(alu2->src[src2].src)) in nir_alu_srcs_negative_equal()
475 const2[alu2->src[src2].swizzle[i]], in nir_alu_srcs_negative_equal()
502 nir_alu_instr *neg2 = get_neg_instr(alu2->src[src2].src); in nir_alu_srcs_negative_equal()
511 alu2_actual_src = alu2->src[src2].src; in nir_alu_srcs_negative_equal()
513 for (unsigned i = 0; i < nir_ssa_alu_instr_src_components(alu2, src2); i++) in nir_alu_srcs_negative_equal()
519 alu2_swizzle[alu2->src[src2].swizzle[i]]) in nir_alu_srcs_negative_equal()
527 nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2, in nir_alu_srcs_equal() argument
530 if (alu1->src[src1].abs != alu2->src[src2].abs || in nir_alu_srcs_equal()
531 alu1->src[src1].negate != alu2->src[src2].negate) in nir_alu_srcs_equal()
535 if (alu1->src[src1].swizzle[i] != alu2->src[src2].swizzle[i]) in nir_alu_srcs_equal()
539 return nir_srcs_equal(alu1->src[src1].src, alu2->src[src2].src); in nir_alu_srcs_equal()
559 nir_alu_instr *alu2 = nir_instr_as_alu(instr2); in nir_instrs_equal() local
561 if (alu1->op != alu2->op) in nir_instrs_equal()
566 if (alu1->no_signed_wrap != alu2->no_signed_wrap) in nir_instrs_equal()
569 if (alu1->no_unsigned_wrap != alu2->no_unsigned_wrap) in nir_instrs_equal()
575 if (alu1->dest.dest.ssa.num_components != alu2->dest.dest.ssa.num_components) in nir_instrs_equal()
578 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in nir_instrs_equal()
582 if ((!nir_alu_srcs_equal(alu1, alu2, 0, 0) || in nir_instrs_equal()
583 !nir_alu_srcs_equal(alu1, alu2, 1, 1)) && in nir_instrs_equal()
584 (!nir_alu_srcs_equal(alu1, alu2, 0, 1) || in nir_instrs_equal()
585 !nir_alu_srcs_equal(alu1, alu2, 1, 0))) in nir_instrs_equal()
589 if (!nir_alu_srcs_equal(alu1, alu2, i, i)) in nir_instrs_equal()
594 if (!nir_alu_srcs_equal(alu1, alu2, i, i)) in nir_instrs_equal()