i915G: show correct number of needed ALU instructions at errmess

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26340>
This commit is contained in:
GKraats 2023-11-22 23:40:07 +01:00 committed by Marge Bot
parent 752b23547a
commit 4fe9a6053a
2 changed files with 4 additions and 6 deletions

View file

@ -155,8 +155,7 @@ i915_emit_arith(struct i915_fp_compile *p, uint32_t op, uint32_t dest,
*(p->csr++) = (op | A0_DEST(dest) | mask | saturate | A0_SRC0(src0));
*(p->csr++) = (A1_SRC0(src0) | A1_SRC1(src1));
*(p->csr++) = (A2_SRC1(src1) | A2_SRC2(src2));
} else
i915_program_error(p, "Out of instructions");
}
if (GET_UREG_TYPE(dest) == REG_TYPE_R)
p->register_phases[GET_UREG_NR(dest)] = p->nr_tex_indirect;
@ -239,8 +238,7 @@ i915_emit_texld(struct i915_fp_compile *p, uint32_t dest, uint32_t destmask,
*(p->csr++) = T1_ADDRESS_REG(coord);
*(p->csr++) = T2_MBZ;
} else
i915_program_error(p, "Out of instructions");
}
if (GET_UREG_TYPE(dest) == REG_TYPE_R)
p->register_phases[GET_UREG_NR(dest)] = p->nr_tex_indirect;

View file

@ -859,8 +859,8 @@ i915_translate_token(struct i915_fp_compile *p,
} else if (token->FullDeclaration.Declaration.File ==
TGSI_FILE_TEMPORARY) {
if (token->FullDeclaration.Range.Last >= I915_MAX_TEMPORARY) {
i915_program_error(p, "Exceeded %d max TGSI temps",
I915_MAX_TEMPORARY);
i915_program_error(p, "Exceeded max TGSI temps (%d/%d)",
token->FullDeclaration.Range.Last + 1, I915_MAX_TEMPORARY);
} else {
uint32_t i;
for (i = token->FullDeclaration.Range.First;