mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
r300: more informative too many ALU instructions error
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Filip Gawin <filip@gawin.net> Tested-by: Filip Gawin <filip@gawin.net> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19766>
This commit is contained in:
parent
b70543a955
commit
1ec172646c
1 changed files with 5 additions and 1 deletions
|
|
@ -157,7 +157,11 @@ static int emit_alu(struct r300_emit_state * emit, struct rc_pair_instruction* i
|
|||
PROG_CODE;
|
||||
|
||||
if (code->alu.length >= c->Base.max_alu_insts) {
|
||||
error("Too many ALU instructions");
|
||||
/* rc_recompute_ips does not give an exact count, because it counts extra stuff
|
||||
* like BEGINTEX, but here it is intended to be only approximative anyway,
|
||||
* just to give some idea how close to the limit we are. */
|
||||
rc_error(&c->Base, "Too many ALU instructions used: %u, max: %u.\n",
|
||||
rc_recompute_ips(&c->Base), c->Base.max_alu_insts);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue