pan/midg: Prefix scalar immediates with '#' instead of '<'

We already do that for scalar instructions, so let's do it for
vector instructions with a single component too.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14885>
This commit is contained in:
Boris Brezillon 2021-09-06 13:05:00 +02:00 committed by Alyssa Rosenzweig
parent 36bb1ac453
commit 65209b1adb
1 changed files with 5 additions and 1 deletions

View File

@ -563,7 +563,11 @@ print_vector_constants(FILE *fp, unsigned src_binary,
comp_mask = effective_writemask(alu->op, condense_writemask(alu->mask, bits));
num_comp = util_bitcount(comp_mask);
fprintf(fp, "<");
if (num_comp > 1)
fprintf(fp, "<");
else
fprintf(fp, "#");
bool first = true;
for (unsigned i = 0; i < max_comp; ++i) {