aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-04-28 10:34:26 -0400
committerMarge Bot <[email protected]>2020-04-28 17:17:48 +0000
commit527d7303cabb5512e7de2569feaaefc3a3ae4354 (patch)
tree6a70ebffdcd077b4442671340e512786444d0f72 /src
parent74795dd3284772b8491683e66de83839880a964d (diff)
pan/bi: Structify ADD FCMP16
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4789>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/bifrost/bifrost.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index ec575fa856e..38cd173a80c 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -434,6 +434,20 @@ struct bifrost_fma_fcmp16 {
unsigned op : 7;
} __attribute__((packed));
+struct bifrost_add_fcmp16 {
+ unsigned src0 : 3;
+ unsigned src1 : 3;
+ enum bifrost_fcmp_cond cond : 3;
+
+ unsigned src0_swizzle : 2;
+ unsigned src1_swizzle : 2;
+
+ /* No abs mods */
+ unsigned src0_neg : 1;
+
+ unsigned op : 6;
+} __attribute__((packed));
+
/* Two sources for vectorization */
#define BIFROST_FMA_FLOAT32_TO_16 (0xdd000 >> 3)
#define BIFROST_ADD_FLOAT32_TO_16 (0x0EC00 >> 3)