panfrost/midgard: Fix redunant mask redundancy
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Jun 2019 20:19:15 +0000 (13:19 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 11 Jun 2019 15:44:19 +0000 (08:44 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/midgard/disassemble.c

index 7b0972efb8c16bc6dafb9fa700cf23055c21fd50..c318a13c28c6f800b41358b26388a869c549d8bb 100644 (file)
@@ -451,9 +451,14 @@ print_mask(uint8_t mask, unsigned bits, midgard_dest_override override)
                 printf(" /* %X */", mask);
 }
 
+/* Prints the 4-bit masks found in texture and load/store ops, as opposed to
+ * the 8-bit masks found in (vector) ALU ops */
+
 static void
 print_mask_4(unsigned mask)
 {
+        if (mask == 0xF) return;
+
         printf(".");
 
         for (unsigned i = 0; i < 4; ++i) {