pan/midgard: Absorb nonexistance sources
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 6 Aug 2019 01:06:24 +0000 (18:06 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 12 Aug 2019 19:43:01 +0000 (12:43 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_print.c

index 585df36565f7f52c685a4ea295ae7311413cce53..d6aef04cb922317e970b37180e3c9f5f58dcf258 100644 (file)
 static void
 mir_print_index(int source)
 {
+        if (source < 0) {
+                printf("_");
+                return;
+        }
+
         if (source >= SSA_FIXED_MINIMUM) {
                 /* Specific register */
                 int reg = SSA_REG_FROM_FIXED(source);