• Home
  • Raw
  • Download

Lines Matching refs:alu

41 static inline bool alu_writes(struct r600_bytecode_alu *alu)  in alu_writes()  argument
43 return alu->dst.write || alu->is_op3; in alu_writes()
46 static inline unsigned int r600_bytecode_get_num_operands(const struct r600_bytecode_alu *alu) in r600_bytecode_get_num_operands() argument
48 return r600_isa_alu(alu->op)->src_count; in r600_bytecode_get_num_operands()
58 list_inithead(&cf->alu); in r600_bytecode_cf()
67 struct r600_bytecode_alu *alu = CALLOC_STRUCT(r600_bytecode_alu); in r600_bytecode_alu() local
69 if (!alu) in r600_bytecode_alu()
71 list_inithead(&alu->list); in r600_bytecode_alu()
72 return alu; in r600_bytecode_alu()
254 static int is_alu_once_inst(struct r600_bytecode_alu *alu) in is_alu_once_inst() argument
256 …return r600_isa_alu(alu->op)->flags & (AF_KILL | AF_PRED) || alu->is_lds_idx_op || alu->op == ALU_… in is_alu_once_inst()
259 static int is_alu_reduction_inst(struct r600_bytecode *bc, struct r600_bytecode_alu *alu) in is_alu_reduction_inst() argument
261 return (r600_isa_alu(alu->op)->flags & AF_REPL) && in is_alu_reduction_inst()
262 (r600_isa_alu_slots(bc->isa->hw_class, alu->op) == AF_4V); in is_alu_reduction_inst()
265 static int is_alu_mova_inst(struct r600_bytecode_alu *alu) in is_alu_mova_inst() argument
267 return r600_isa_alu(alu->op)->flags & AF_MOVA; in is_alu_mova_inst()
270 static int alu_uses_rel(struct r600_bytecode_alu *alu) in alu_uses_rel() argument
272 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_rel()
275 if (alu->dst.rel) { in alu_uses_rel()
280 if (alu->src[src].rel) { in alu_uses_rel()
292 static int alu_uses_lds(struct r600_bytecode_alu *alu) in alu_uses_lds() argument
294 unsigned num_src = r600_bytecode_get_num_operands(alu); in alu_uses_lds()
298 if (is_lds_read(alu->src[src].sel)) { in alu_uses_lds()
305 static int is_alu_64bit_inst(struct r600_bytecode_alu *alu) in is_alu_64bit_inst() argument
307 const struct alu_op_info *op = r600_isa_alu(alu->op); in is_alu_64bit_inst()
311 static int is_alu_vec_unit_inst(struct r600_bytecode *bc, struct r600_bytecode_alu *alu) in is_alu_vec_unit_inst() argument
313 unsigned slots = r600_isa_alu_slots(bc->isa->hw_class, alu->op); in is_alu_vec_unit_inst()
317 static int is_alu_trans_unit_inst(struct r600_bytecode *bc, struct r600_bytecode_alu *alu) in is_alu_trans_unit_inst() argument
319 unsigned slots = r600_isa_alu_slots(bc->isa->hw_class, alu->op); in is_alu_trans_unit_inst()
324 static int is_alu_any_unit_inst(struct r600_bytecode *bc, struct r600_bytecode_alu *alu) in is_alu_any_unit_inst() argument
326 unsigned slots = r600_isa_alu_slots(bc->isa->hw_class, alu->op); in is_alu_any_unit_inst()
330 static int is_nop_inst(struct r600_bytecode_alu *alu) in is_nop_inst() argument
332 return alu->op == ALU_OP0_NOP; in is_nop_inst()
338 struct r600_bytecode_alu *alu; in assign_alu_units() local
345 for (alu = alu_first; alu; alu = LIST_ENTRY(struct r600_bytecode_alu, alu->list.next, list)) { in assign_alu_units()
346 chan = alu->dst.chan; in assign_alu_units()
349 else if (is_alu_trans_unit_inst(bc, alu)) in assign_alu_units()
351 else if (is_alu_vec_unit_inst(bc, alu)) in assign_alu_units()
363 assignment[4] = alu; in assign_alu_units()
369 assignment[chan] = alu; in assign_alu_units()
372 if (alu->last) in assign_alu_units()
467 static int check_vector(const struct r600_bytecode *bc, const struct r600_bytecode_alu *alu, in check_vector() argument
472 num_src = r600_bytecode_get_num_operands(alu); in check_vector()
474 sel = alu->src[src].sel; in check_vector()
475 elem = alu->src[src].chan; in check_vector()
478 if (src == 1 && sel == alu->src[0].sel && elem == alu->src[0].chan) in check_vector()
488 r = reserve_cfile(bc, bs, (alu->src[src].kc_bank<<16) + sel, elem); in check_vector()
497 static int check_scalar(const struct r600_bytecode *bc, const struct r600_bytecode_alu *alu, in check_scalar() argument
502 num_src = r600_bytecode_get_num_operands(alu); in check_scalar()
504 sel = alu->src[src].sel; in check_scalar()
505 elem = alu->src[src].chan; in check_scalar()
515 r = reserve_cfile(bc, bs, (alu->src[src].kc_bank<<16) + sel, elem); in check_scalar()
521 sel = alu->src[src].sel; in check_scalar()
522 elem = alu->src[src].chan; in check_scalar()
653 struct r600_bytecode_alu *alu = slots[i]; in replace_gpr_with_pv_ps() local
654 if (!alu) in replace_gpr_with_pv_ps()
657 if (is_alu_64bit_inst(alu)) in replace_gpr_with_pv_ps()
659 num_src = r600_bytecode_get_num_operands(alu); in replace_gpr_with_pv_ps()
661 if (!is_gpr(alu->src[src].sel) || alu->src[src].rel) in replace_gpr_with_pv_ps()
665 if (alu->src[src].sel == gpr[4] && in replace_gpr_with_pv_ps()
666 alu->src[src].chan == chan[4] && in replace_gpr_with_pv_ps()
667 alu_prev->pred_sel == alu->pred_sel) { in replace_gpr_with_pv_ps()
668 alu->src[src].sel = V_SQ_ALU_SRC_PS; in replace_gpr_with_pv_ps()
669 alu->src[src].chan = 0; in replace_gpr_with_pv_ps()
675 if (alu->src[src].sel == gpr[j] && in replace_gpr_with_pv_ps()
676 alu->src[src].chan == j && in replace_gpr_with_pv_ps()
677 alu_prev->pred_sel == alu->pred_sel) { in replace_gpr_with_pv_ps()
678 alu->src[src].sel = V_SQ_ALU_SRC_PV; in replace_gpr_with_pv_ps()
679 alu->src[src].chan = chan[j]; in replace_gpr_with_pv_ps()
714 static int r600_bytecode_alu_nliterals(struct r600_bytecode_alu *alu, in r600_bytecode_alu_nliterals() argument
717 unsigned num_src = r600_bytecode_get_num_operands(alu); in r600_bytecode_alu_nliterals()
721 if (alu->src[i].sel == V_SQ_ALU_SRC_LITERAL) { in r600_bytecode_alu_nliterals()
722 uint32_t value = alu->src[i].value; in r600_bytecode_alu_nliterals()
740 static void r600_bytecode_alu_adjust_literals(struct r600_bytecode_alu *alu, in r600_bytecode_alu_adjust_literals() argument
743 unsigned num_src = r600_bytecode_get_num_operands(alu); in r600_bytecode_alu_adjust_literals()
747 if (alu->src[i].sel == V_SQ_ALU_SRC_LITERAL) { in r600_bytecode_alu_adjust_literals()
748 uint32_t value = alu->src[i].value; in r600_bytecode_alu_adjust_literals()
751 alu->src[i].chan = j; in r600_bytecode_alu_adjust_literals()
806 struct r600_bytecode_alu *alu; in merge_inst_groups() local
872 alu = slots[i]; in merge_inst_groups()
873 num_once_inst += is_alu_once_inst(alu); in merge_inst_groups()
876 if (is_nop_inst(alu)) in merge_inst_groups()
879 if (is_alu_mova_inst(alu)) { in merge_inst_groups()
886 if (alu_uses_rel(alu)) { in merge_inst_groups()
893 if (alu->op == ALU_OP0_SET_CF_IDX0 || in merge_inst_groups()
894 alu->op == ALU_OP0_SET_CF_IDX1) in merge_inst_groups()
898 num_src = r600_bytecode_get_num_operands(alu); in merge_inst_groups()
902 if (!is_gpr(alu->src[src].sel)) in merge_inst_groups()
910 if (prev[j]->dst.chan == alu->src[src].chan && in merge_inst_groups()
911 (prev[j]->dst.sel == alu->src[src].sel || in merge_inst_groups()
912 prev[j]->dst.rel || alu->src[src].rel)) in merge_inst_groups()
938 list_addtail(&result[i]->list, &bc->cf_last->alu); in merge_inst_groups()
943 LIST_ENTRY(struct r600_bytecode_alu, bc->cf_last->alu.prev, list)->last = 1; in merge_inst_groups()
1024 struct r600_bytecode_alu *alu) in r600_bytecode_alloc_inst_kcache_lines() argument
1029 unsigned bank, line, sel = alu->src[i].sel, index_mode; in r600_bytecode_alloc_inst_kcache_lines()
1034 bank = alu->src[i].kc_bank; in r600_bytecode_alloc_inst_kcache_lines()
1037 index_mode = alu->src[i].kc_rel ? 1 : 0; // V_SQ_CF_INDEX_0 / V_SQ_CF_INDEX_NONE in r600_bytecode_alloc_inst_kcache_lines()
1046 struct r600_bytecode_alu *alu, in r600_bytecode_assign_kcache_banks() argument
1054 unsigned int line, sel = alu->src[i].sel, found = 0; in r600_bytecode_assign_kcache_banks()
1069 if (kcache[j].bank == alu->src[i].kc_bank && in r600_bytecode_assign_kcache_banks()
1072 alu->src[i].sel = sel - (kcache[j].addr<<4); in r600_bytecode_assign_kcache_banks()
1073 alu->src[i].sel += base[j]; in r600_bytecode_assign_kcache_banks()
1083 struct r600_bytecode_alu *alu, in r600_bytecode_alloc_kcache_lines() argument
1092 if ((r = r600_bytecode_alloc_inst_kcache_lines(bc, kcache, alu))) { in r600_bytecode_alloc_kcache_lines()
1101 if ((r = r600_bytecode_alloc_inst_kcache_lines(bc, kcache, alu))) { in r600_bytecode_alloc_kcache_lines()
1123 struct r600_bytecode_alu alu; in insert_nop_r6xx() local
1127 memset(&alu, 0, sizeof(alu)); in insert_nop_r6xx()
1128 alu.op = ALU_OP0_NOP; in insert_nop_r6xx()
1129 alu.src[0].chan = i; in insert_nop_r6xx()
1130 alu.dst.chan = i; in insert_nop_r6xx()
1131 alu.last = (i == 3); in insert_nop_r6xx()
1132 r = r600_bytecode_add_alu(bc, &alu); in insert_nop_r6xx()
1142 struct r600_bytecode_alu alu; in load_ar_r6xx() local
1152 memset(&alu, 0, sizeof(alu)); in load_ar_r6xx()
1153 alu.op = ALU_OP1_MOVA_GPR_INT; in load_ar_r6xx()
1154 alu.src[0].sel = bc->ar_reg; in load_ar_r6xx()
1155 alu.src[0].chan = bc->ar_chan; in load_ar_r6xx()
1156 alu.last = 1; in load_ar_r6xx()
1157 alu.index_mode = INDEX_MODE_LOOP; in load_ar_r6xx()
1158 r = r600_bytecode_add_alu(bc, &alu); in load_ar_r6xx()
1170 struct r600_bytecode_alu alu; in load_ar() local
1183 memset(&alu, 0, sizeof(alu)); in load_ar()
1184 alu.op = ALU_OP1_MOVA_INT; in load_ar()
1185 alu.src[0].sel = bc->ar_reg; in load_ar()
1186 alu.src[0].chan = bc->ar_chan; in load_ar()
1187 alu.last = 1; in load_ar()
1188 r = r600_bytecode_add_alu(bc, &alu); in load_ar()
1198 const struct r600_bytecode_alu *alu, unsigned type) in r600_bytecode_add_alu_type() argument
1206 memcpy(nalu, alu, sizeof(struct r600_bytecode_alu)); in r600_bytecode_add_alu_type()
1208 if (alu->is_op3) { in r600_bytecode_add_alu_type()
1210 assert(!alu->src[0].abs && !alu->src[1].abs && !alu->src[2].abs); in r600_bytecode_add_alu_type()
1217 LIST_FOR_EACH_ENTRY(lalu, &bc->cf_last->alu, list) { in r600_bytecode_add_alu_type()
1274 list_addtail(&nalu->list, &bc->cf_last->alu); in r600_bytecode_add_alu_type()
1340 int r600_bytecode_add_alu(struct r600_bytecode *bc, const struct r600_bytecode_alu *alu) in r600_bytecode_add_alu() argument
1342 return r600_bytecode_add_alu_type(bc, alu, CF_OP_ALU); in r600_bytecode_add_alu()
1623 static int r600_bytecode_alu_build(struct r600_bytecode *bc, struct r600_bytecode_alu *alu, unsigne… in r600_bytecode_alu_build() argument
1625 unsigned opcode = r600_isa_alu_opcode(bc->isa->hw_class, alu->op); in r600_bytecode_alu_build()
1628 bc->bytecode[id++] = S_SQ_ALU_WORD0_SRC0_SEL(alu->src[0].sel) | in r600_bytecode_alu_build()
1629 S_SQ_ALU_WORD0_SRC0_REL(alu->src[0].rel) | in r600_bytecode_alu_build()
1630 S_SQ_ALU_WORD0_SRC0_CHAN(alu->src[0].chan) | in r600_bytecode_alu_build()
1631 S_SQ_ALU_WORD0_SRC0_NEG(alu->src[0].neg) | in r600_bytecode_alu_build()
1632 S_SQ_ALU_WORD0_SRC1_SEL(alu->src[1].sel) | in r600_bytecode_alu_build()
1633 S_SQ_ALU_WORD0_SRC1_REL(alu->src[1].rel) | in r600_bytecode_alu_build()
1634 S_SQ_ALU_WORD0_SRC1_CHAN(alu->src[1].chan) | in r600_bytecode_alu_build()
1635 S_SQ_ALU_WORD0_SRC1_NEG(alu->src[1].neg) | in r600_bytecode_alu_build()
1636 S_SQ_ALU_WORD0_INDEX_MODE(alu->index_mode) | in r600_bytecode_alu_build()
1637 S_SQ_ALU_WORD0_PRED_SEL(alu->pred_sel) | in r600_bytecode_alu_build()
1638 S_SQ_ALU_WORD0_LAST(alu->last); in r600_bytecode_alu_build()
1640 if (alu->is_op3) { in r600_bytecode_alu_build()
1641 assert(!alu->src[0].abs && !alu->src[1].abs && !alu->src[2].abs); in r600_bytecode_alu_build()
1642 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) | in r600_bytecode_alu_build()
1643 S_SQ_ALU_WORD1_DST_CHAN(alu->dst.chan) | in r600_bytecode_alu_build()
1644 S_SQ_ALU_WORD1_DST_REL(alu->dst.rel) | in r600_bytecode_alu_build()
1645 S_SQ_ALU_WORD1_CLAMP(alu->dst.clamp) | in r600_bytecode_alu_build()
1646 S_SQ_ALU_WORD1_OP3_SRC2_SEL(alu->src[2].sel) | in r600_bytecode_alu_build()
1647 S_SQ_ALU_WORD1_OP3_SRC2_REL(alu->src[2].rel) | in r600_bytecode_alu_build()
1648 S_SQ_ALU_WORD1_OP3_SRC2_CHAN(alu->src[2].chan) | in r600_bytecode_alu_build()
1649 S_SQ_ALU_WORD1_OP3_SRC2_NEG(alu->src[2].neg) | in r600_bytecode_alu_build()
1651 S_SQ_ALU_WORD1_BANK_SWIZZLE(alu->bank_swizzle); in r600_bytecode_alu_build()
1653 bc->bytecode[id++] = S_SQ_ALU_WORD1_DST_GPR(alu->dst.sel) | in r600_bytecode_alu_build()
1654 S_SQ_ALU_WORD1_DST_CHAN(alu->dst.chan) | in r600_bytecode_alu_build()
1655 S_SQ_ALU_WORD1_DST_REL(alu->dst.rel) | in r600_bytecode_alu_build()
1656 S_SQ_ALU_WORD1_CLAMP(alu->dst.clamp) | in r600_bytecode_alu_build()
1657 S_SQ_ALU_WORD1_OP2_SRC0_ABS(alu->src[0].abs) | in r600_bytecode_alu_build()
1658 S_SQ_ALU_WORD1_OP2_SRC1_ABS(alu->src[1].abs) | in r600_bytecode_alu_build()
1659 S_SQ_ALU_WORD1_OP2_WRITE_MASK(alu->dst.write) | in r600_bytecode_alu_build()
1660 S_SQ_ALU_WORD1_OP2_OMOD(alu->omod) | in r600_bytecode_alu_build()
1662 S_SQ_ALU_WORD1_BANK_SWIZZLE(alu->bank_swizzle) | in r600_bytecode_alu_build()
1663 S_SQ_ALU_WORD1_OP2_UPDATE_EXECUTE_MASK(alu->execute_mask) | in r600_bytecode_alu_build()
1664 S_SQ_ALU_WORD1_OP2_UPDATE_PRED(alu->update_pred); in r600_bytecode_alu_build()
1747 struct r600_bytecode_alu *alu; in r600_bytecode_build() local
1793 LIST_FOR_EACH_ENTRY(alu, &cf->alu, list) { in r600_bytecode_build()
1794 r = r600_bytecode_alu_nliterals(alu, literal, &nliteral); in r600_bytecode_build()
1797 r600_bytecode_alu_adjust_literals(alu, literal, nliteral); in r600_bytecode_build()
1798 r600_bytecode_assign_kcache_banks(alu, cf->kcache); in r600_bytecode_build()
1802 r = r600_bytecode_alu_build(bc, alu, addr); in r600_bytecode_build()
1805 r = r700_bytecode_alu_build(bc, alu, addr); in r600_bytecode_build()
1809 r = eg_bytecode_alu_build(bc, alu, addr); in r600_bytecode_build()
1818 if (alu->last) { in r600_bytecode_build()
1868 struct r600_bytecode_alu *alu = NULL, *next_alu; in r600_bytecode_clear() local
1873 LIST_FOR_EACH_ENTRY_SAFE(alu, next_alu, &cf->alu, list) { in r600_bytecode_clear()
1874 free(alu); in r600_bytecode_clear()
1877 list_inithead(&cf->alu); in r600_bytecode_clear()
1932 static int print_dst(struct r600_bytecode_alu *alu) in print_dst() argument
1935 unsigned sel = alu->dst.sel; in print_dst()
1942 if (alu_writes(alu)) { in print_dst()
1944 o += print_sel(alu->dst.sel, alu->dst.rel, alu->index_mode, 0); in print_dst()
1949 o += print_swizzle(alu->dst.chan); in print_dst()
1953 static int print_src(struct r600_bytecode_alu *alu, unsigned idx) in print_src() argument
1956 struct r600_bytecode_alu_src *src = &alu->src[idx]; in print_src()
2066 o += print_sel(sel, src->rel, alu->index_mode, need_brackets); in print_src()
2092 struct r600_bytecode_alu *alu = NULL; in r600_bytecode_disasm() local
2269 LIST_FOR_EACH_ENTRY(alu, &cf->alu, list) { in r600_bytecode_disasm()
2271 const struct alu_op_info *aop = r600_isa_alu(alu->op); in r600_bytecode_disasm()
2274 r600_bytecode_alu_nliterals(alu, literal, &nliteral); in r600_bytecode_disasm()
2280 o += fprintf(stderr, "%c%c %c ", alu->execute_mask ? 'M':' ', in r600_bytecode_disasm()
2281 alu->update_pred ? 'P':' ', in r600_bytecode_disasm()
2282 alu->pred_sel ? alu->pred_sel==2 ? '0':'1':' '); in r600_bytecode_disasm()
2285 omod_str[alu->omod], alu->dst.clamp ? "_sat":""); in r600_bytecode_disasm()
2288 o += print_dst(alu); in r600_bytecode_disasm()
2291 o += print_src(alu, i); in r600_bytecode_disasm()
2294 if (alu->bank_swizzle) { in r600_bytecode_disasm()
2296 o += fprintf(stderr, " BS:%d", alu->bank_swizzle); in r600_bytecode_disasm()
2302 if (alu->last) { in r600_bytecode_disasm()
2312 last = alu->last; in r600_bytecode_disasm()
2664 struct r600_bytecode_alu alu; in r600_create_vertex_fetch_shader() local
2665 memset(&alu, 0, sizeof(alu)); in r600_create_vertex_fetch_shader()
2666 alu.op = ALU_OP2_MULHI_UINT; in r600_create_vertex_fetch_shader()
2667 alu.src[0].sel = 0; in r600_create_vertex_fetch_shader()
2668 alu.src[0].chan = 3; in r600_create_vertex_fetch_shader()
2669 alu.src[1].sel = V_SQ_ALU_SRC_LITERAL; in r600_create_vertex_fetch_shader()
2670 alu.src[1].value = (1ll << 32) / elements[i].instance_divisor + 1; in r600_create_vertex_fetch_shader()
2671 alu.dst.sel = i + 1; in r600_create_vertex_fetch_shader()
2672 alu.dst.chan = j; in r600_create_vertex_fetch_shader()
2673 alu.dst.write = j == 3; in r600_create_vertex_fetch_shader()
2674 alu.last = j == 3; in r600_create_vertex_fetch_shader()
2675 if ((r = r600_bytecode_add_alu(&bc, &alu))) { in r600_create_vertex_fetch_shader()
2681 struct r600_bytecode_alu alu; in r600_create_vertex_fetch_shader() local
2682 memset(&alu, 0, sizeof(alu)); in r600_create_vertex_fetch_shader()
2683 alu.op = ALU_OP2_MULHI_UINT; in r600_create_vertex_fetch_shader()
2684 alu.src[0].sel = 0; in r600_create_vertex_fetch_shader()
2685 alu.src[0].chan = 3; in r600_create_vertex_fetch_shader()
2686 alu.src[1].sel = V_SQ_ALU_SRC_LITERAL; in r600_create_vertex_fetch_shader()
2687 alu.src[1].value = (1ll << 32) / elements[i].instance_divisor + 1; in r600_create_vertex_fetch_shader()
2688 alu.dst.sel = i + 1; in r600_create_vertex_fetch_shader()
2689 alu.dst.chan = 3; in r600_create_vertex_fetch_shader()
2690 alu.dst.write = 1; in r600_create_vertex_fetch_shader()
2691 alu.last = 1; in r600_create_vertex_fetch_shader()
2692 if ((r = r600_bytecode_add_alu(&bc, &alu))) { in r600_create_vertex_fetch_shader()
2802 struct r600_bytecode_alu *alu, uint32_t word0, uint32_t word1) in r600_bytecode_alu_read() argument
2805 alu->src[0].sel = G_SQ_ALU_WORD0_SRC0_SEL(word0); in r600_bytecode_alu_read()
2806 alu->src[0].rel = G_SQ_ALU_WORD0_SRC0_REL(word0); in r600_bytecode_alu_read()
2807 alu->src[0].chan = G_SQ_ALU_WORD0_SRC0_CHAN(word0); in r600_bytecode_alu_read()
2808 alu->src[0].neg = G_SQ_ALU_WORD0_SRC0_NEG(word0); in r600_bytecode_alu_read()
2809 alu->src[1].sel = G_SQ_ALU_WORD0_SRC1_SEL(word0); in r600_bytecode_alu_read()
2810 alu->src[1].rel = G_SQ_ALU_WORD0_SRC1_REL(word0); in r600_bytecode_alu_read()
2811 alu->src[1].chan = G_SQ_ALU_WORD0_SRC1_CHAN(word0); in r600_bytecode_alu_read()
2812 alu->src[1].neg = G_SQ_ALU_WORD0_SRC1_NEG(word0); in r600_bytecode_alu_read()
2813 alu->index_mode = G_SQ_ALU_WORD0_INDEX_MODE(word0); in r600_bytecode_alu_read()
2814 alu->pred_sel = G_SQ_ALU_WORD0_PRED_SEL(word0); in r600_bytecode_alu_read()
2815 alu->last = G_SQ_ALU_WORD0_LAST(word0); in r600_bytecode_alu_read()
2818 alu->bank_swizzle = G_SQ_ALU_WORD1_BANK_SWIZZLE(word1); in r600_bytecode_alu_read()
2819 if (alu->bank_swizzle) in r600_bytecode_alu_read()
2820 alu->bank_swizzle_force = alu->bank_swizzle; in r600_bytecode_alu_read()
2821 alu->dst.sel = G_SQ_ALU_WORD1_DST_GPR(word1); in r600_bytecode_alu_read()
2822 alu->dst.rel = G_SQ_ALU_WORD1_DST_REL(word1); in r600_bytecode_alu_read()
2823 alu->dst.chan = G_SQ_ALU_WORD1_DST_CHAN(word1); in r600_bytecode_alu_read()
2824 alu->dst.clamp = G_SQ_ALU_WORD1_CLAMP(word1); in r600_bytecode_alu_read()
2827 alu->is_op3 = 1; in r600_bytecode_alu_read()
2828 alu->src[2].sel = G_SQ_ALU_WORD1_OP3_SRC2_SEL(word1); in r600_bytecode_alu_read()
2829 alu->src[2].rel = G_SQ_ALU_WORD1_OP3_SRC2_REL(word1); in r600_bytecode_alu_read()
2830 alu->src[2].chan = G_SQ_ALU_WORD1_OP3_SRC2_CHAN(word1); in r600_bytecode_alu_read()
2831 alu->src[2].neg = G_SQ_ALU_WORD1_OP3_SRC2_NEG(word1); in r600_bytecode_alu_read()
2832 alu->op = r600_isa_alu_by_opcode(bc->isa, in r600_bytecode_alu_read()
2838 alu->src[0].abs = G_SQ_ALU_WORD1_OP2_SRC0_ABS(word1); in r600_bytecode_alu_read()
2839 alu->src[1].abs = G_SQ_ALU_WORD1_OP2_SRC1_ABS(word1); in r600_bytecode_alu_read()
2840 alu->op = r600_isa_alu_by_opcode(bc->isa, in r600_bytecode_alu_read()
2842 alu->omod = G_SQ_ALU_WORD1_OP2_OMOD(word1); in r600_bytecode_alu_read()
2843 alu->dst.write = G_SQ_ALU_WORD1_OP2_WRITE_MASK(word1); in r600_bytecode_alu_read()
2844 alu->update_pred = G_SQ_ALU_WORD1_OP2_UPDATE_PRED(word1); in r600_bytecode_alu_read()
2845 alu->execute_mask = in r600_bytecode_alu_read()