Mesa (main): pan/midg: Prefix scalar immediates with '#' instead of '<'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 4 23:24:20 UTC 2022


Module: Mesa
Branch: main
Commit: 65209b1adb5e8fb482be0de31f8674f9cb5c9130
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=65209b1adb5e8fb482be0de31f8674f9cb5c9130

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Sep  6 13:05:00 2021 +0200

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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14885>

---

 src/panfrost/midgard/disassemble.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c
index 44b9da39a9e..e51d0d70a47 100644
--- a/src/panfrost/midgard/disassemble.c
+++ b/src/panfrost/midgard/disassemble.c
@@ -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) {



More information about the mesa-commit mailing list