pan/midgard: Disassemble integer constants in hex
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Aug 2019 20:46:00 +0000 (13:46 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 22 Aug 2019 19:51:55 +0000 (12:51 -0700)
It's usually easier to parse mentally.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/disassemble.c

index c4bdacd..b26dfb8 100644 (file)
@@ -947,8 +947,8 @@ print_alu_word(uint32_t *words, unsigned num_quad_words,
                                        sconsts[2],
                                        sconsts[3]);
                         } else {
-                                int32_t *iconsts = (int32_t *) consts;
-                                printf("iconstants %d, %d, %d, %d\n",
+                                uint32_t *iconsts = (uint32_t *) consts;
+                                printf("iconstants 0x%X, 0x%X, 0x%X, 0x%X\n",
                                        iconsts[0],
                                        iconsts[1],
                                        iconsts[2],