r300/compiler: don't terminate regalloc if we surpass max temps limit

The same check is already in a later pass (translate_vertex_program).
This commit is contained in:
Marek Olšák
2010-12-07 21:45:34 +01:00
parent 2f07a744f1
commit 431b4c0c84
@@ -791,19 +791,14 @@ static void allocate_temporary_registers(struct radeon_compiler *c, void *user)
if (!hwtemps[j])
break;
}
if (j >= c->max_temp_regs) {
rc_error(c, "Too many temporaries\n");
return;
ta[orig].Allocated = 1;
if (last_inst_src_reladdr &&
last_inst_src_reladdr->IP > inst->IP) {
ta[orig].HwTemp = orig;
} else {
ta[orig].Allocated = 1;
if (last_inst_src_reladdr &&
last_inst_src_reladdr->IP > inst->IP) {
ta[orig].HwTemp = orig;
} else {
ta[orig].HwTemp = j;
}
hwtemps[ta[orig].HwTemp] = 1;
ta[orig].HwTemp = j;
}
hwtemps[ta[orig].HwTemp] = 1;
}
inst->U.I.DstReg.Index = ta[orig].HwTemp;