From: Alyssa Rosenzweig Date: Tue, 6 Aug 2019 01:06:24 +0000 (-0700) Subject: pan/midgard: Absorb nonexistance sources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc3df917d3be701d09501786eeda7775d43897e7;p=mesa.git pan/midgard: Absorb nonexistance sources Signed-off-by: Alyssa Rosenzweig --- 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);