Lines Matching refs:slots

811 				      struct r600_bytecode_alu *slots[5])  in check_and_set_bank_swizzle()
820 if (slots[i]) { in check_and_set_bank_swizzle()
821 if (slots[i]->bank_swizzle_force) { in check_and_set_bank_swizzle()
822 slots[i]->bank_swizzle = slots[i]->bank_swizzle_force; in check_and_set_bank_swizzle()
828 if (i < 4 && slots[i]) in check_and_set_bank_swizzle()
837 if (!slots[i] || !slots[i]->bank_swizzle_force) in check_and_set_bank_swizzle()
840 bank_swizzle[i] = slots[i]->bank_swizzle; in check_and_set_bank_swizzle()
854 if (slots[i]) { in check_and_set_bank_swizzle()
855 r = check_vector(bc, slots[i], &bs, bank_swizzle[i]); in check_and_set_bank_swizzle()
863 if (!r && slots[4] && max_slots == 5) { in check_and_set_bank_swizzle()
864 r = check_scalar(bc, slots[4], &bs, bank_swizzle[4]); in check_and_set_bank_swizzle()
868 if (slots[i]) in check_and_set_bank_swizzle()
869 slots[i]->bank_swizzle = bank_swizzle[i]; in check_and_set_bank_swizzle()
878 if (!slots[i] || !slots[i]->bank_swizzle_force) { in check_and_set_bank_swizzle()
894 struct r600_bytecode_alu *slots[5], struct r600_bytecode_alu *alu_prev) in replace_gpr_with_pv_ps()
918 struct r600_bytecode_alu *alu = slots[i]; in replace_gpr_with_pv_ps()
1031 static int merge_inst_groups(struct r600_bytecode *bc, struct r600_bytecode_alu *slots[5], in merge_inst_groups()
1056 if (slots[i]) { in merge_inst_groups()
1057 if (slots[i]->pred_sel) in merge_inst_groups()
1059 if (is_alu_once_inst(bc, slots[i])) in merge_inst_groups()
1083 if (slots[i] && r600_bytecode_alu_nliterals(bc, slots[i], literal, &nliteral)) in merge_inst_groups()
1087 if (prev[i] && !slots[i]) { in merge_inst_groups()
1090 } else if (prev[i] && slots[i]) { in merge_inst_groups()
1091 if (max_slots == 5 && result[4] == NULL && prev[4] == NULL && slots[4] == NULL) { in merge_inst_groups()
1093 if (is_alu_any_unit_inst(bc, slots[i])) { in merge_inst_groups()
1095 result[4] = slots[i]; in merge_inst_groups()
1097 if (slots[i]->dst.sel == prev[i]->dst.sel && in merge_inst_groups()
1098 (slots[i]->dst.write == 1 || slots[i]->is_op3) && in merge_inst_groups()
1102 result[i] = slots[i]; in merge_inst_groups()
1108 } else if(!slots[i]) { in merge_inst_groups()
1111 if (max_slots == 5 && slots[i] && prev[4] && in merge_inst_groups()
1112 slots[i]->dst.sel == prev[4]->dst.sel && in merge_inst_groups()
1113 slots[i]->dst.chan == prev[4]->dst.chan && in merge_inst_groups()
1114 (slots[i]->dst.write == 1 || slots[i]->is_op3) && in merge_inst_groups()
1118 result[i] = slots[i]; in merge_inst_groups()
1121 alu = slots[i]; in merge_inst_groups()
1177 slots[i] = result[i]; in merge_inst_groups()
1504 struct r600_bytecode_alu *slots[5]; in r600_bytecode_add_alu_type() local
1506 r = assign_alu_units(bc, bc->cf_last->curr_bs_head, slots); in r600_bytecode_add_alu_type()
1511 r = merge_inst_groups(bc, slots, bc->cf_last->prev_bs_head); in r600_bytecode_add_alu_type()
1517 r = replace_gpr_with_pv_ps(bc, slots, bc->cf_last->prev_bs_head); in r600_bytecode_add_alu_type()
1522 r = check_and_set_bank_swizzle(bc, slots); in r600_bytecode_add_alu_type()
1527 if (slots[i]) { in r600_bytecode_add_alu_type()
1528 r = r600_bytecode_alu_nliterals(bc, slots[i], literal, &nliteral); in r600_bytecode_add_alu_type()