summaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-28 11:44:51 -0400
committerMarge Bot <[email protected]>2020-04-28 17:17:48 +0000
commit12ca99f2c1ac70844153362528808858af9aec32 (patch)
treebf3fbdecae1a49027b9bde1c8e710c56d932da20 /src/panfrost
parentddcefefa7d5ad9fc111ca17495c002a6802dcd95 (diff)
pan/bi: Structify ADD ICMP 32
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/bifrost/bifrost.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index 5331da67835..e6fac6cae8b 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -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)