aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-18 09:58:42 -0400
committerMarge Bot <[email protected]>2020-03-19 03:23:07 +0000
commit8a3bf3f1a1f13a6f14f849c5cdcdd1874566f88d (patch)
tree97fbcc24b3dce7a9c4043a10dbe1ee10d245613c /src/panfrost
parentcd40e189b6769f3cfb18557e3715a3289bebc13c (diff)
pan/bi: Add struct bifrost_fma_fma
So we can pack regular FMA ops. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4242>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/bifrost/bifrost.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index 8f5dec578f7..ba08633f8f9 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -147,6 +147,22 @@ struct bifrost_fma_add {
unsigned op : 6;
} __attribute__((packed));
+#define BIFROST_FMA_OP_FMA (0x00)
+
+struct bifrost_fma_fma {
+ unsigned src0 : 3;
+ unsigned src1 : 3;
+ unsigned src2 : 3;
+ unsigned src_expand : 3;
+ unsigned src0_abs : 1;
+ unsigned unk : 4;
+ unsigned src0_neg : 1;
+ unsigned src2_neg : 1;
+ unsigned src1_abs : 1;
+ unsigned src2_abs : 1;
+ unsigned op : 5;
+} __attribute__((packed));
+
enum bifrost_csel_cond {
BIFROST_FEQ_F = 0x0,
BIFROST_FGT_F = 0x1,