mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
panfrost: fix debug print of spilled registers
We were testing some conditions in the wrong order, so spilled
registers were being printed as if they were uniforms. This is
incorrect, but only subtly so, and lead to confusion.
Fixes: 6c64ad934f ("panfrost: spill registers in SSA form")
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Ashley Smith <ashley.smith@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37092>
This commit is contained in:
parent
d482b6ca68
commit
e3552c427e
1 changed files with 2 additions and 2 deletions
|
|
@ -95,10 +95,10 @@ bi_print_index(FILE *fp, bi_index index)
|
|||
fprintf(fp, "_");
|
||||
else if (index.type == BI_INDEX_CONSTANT)
|
||||
fprintf(fp, "#0x%x", index.value);
|
||||
else if (index.type == BI_INDEX_FAU && index.value >= BIR_FAU_UNIFORM)
|
||||
fprintf(fp, "u%u", index.value & ~BIR_FAU_UNIFORM);
|
||||
else if (index.type == BI_INDEX_FAU && index.memory)
|
||||
fprintf(fp, "m%u", index.value);
|
||||
else if (index.type == BI_INDEX_FAU && index.value >= BIR_FAU_UNIFORM)
|
||||
fprintf(fp, "u%u", index.value & ~BIR_FAU_UNIFORM);
|
||||
else if (index.type == BI_INDEX_FAU)
|
||||
fprintf(fp, "%s", bir_fau_name(index.value));
|
||||
else if (index.type == BI_INDEX_PASS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue