Home
last modified time | relevance | path

Searched refs:alu1 (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_vectorize.c120 nir_alu_instr *alu1 = nir_instr_as_alu(instr1); in instrs_equal() local
123 if (alu1->op != alu2->op) in instrs_equal()
126 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in instrs_equal()
129 for (unsigned i = 0; i < nir_op_infos[alu1->op].num_inputs; i++) { in instrs_equal()
130 if (!alu_srcs_equal(&alu1->src[i], &alu2->src[i], instr1->pass_flags)) in instrs_equal()
192 nir_alu_instr *alu1 = nir_instr_as_alu(instr1); in instr_try_combine() local
195 assert(alu1->dest.dest.ssa.bit_size == alu2->dest.dest.ssa.bit_size); in instr_try_combine()
196 unsigned alu1_components = alu1->dest.dest.ssa.num_components; in instr_try_combine()
208 nir_alu_instr *new_alu = nir_alu_instr_create(b.shader, alu1->op); in instr_try_combine()
210 total_components, alu1->dest.dest.ssa.bit_size, NULL); in instr_try_combine()
[all …]
Dnir_instr_set.c426 nir_alu_srcs_negative_equal(const nir_alu_instr *alu1, in nir_alu_srcs_negative_equal() argument
432 assert(nir_alu_instr_channel_used(alu1, src1, i) == in nir_alu_srcs_negative_equal()
436 if (nir_alu_type_get_base_type(nir_op_infos[alu1->op].input_types[src1]) == nir_type_float) { in nir_alu_srcs_negative_equal()
437 assert(nir_op_infos[alu1->op].input_types[src1] == in nir_alu_srcs_negative_equal()
440 assert(nir_op_infos[alu1->op].input_types[src1] == nir_type_int); in nir_alu_srcs_negative_equal()
445 if (alu1->src[src1].abs != alu2->src[src2].abs) in nir_alu_srcs_negative_equal()
448 bool parity = alu1->src[src1].negate != alu2->src[src2].negate; in nir_alu_srcs_negative_equal()
453 nir_src_as_const_value(alu1->src[src1].src); in nir_alu_srcs_negative_equal()
468 if (nir_src_bit_size(alu1->src[src1].src) != in nir_alu_srcs_negative_equal()
472 const nir_alu_type full_type = nir_op_infos[alu1->op].input_types[src1] | in nir_alu_srcs_negative_equal()
[all …]
Dnir.h1497 bool nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2,
1500 bool nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/
Dsfn_instr_test.cpp199 AluInstr alu1(op1_mov, r128z, r129x, {alu_write}); in TEST_F() local
200 EXPECT_NE(alu1, AluInstr(op1_mov, r128y, r129x, {alu_write})); in TEST_F()
201 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129xc, {alu_write})); in TEST_F()
202 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129y, {alu_write})); in TEST_F()
203 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r130x, {alu_write})); in TEST_F()
204 EXPECT_NE(alu1, AluInstr(op1_mov, r128z, r129x, {alu_write, alu_last_instr})); in TEST_F()
205 EXPECT_NE(alu1, AluInstr(op1_flt_to_int, r128z, r129x, {alu_write})); in TEST_F()
206 EXPECT_NE(alu1, AluInstr(op1_mov, r128zc, r129x, {alu_write})); in TEST_F()
208 EXPECT_EQ(alu1, alu1); in TEST_F()
217 AluInstr alu1(op2_add, r128z, r128x, r128y, {alu_write}); in TEST_F() local
[all …]
/third_party/mesa3d/docs/relnotes/
D19.1.3.rst96 - nir: Use nir_src_bit_size instead of alu1->dest.dest.ssa.bit_size