pan/mdg: Print mask when dest=0
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 11 May 2020 16:56:43 +0000 (12:56 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 17:49:14 +0000 (17:49 +0000)
Forgot this convention differs from Bifrost.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>

src/panfrost/midgard/midgard_print.c

index c74b75bcd2f3ff26f02dc2191ff2a08220caac72..b2cc8e27aa4f0dc70da2dc3d3512856055089293 100644 (file)
@@ -348,7 +348,7 @@ mir_print_instruction(midgard_instruction *ins)
         printf(" ");
         mir_print_index(ins->dest);
 
-        if (ins->dest) {
+        if (ins->dest != ~0) {
                 pan_print_alu_type(ins->dest_type, stdout);
                 mir_print_mask(ins->mask);
         }