pan/mdg: Print 8-bit constants

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5265>
This commit is contained in:
Alyssa Rosenzweig 2020-05-14 13:30:41 -04:00 committed by Marge Bot
parent 0ff0291896
commit 49840a8a58
1 changed files with 7 additions and 1 deletions

View File

@ -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;
}
}