aco/ra: Fix print_regs using the wrong constant to check for blocked slots

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8719>
This commit is contained in:
Tony Wasserka 2021-01-26 15:55:18 +01:00
parent 26c9574bdb
commit b241a050da
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,7 @@ void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file)
unsigned prev = 0;
bool char_select = false;
for (unsigned i = lb; i < ub; i++) {
if (reg_file[i] == 0xFFFF) {
if (reg_file[i] == 0xFFFFFFFF) {
printf("~");
} else if (reg_file[i]) {
if (reg_file[i] != prev) {
@ -403,7 +403,7 @@ void print_regs(ra_ctx& ctx, bool vgprs, RegisterFile& reg_file)
else if (prev)
printf("]\n");
prev = reg_file[i];
if (prev && prev != 0xFFFF) {
if (prev && prev != 0xFFFFFFFF) {
if (ctx.orig_names.count(reg_file[i]) && ctx.orig_names[reg_file[i]].id() != reg_file[i])
printf("%%%u (was %%%d) = %c[%d", reg_file[i], ctx.orig_names[reg_file[i]].id(), reg_char, i - lb);
else