| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/ |
| r700_asm.c | 37 int r700_bytecode_alu_build(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, unsigned id) 39 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | 40 S_SQ_ALU_WORD0_SRC0_REL(alu->src[0].rel) | 41 S_SQ_ALU_WORD0_SRC0_CHAN(alu->src[0].chan) | 42 S_SQ_ALU_WORD0_SRC0_NEG(alu->src[0].neg) | 43 S_SQ_ALU_WORD0_SRC1_SEL(alu->src[1].sel) | 44 S_SQ_ALU_WORD0_SRC1_REL(alu->src[1].rel) | 45 S_SQ_ALU_WORD0_SRC1_CHAN(alu->src[1].chan) | 46 S_SQ_ALU_WORD0_SRC1_NEG(alu->src[1].neg) | 47 S_SQ_ALU_WORD0_PRED_SEL(alu->pred_sel) [all...] |
| eg_asm.c | 41 if (cfop->flags & CF_ALU) { /* ALU clauses */ 179 struct r600_bytecode_alu alu; local 189 memset(&alu, 0, sizeof(alu)); 190 alu.op = ALU_OP1_MOVA_INT; 191 alu.src[0].sel = bc->index_reg[id]; 192 alu.src[0].chan = bc->index_reg_chan[id]; 194 alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1; 196 alu.last = 1; 197 r = r600_bytecode_add_alu(bc, &alu); [all...] |
| r600_shader.c | 591 struct r600_bytecode_alu alu; local 600 memset(&alu, 0, sizeof(struct r600_bytecode_alu)); 603 alu.op = ALU_OP2_INTERP_ZW; 605 alu.op = ALU_OP2_INTERP_XY; 608 alu.dst.sel = ctx->shader->input[input].gpr; 609 alu.dst.write = 1; 612 alu.dst.chan = i % 4; 614 alu.src[0].sel = gpr; 615 alu.src[0].chan = (base_chan - (i % 2)); 617 alu.src[1].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos 632 struct r600_bytecode_alu alu; local 783 struct r600_bytecode_alu alu; local 816 struct r600_bytecode_alu alu; local 873 struct r600_bytecode_alu alu; local 953 struct r600_bytecode_alu alu; local 1229 struct r600_bytecode_alu alu; local 1242 struct r600_bytecode_alu alu; local 1438 struct r600_bytecode_alu alu; local 1477 struct r600_bytecode_alu alu; local 1515 struct r600_bytecode_alu alu; local 1554 struct r600_bytecode_alu alu; local 1819 struct r600_bytecode_alu alu; local 1887 struct r600_bytecode_alu alu; local 2136 struct r600_bytecode_alu alu; local 2306 struct r600_bytecode_alu alu; local 2362 struct r600_bytecode_alu alu; local 2447 struct r600_bytecode_alu alu; local 2533 struct r600_bytecode_alu alu; local 2568 struct r600_bytecode_alu alu; local 2874 struct r600_bytecode_alu alu; local 3059 struct r600_bytecode_alu alu; local 3108 struct r600_bytecode_alu alu; local 3221 struct r600_bytecode_alu alu; local 3370 struct r600_bytecode_alu alu; local 3821 struct r600_bytecode_alu alu; local 3854 struct r600_bytecode_alu alu; local 3868 struct r600_bytecode_alu alu; local 3884 struct r600_bytecode_alu alu; local 4024 struct r600_bytecode_alu alu; local 4524 struct r600_bytecode_alu alu; local 4673 struct r600_bytecode_alu alu; local 4706 struct r600_bytecode_alu alu; local 4794 struct r600_bytecode_alu alu; local 4825 struct r600_bytecode_alu alu; local 4856 struct r600_bytecode_alu alu; local 4920 struct r600_bytecode_alu alu; local 5032 struct r600_bytecode_alu alu; local 5069 struct r600_bytecode_alu alu; local 5102 struct r600_bytecode_alu alu; local 5143 struct r600_bytecode_alu alu; local 5173 struct r600_bytecode_alu alu; local 5222 struct r600_bytecode_alu alu; local 5275 struct r600_bytecode_alu alu; local 5333 struct r600_bytecode_alu alu; local 5404 struct r600_bytecode_alu alu; local 5435 struct r600_bytecode_alu alu; local 5478 struct r600_bytecode_alu alu; local 5512 struct r600_bytecode_alu alu; local 5662 struct r600_bytecode_alu alu; local 5686 struct r600_bytecode_alu alu; local 5708 struct r600_bytecode_alu alu; local 5730 struct r600_bytecode_alu alu; local 5778 struct r600_bytecode_alu alu; local 5818 struct r600_bytecode_alu alu; local 5843 struct r600_bytecode_alu alu; local 6630 struct r600_bytecode_alu alu; local 6679 struct r600_bytecode_alu alu; local 6735 struct r600_bytecode_alu alu; local 6800 struct r600_bytecode_alu alu; local 6856 struct r600_bytecode_alu alu; local 6974 struct r600_bytecode_alu alu; local 7060 struct r600_bytecode_alu alu; local 7223 struct r600_bytecode_alu alu; local 7252 struct r600_bytecode_alu alu; local 7291 struct r600_bytecode_alu alu; local 7344 struct r600_bytecode_alu alu; local 7409 struct r600_bytecode_alu alu; local 7511 struct r600_bytecode_alu alu; local 7553 struct r600_bytecode_alu alu; local 8679 struct r600_bytecode_alu alu; local 8756 struct r600_bytecode_alu alu; local 8823 struct r600_bytecode_alu alu; local 8971 struct r600_bytecode_alu alu; local 9024 struct r600_bytecode_alu alu; local 9039 struct r600_bytecode_alu alu; local 9099 struct r600_bytecode_alu alu; local 9140 struct r600_bytecode_alu alu; local 9221 struct r600_bytecode_alu alu; local 9379 struct r600_bytecode_alu alu; local 9512 struct r600_bytecode_alu alu; local 9590 struct r600_bytecode_alu alu; local 9633 struct r600_bytecode_alu alu; local 9741 struct r600_bytecode_alu alu; local 9789 struct r600_bytecode_alu alu; local 9818 struct r600_bytecode_alu alu; local 9947 struct r600_bytecode_alu alu; local 10207 struct r600_bytecode_alu alu; local 10253 struct r600_bytecode_alu alu; local 10330 struct r600_bytecode_alu alu; local 10362 struct r600_bytecode_alu alu; local 10774 struct r600_bytecode_alu alu; local 10827 struct r600_bytecode_alu alu; local 10875 struct r600_bytecode_alu alu; local 10926 struct r600_bytecode_alu alu; local 10985 struct r600_bytecode_alu alu; local 11011 struct r600_bytecode_alu alu; local 11082 struct r600_bytecode_alu alu; local 11155 struct r600_bytecode_alu alu; local 11228 struct r600_bytecode_alu alu; local 11382 struct r600_bytecode_alu alu; local 11713 struct r600_bytecode_alu alu; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/ |
| r700_asm.c | 37 int r700_bytecode_alu_build(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, unsigned id) 39 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | 40 S_SQ_ALU_WORD0_SRC0_REL(alu->src[0].rel) | 41 S_SQ_ALU_WORD0_SRC0_CHAN(alu->src[0].chan) | 42 S_SQ_ALU_WORD0_SRC0_NEG(alu->src[0].neg) | 43 S_SQ_ALU_WORD0_SRC1_SEL(alu->src[1].sel) | 44 S_SQ_ALU_WORD0_SRC1_REL(alu->src[1].rel) | 45 S_SQ_ALU_WORD0_SRC1_CHAN(alu->src[1].chan) | 46 S_SQ_ALU_WORD0_SRC1_NEG(alu->src[1].neg) | 47 S_SQ_ALU_WORD0_PRED_SEL(alu->pred_sel) [all...] |
| eg_asm.c | 41 if (cfop->flags & CF_ALU) { /* ALU clauses */ 179 struct r600_bytecode_alu alu; local 189 memset(&alu, 0, sizeof(alu)); 190 alu.op = ALU_OP1_MOVA_INT; 191 alu.src[0].sel = bc->index_reg[id]; 192 alu.src[0].chan = 0; 194 alu.dst.sel = id == 0 ? CM_V_SQ_MOVA_DST_CF_IDX0 : CM_V_SQ_MOVA_DST_CF_IDX1; 196 alu.last = 1; 197 r = r600_bytecode_add_alu(bc, &alu); [all...] |
| r600_shader.c | 507 struct r600_bytecode_alu alu; local 516 memset(&alu, 0, sizeof(struct r600_bytecode_alu)); 519 alu.op = ALU_OP2_INTERP_ZW; 521 alu.op = ALU_OP2_INTERP_XY; 524 alu.dst.sel = ctx->shader->input[input].gpr; 525 alu.dst.write = 1; 528 alu.dst.chan = i % 4; 530 alu.src[0].sel = gpr; 531 alu.src[0].chan = (base_chan - (i % 2)); 533 alu.src[1].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos 548 struct r600_bytecode_alu alu; local 695 struct r600_bytecode_alu alu; local 728 struct r600_bytecode_alu alu; local 785 struct r600_bytecode_alu alu; local 865 struct r600_bytecode_alu alu; local 1141 struct r600_bytecode_alu alu; local 1154 struct r600_bytecode_alu alu; local 1350 struct r600_bytecode_alu alu; local 1389 struct r600_bytecode_alu alu; local 1427 struct r600_bytecode_alu alu; local 1466 struct r600_bytecode_alu alu; local 1731 struct r600_bytecode_alu alu; local 1799 struct r600_bytecode_alu alu; local 2048 struct r600_bytecode_alu alu; local 2218 struct r600_bytecode_alu alu; local 2274 struct r600_bytecode_alu alu; local 2359 struct r600_bytecode_alu alu; local 2445 struct r600_bytecode_alu alu; local 2480 struct r600_bytecode_alu alu; local 2786 struct r600_bytecode_alu alu; local 2971 struct r600_bytecode_alu alu; local 3019 struct r600_bytecode_alu alu; local 3132 struct r600_bytecode_alu alu; local 3281 struct r600_bytecode_alu alu; local 3732 struct r600_bytecode_alu alu; local 3765 struct r600_bytecode_alu alu; local 3779 struct r600_bytecode_alu alu; local 3795 struct r600_bytecode_alu alu; local 3935 struct r600_bytecode_alu alu; local 4435 struct r600_bytecode_alu alu; local 4584 struct r600_bytecode_alu alu; local 4617 struct r600_bytecode_alu alu; local 4696 struct r600_bytecode_alu alu; local 4727 struct r600_bytecode_alu alu; local 4758 struct r600_bytecode_alu alu; local 4822 struct r600_bytecode_alu alu; local 4934 struct r600_bytecode_alu alu; local 4971 struct r600_bytecode_alu alu; local 5004 struct r600_bytecode_alu alu; local 5045 struct r600_bytecode_alu alu; local 5075 struct r600_bytecode_alu alu; local 5124 struct r600_bytecode_alu alu; local 5177 struct r600_bytecode_alu alu; local 5235 struct r600_bytecode_alu alu; local 5306 struct r600_bytecode_alu alu; local 5337 struct r600_bytecode_alu alu; local 5380 struct r600_bytecode_alu alu; local 5414 struct r600_bytecode_alu alu; local 5564 struct r600_bytecode_alu alu; local 5588 struct r600_bytecode_alu alu; local 5610 struct r600_bytecode_alu alu; local 5632 struct r600_bytecode_alu alu; local 5680 struct r600_bytecode_alu alu; local 5720 struct r600_bytecode_alu alu; local 5745 struct r600_bytecode_alu alu; local 6532 struct r600_bytecode_alu alu; local 6581 struct r600_bytecode_alu alu; local 6637 struct r600_bytecode_alu alu; local 6702 struct r600_bytecode_alu alu; local 6758 struct r600_bytecode_alu alu; local 6876 struct r600_bytecode_alu alu; local 6962 struct r600_bytecode_alu alu; local 7124 struct r600_bytecode_alu alu; local 7153 struct r600_bytecode_alu alu; local 7192 struct r600_bytecode_alu alu; local 7245 struct r600_bytecode_alu alu; local 7310 struct r600_bytecode_alu alu; local 7412 struct r600_bytecode_alu alu; local 7454 struct r600_bytecode_alu alu; local 8580 struct r600_bytecode_alu alu; local 8657 struct r600_bytecode_alu alu; local 8724 struct r600_bytecode_alu alu; local 8872 struct r600_bytecode_alu alu; local 8925 struct r600_bytecode_alu alu; local 8940 struct r600_bytecode_alu alu; local 9000 struct r600_bytecode_alu alu; local 9041 struct r600_bytecode_alu alu; local 9122 struct r600_bytecode_alu alu; local 9280 struct r600_bytecode_alu alu; local 9413 struct r600_bytecode_alu alu; local 9491 struct r600_bytecode_alu alu; local 9534 struct r600_bytecode_alu alu; local 9642 struct r600_bytecode_alu alu; local 9690 struct r600_bytecode_alu alu; local 9719 struct r600_bytecode_alu alu; local 9848 struct r600_bytecode_alu alu; local 10108 struct r600_bytecode_alu alu; local 10154 struct r600_bytecode_alu alu; local 10231 struct r600_bytecode_alu alu; local 10263 struct r600_bytecode_alu alu; local 10675 struct r600_bytecode_alu alu; local 10728 struct r600_bytecode_alu alu; local 10776 struct r600_bytecode_alu alu; local 10827 struct r600_bytecode_alu alu; local 10886 struct r600_bytecode_alu alu; local 10912 struct r600_bytecode_alu alu; local 10983 struct r600_bytecode_alu alu; local 11059 struct r600_bytecode_alu alu; local 11213 struct r600_bytecode_alu alu; local 11544 struct r600_bytecode_alu alu; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| nir_lower_bool_to_float.c | 46 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) 48 const nir_op_info *op_info = &nir_op_infos[alu->op]; 50 b->cursor = nir_before_instr(&alu->instr); 54 switch (alu->op) { 61 case nir_op_b2f32: alu->op = nir_op_fmov; break; 62 case nir_op_b2i32: alu->op = nir_op_fmov; break; 65 rep = nir_sne(b, nir_ssa_for_alu_src(b, alu, 0), 69 case nir_op_flt: alu->op = nir_op_slt; break; 70 case nir_op_fge: alu->op = nir_op_sge; break; 71 case nir_op_feq: alu->op = nir_op_seq; break [all...] |
| nir_lower_to_source_mods.c | 32 * ALU operations to make things nicer for the backend. It's just much 46 nir_alu_instr *alu = nir_instr_as_alu(instr); local 48 bool lower_abs = (nir_op_infos[alu->op].num_inputs < 3) || 51 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 52 if (!alu->src[i].src.is_ssa) 55 if (alu->src[i].src.ssa->parent_instr->type != nir_instr_type_alu) 58 nir_alu_instr *parent = nir_instr_as_alu(alu->src[i].src.ssa->parent_instr); 63 switch (nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[i])) { 90 nir_instr_rewrite_src(instr, &alu->src[i].src, parent->src[0].src); 91 if (alu->src[i].abs) [all...] |
| nir_lower_bool_to_int32.c | 45 lower_alu_instr(nir_alu_instr *alu) 47 const nir_op_info *op_info = &nir_op_infos[alu->op]; 49 assert(alu->dest.dest.is_ssa); 51 switch (alu->op) { 63 case nir_op_f2b1: alu->op = nir_op_f2b32; break; 64 case nir_op_i2b1: alu->op = nir_op_i2b32; break; 66 case nir_op_flt: alu->op = nir_op_flt32; break; 67 case nir_op_fge: alu->op = nir_op_fge32; break; 68 case nir_op_feq: alu->op = nir_op_feq32; break; 69 case nir_op_fne: alu->op = nir_op_fne32; break [all...] |
| nir_opt_undef.c | 78 opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) 80 if (alu->op != nir_op_vec2 && 81 alu->op != nir_op_vec3 && 82 alu->op != nir_op_vec4 && 83 alu->op != nir_op_fmov && 84 alu->op != nir_op_imov) 87 assert(alu->dest.dest.is_ssa); 89 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 90 if (!alu->src[i].src.is_ssa || 91 alu->src[i].src.ssa->parent_instr->type != nir_instr_type_ssa_undef 146 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| nir_lower_bool_to_int32.c | 45 lower_alu_instr(nir_alu_instr *alu) 47 const nir_op_info *op_info = &nir_op_infos[alu->op]; 49 assert(alu->dest.dest.is_ssa); 51 switch (alu->op) { 63 if (alu->dest.dest.ssa.bit_size != 1) 68 case nir_op_f2b1: alu->op = nir_op_f2b32; break; 69 case nir_op_i2b1: alu->op = nir_op_i2b32; break; 76 assert(nir_src_bit_size(alu->src[0].src) == 32); 77 alu->op = nir_op_mov; 80 case nir_op_flt: alu->op = nir_op_flt32; break [all...] |
| nir_lower_int_to_float.c | 37 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) 39 const nir_op_info *info = &nir_op_infos[alu->op]; 41 bool is_bool_only = alu->dest.dest.ssa.bit_size == 1; 43 if (alu->src[i].src.ssa->bit_size != 1) 52 b->cursor = nir_before_instr(&alu->instr); 56 switch (alu->op) { 65 case nir_op_b2i32: alu->op = nir_op_b2f32; break; 66 case nir_op_i2f32: alu->op = nir_op_mov; break; 67 case nir_op_u2f32: alu->op = nir_op_mov; break; 68 case nir_op_f2i32: alu->op = nir_op_ftrunc; break [all...] |
| nir_lower_flrp.c | 37 append_flrp_to_dead_list(struct u_vector *dead_flrp, struct nir_alu_instr *alu) 40 *tail = alu; 48 struct nir_alu_instr *alu) 50 nir_ssa_def *const a = nir_ssa_for_alu_src(bld, alu, 0); 51 nir_ssa_def *const b = nir_ssa_for_alu_src(bld, alu, 1); 52 nir_ssa_def *const c = nir_ssa_for_alu_src(bld, alu, 2); 55 nir_instr_as_alu(neg_a->parent_instr)->exact = alu->exact; 58 nir_instr_as_alu(inner_ffma->parent_instr)->exact = alu->exact; 61 nir_instr_as_alu(outer_ffma->parent_instr)->exact = alu->exact; 63 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, outer_ffma) 608 nir_alu_instr *const alu = nir_instr_as_alu(instr); local [all...] |
| nir_lower_bool_to_float.c | 46 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) 48 const nir_op_info *op_info = &nir_op_infos[alu->op]; 50 b->cursor = nir_before_instr(&alu->instr); 54 switch (alu->op) { 62 if (alu->dest.dest.ssa.bit_size != 1) 67 case nir_op_b2f32: alu->op = nir_op_mov; break; 68 case nir_op_b2i32: alu->op = nir_op_mov; break; 71 rep = nir_sne(b, nir_ssa_for_alu_src(b, alu, 0), 74 case nir_op_b2b1: alu->op = nir_op_mov; break; 76 case nir_op_flt: alu->op = nir_op_slt; break [all...] |
| nir_opt_intrinsics.c | 38 /* This is only called when src is part of an ALU op so requiring no if 56 try_opt_bcsel_of_shuffle(nir_builder *b, nir_alu_instr *alu, 59 assert(alu->op == nir_op_bcsel); 69 if (!nir_alu_src_is_trivial_ssa(alu, 0)) 73 if (!nir_alu_src_is_trivial_ssa(alu, 1) || 74 alu->src[1].src.ssa->parent_instr->block != alu->instr.block || 75 !src_is_single_use_shuffle(alu->src[1].src, &data1, &index1)) 79 if (!nir_alu_src_is_trivial_ssa(alu, 2) || 80 alu->src[2].src.ssa->parent_instr->block != alu->instr.block | 134 nir_alu_instr *alu = nir_instr_as_alu(use_src->parent_instr); local [all...] |
| nir_lower_to_source_mods.c | 32 * ALU operations to make things nicer for the backend. It's just much 60 nir_alu_instr *alu = nir_instr_as_alu(instr); local 62 bool lower_abs = (nir_op_infos[alu->op].num_inputs < 3) || 65 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 66 if (!alu->src[i].src.is_ssa) 69 if (alu->src[i].src.ssa->parent_instr->type != nir_instr_type_alu) 72 nir_alu_instr *parent = nir_instr_as_alu(alu->src[i].src.ssa->parent_instr); 77 switch (nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[i])) { 94 if (nir_src_bit_size(alu->src[i].src) == 64 && 110 nir_instr_rewrite_src(instr, &alu->src[i].src, parent->src[0].src) [all...] |
| nir_opt_rematerialize_compares.c | 82 nir_alu_instr *const alu = nir_instr_as_alu(use->parent_instr); local 83 if (alu->op != nir_op_bcsel && 84 alu->op != nir_op_b32csel) 90 if (alu->src[0].src.ssa != &instr->dest.dest.ssa) 107 nir_alu_instr *const alu = nir_instr_as_alu(instr); local 108 if (!is_two_src_comparison(alu)) 111 if (!all_srcs_are_ssa(alu)) 114 if (!all_uses_are_bcsel(alu)) 117 /* At this point it is known that alu is a comparison instruction 127 nir_foreach_use_safe(use, &alu->dest.dest.ssa) [all...] |
| nir_opt_undef.c | 77 opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) 79 if (!nir_op_is_vec(alu->op)) 82 assert(alu->dest.dest.is_ssa); 84 for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) { 85 if (!alu->src[i].src.is_ssa || 86 alu->src[i].src.ssa->parent_instr->type != nir_instr_type_ssa_undef) 90 b->cursor = nir_before_instr(&alu->instr); 91 nir_ssa_def *undef = nir_ssa_undef(b, alu->dest.dest.ssa.num_components, 92 nir_dest_bit_size(alu->dest.dest)); 93 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, undef) 174 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |
| nir_lower_alu_to_scalar.c | 44 nir_alu_instr *alu = nir_instr_as_alu(instr); 46 /* There is no ALU instruction which has a scalar destination, scalar 49 assert(alu->dest.dest.is_ssa); 50 assert(alu->src[0].src.is_ssa); 51 return alu->dest.dest.ssa.num_components > 1 || 52 nir_op_infos[alu->op].input_sizes[0] > 1; 56 nir_alu_ssa_dest_init(nir_alu_instr *alu, unsigned num_components, 59 nir_ssa_dest_init(&alu->instr, &alu->dest.dest, num_components, 61 alu->dest.write_mask = (1 << num_components) - 1 146 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/ir/ |
| lima_nir_split_load_input.c | 37 nir_alu_instr *alu = nir_instr_as_alu(instr); 38 if (alu->op != nir_op_mov) 41 if (!alu->dest.dest.is_ssa) 44 if (!alu->src[0].src.is_ssa) 47 nir_ssa_def *ssa = alu->src[0].src.ssa; 55 uint8_t swizzle = alu->src[0].swizzle[0]; 58 for (i = 1; i < nir_dest_num_components(alu->dest.dest); i++) 59 if (alu->src[0].swizzle[i] != (swizzle + i)) 62 if (i != nir_dest_num_components(alu->dest.dest)) 66 if (nir_dest_num_components(alu->dest.dest) == 3 && swizzle > 0 [all...] |
| /xsrc/external/mit/MesaLib/dist/src/panfrost/util/ |
| nir_mod_helpers.c | 33 /* Check if a given ALU source is the result of a particular componentwise 1-op 34 * ALU source (principally fneg or fabs). If so, return true and rewrite the 45 nir_alu_instr *alu = nir_instr_as_alu(src->src.ssa->parent_instr); 47 if (alu->op != op) 54 if (!alu->src[0].src.is_ssa) 57 /* Okay - we've found the modifier we wanted. Let's construct the new ALU 63 .src = alu->src[0].src, 68 nsrc.swizzle[i] = alu->src[0].swizzle[src->swizzle[i]]; 76 * componentwise 1-op ALU instruction (principally fsat without 106 nir_alu_instr *alu = nir_instr_as_alu(parent) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| brw_nir_lower_conversions.c | 54 split_conversion(nir_builder *b, nir_alu_instr *alu, nir_op op1, nir_op op2) 56 b->cursor = nir_before_instr(&alu->instr); 57 assert(alu->dest.write_mask == 1); 58 nir_ssa_def *src = nir_ssa_for_alu_src(b, alu, 0); 61 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, res); 62 nir_instr_remove(&alu->instr); 66 lower_alu_instr(nir_builder *b, nir_alu_instr *alu) 68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); 69 nir_alu_type src_type = nir_op_infos[alu->op].input_types[0]; 72 unsigned dst_bit_size = nir_dest_bit_size(alu->dest.dest) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| brw_nir_lower_conversions.c | 54 split_conversion(nir_builder *b, nir_alu_instr *alu, nir_op op1, nir_op op2) 56 b->cursor = nir_before_instr(&alu->instr); 57 assert(alu->dest.write_mask == 1); 58 nir_ssa_def *src = nir_ssa_for_alu_src(b, alu, 0); 61 nir_ssa_def_rewrite_uses(&alu->dest.dest.ssa, nir_src_for_ssa(res)); 62 nir_instr_remove(&alu->instr); 66 lower_instr(nir_builder *b, nir_alu_instr *alu) 68 unsigned src_bit_size = nir_src_bit_size(alu->src[0].src); 69 nir_alu_type src_type = nir_op_infos[alu->op].input_types[0]; 72 unsigned dst_bit_size = nir_dest_bit_size(alu->dest.dest) 140 nir_alu_instr *alu = nir_instr_as_alu(instr); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| sfn_nir_lower_alu.cpp | 17 auto alu = nir_instr_as_alu(instr); 18 switch (alu->op) { 29 nir_alu_instr *alu = nir_instr_as_alu(instr); local 31 switch (alu->op) { 33 nir_ssa_def *packed = nir_ssa_for_alu_src(b, alu, 0); 39 nir_ssa_def *src_vec2 = nir_ssa_for_alu_src(b, alu, 0); 59 auto alu = nir_instr_as_alu(instr); 60 switch (alu->op) { 71 auto alu = nir_instr_as_alu(instr); local 73 assert(alu->op == nir_op_fsin | [all...] |
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/tests/ |
| ssa_def_bits_used_tests.cpp | 66 nir_alu_instr *alu = nir_instr_as_alu(def->parent_instr); 68 if (alu == NULL) 71 alu->dest.write_mask = 1; 72 alu->dest.dest.ssa.num_components = 1; 74 return alu; 86 nir_alu_instr *alu = build_alu_instr(nir_op_iand, src0, src1); local 88 ASSERT_NE((void *) 0, alu); 97 alu->src[0].swizzle[0] = i; 99 const uint64_t bits_used = nir_ssa_def_bits_used(alu->src[1].src.ssa); 115 nir_alu_instr *alu = build_alu_instr(nir_op_ior, src0, src1) local 147 nir_alu_instr *alu = build_alu_instr(nir_op_extract_i16, src0, src1); local 178 nir_alu_instr *alu = build_alu_instr(nir_op_extract_u16, src0, src1); local 209 nir_alu_instr *alu = build_alu_instr(nir_op_extract_i8, src0, src1); local 240 nir_alu_instr *alu = build_alu_instr(nir_op_extract_u8, src0, src1); local [all...] |