diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-14 13:30:41 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 15:46:23 +0000 |
commit | 49840a8a58a6614615fb73c0e558863478190913 (patch) | |
tree | 663196bdc972e5834fb4d9af894908ac4b4c0197 /src | |
parent | 0ff0291896a91dde9c6f7f0a1bc5b7c3962e72a0 (diff) |
pan/mdg: Print 8-bit constants
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5265>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/midgard/midgard_print.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; } } |