pan/midg: Prefix scalar immediates with '#' instead of '<'
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 6 Sep 2021 11:05:00 +0000 (13:05 +0200)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 4 Feb 2022 22:12:35 +0000 (17:12 -0500)
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>

src/panfrost/midgard/disassemble.c

index 44b9da3..e51d0d7 100644 (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) {