From 49840a8a58a6614615fb73c0e558863478190913 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 14 May 2020 13:30:41 -0400 Subject: [PATCH] pan/mdg: Print 8-bit constants Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_print.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c index a5133f09e20..7a41dcab5ca 100644 --- a/src/panfrost/midgard/midgard_print.c +++ b/src/panfrost/midgard/midgard_print.c @@ -221,7 +221,13 @@ mir_print_constant_component(FILE *fp, const midgard_constants *consts, unsigned break; case midgard_reg_mode_8: - unreachable("XXX TODO: sort out how 8-bit constant encoding works"); + fprintf(fp, "0x%X", consts->u8[c]); + + if (mod) + fprintf(fp, " /* %u */", mod); + + assert(!half); /* No 4-bit */ + break; } } -- 2.30.2