summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-05 18:06:24 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-12 12:43:01 -0700
commitcc3df917d3be701d09501786eeda7775d43897e7 (patch)
tree8693f98d16b9f9fbeafbba50c683451b88e07fbc /src
parent0a7cc239bd0a83cdbfc42999eadfe76ccfa763dd (diff)
pan/midgard: Absorb nonexistance sources
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_print.c5
1 files changed, 5 insertions, 0 deletions
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);