pan/bi: Structify FMA ICMP 16
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 28 Apr 2020 15:40:22 +0000 (11:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 17:17:48 +0000 (17:17 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>

src/panfrost/bifrost/bifrost.h

index 40147e7..5331da6 100644 (file)
@@ -465,6 +465,14 @@ struct bifrost_fma_icmp32 {
         unsigned op : 12;
 } __attribute__((packed));
 
+struct bifrost_fma_icmp16 {
+        unsigned src0 : 3;
+        unsigned src1 : 3;
+        unsigned unk : 5; /* 11010 */
+        enum bifrost_icmp_cond cond : 3;
+        unsigned op : 9;
+} __attribute__((packed));
+
 /* Two sources for vectorization */
 #define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
 #define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)