r600: Only count ALU registers that are not clause local

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19397>
This commit is contained in:
Gert Wollny 2022-10-10 18:16:35 +02:00 committed by Marge Bot
parent 04465c10bd
commit dfeb96e277

View file

@ -1327,14 +1327,14 @@ int r600_bytecode_add_alu_type(struct r600_bytecode *bc,
}
/* number of gpr == the last gpr used in any alu */
for (i = 0; i < 3; i++) {
if (nalu->src[i].sel >= bc->ngpr && nalu->src[i].sel < 128) {
if (nalu->src[i].sel >= bc->ngpr && nalu->src[i].sel < 124) {
bc->ngpr = nalu->src[i].sel + 1;
}
if (nalu->src[i].sel == V_SQ_ALU_SRC_LITERAL)
r600_bytecode_special_constants(nalu->src[i].value,
&nalu->src[i].sel);
}
if (nalu->dst.write && nalu->dst.sel >= bc->ngpr) {
if (nalu->dst.write && nalu->dst.sel >= bc->ngpr && nalu->dst.sel < 124) {
bc->ngpr = nalu->dst.sel + 1;
}
list_addtail(&nalu->list, &bc->cf_last->alu);