pan/bi: Structify ADD ICMP 32
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 28 Apr 2020 15:44:51 +0000 (11:44 -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 5331da67835b33ef15a7751b0359ea2265787fee..e6fac6cae8bcfb257da29468c036d71ba3fdd399 100644 (file)
@@ -454,6 +454,7 @@ enum bifrost_icmp_cond {
         BIFROST_ICMP_UGT = 2,
         BIFROST_ICMP_UGE = 3,
         BIFROST_ICMP_EQ  = 4,
+        BIFROST_ICMP_NEQ  = 5,
 };
 
 struct bifrost_fma_icmp32 {
@@ -473,6 +474,15 @@ struct bifrost_fma_icmp16 {
         unsigned op : 9;
 } __attribute__((packed));
 
+struct bifrost_add_icmp {
+        unsigned src0 : 3;
+        unsigned src1 : 3;
+        enum bifrost_icmp_cond cond : 3;
+        unsigned sz : 1; /* 1 for 32, 0 for 8 */
+        unsigned d3d : 1;
+        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)