From: Tony Wasserka Date: Tue, 26 Jan 2021 14:55:18 +0000 (+0100) Subject: aco/ra: Fix print_regs using the wrong constant to check for blocked slots X-Git-Tag: upstream/21.2.3~8912 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b241a050dae5ef8dbbcd8e43806dafa21b1125f5;p=platform%2Fupstream%2Fmesa.git aco/ra: Fix print_regs using the wrong constant to check for blocked slots Reviewed-by: Rhys Perry Part-of: --- diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 84e172f..821536d 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -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