[Mesa-dev] [PATCH 14/18] panfrost/midgard: Fix redunant mask redundancy

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Mon Jun 10 22:01:42 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/gallium/drivers/panfrost/midgard/disassemble.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c
index 4ef82140b7f..bada8974396 100644
--- a/src/gallium/drivers/panfrost/midgard/disassemble.c
+++ b/src/gallium/drivers/panfrost/midgard/disassemble.c
@@ -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) {
-- 
2.20.1



More information about the mesa-dev mailing list