From: Alyssa Rosenzweig Date: Thu, 14 May 2020 17:30:41 +0000 (-0400) Subject: pan/mdg: Print 8-bit constants X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49840a8a58a6614615fb73c0e558863478190913;p=mesa.git pan/mdg: Print 8-bit constants Signed-off-by: Alyssa Rosenzweig Part-of: --- 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; } }