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:
Eric R. Smith 2025-08-31 09:23:04 -03:00
parent d482b6ca68
commit e3552c427e

View file

@ -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)