mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 06:00:14 +01:00
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:
parent
04465c10bd
commit
dfeb96e277
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue