pan/mdg: Print writeout sources in mir_print_instruction
authorIcecream95 <ixn@keemail.me>
Sat, 6 Jun 2020 03:36:22 +0000 (15:36 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 13:54:03 +0000 (13:54 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5065>

src/panfrost/midgard/midgard_print.c

index 64dceda3d5e390c4cc06bd095b93bddce1b9349b..1c424f0309193cc3922921c7ee162c89d94e22df 100644 (file)
@@ -307,6 +307,16 @@ mir_print_instruction(midgard_instruction *ins)
                 else
                         printf("true");
 
+                if (ins->writeout) {
+                        printf(" (c: ");
+                        PRINT_SRC(ins, 0);
+                        printf(", z: ");
+                        PRINT_SRC(ins, 2);
+                        printf(", s: ");
+                        PRINT_SRC(ins, 3);
+                        printf(")");
+                }
+
                 if (ins->branch.target_type != TARGET_DISCARD)
                         printf(" %s -> block(%d)\n",
                                ins->branch.target_type < 4 ?