aco/ra: Fix print_regs using the wrong constant to check for blocked slots
authorTony Wasserka <tony.wasserka@gmx.de>
Tue, 26 Jan 2021 14:55:18 +0000 (15:55 +0100)
committerTony Wasserka <tony.wasserka@gmx.de>
Wed, 27 Jan 2021 11:08:47 +0000 (12:08 +0100)
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8719>

src/amd/compiler/aco_register_allocation.cpp

index 84e172f..821536d 100644 (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