Mesa (master): aco/ra: Fix print_regs using the wrong constant to check for blocked slots

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 27 11:22:24 UTC 2021


Module: Mesa
Branch: master
Commit: b241a050dae5ef8dbbcd8e43806dafa21b1125f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b241a050dae5ef8dbbcd8e43806dafa21b1125f5

Author: Tony Wasserka <tony.wasserka at gmx.de>
Date:   Tue Jan 26 15:55:18 2021 +0100

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

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8719>

---

 src/amd/compiler/aco_register_allocation.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp
index 84e172f34e2..821536d4f6d 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



More information about the mesa-commit mailing list