From cc3df917d3be701d09501786eeda7775d43897e7 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 5 Aug 2019 18:06:24 -0700 Subject: pan/midgard: Absorb nonexistance sources Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_print.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/panfrost/midgard') diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c index 585df36565f..d6aef04cb92 100644 --- a/src/panfrost/midgard/midgard_print.c +++ b/src/panfrost/midgard/midgard_print.c @@ -34,6 +34,11 @@ 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); -- cgit v1.2.3