summaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bifrost.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-01 11:40:21 -0500
committerMarge Bot <[email protected]>2020-03-03 00:03:50 +0000
commit7c96bd2dc5a0d3d5c7d620e0fe56f1931db52a3c (patch)
tree460ef6c7d996c842b0ba6ed72cb97913f6876947 /src/panfrost/bifrost/bifrost.h
parent19a449e4258174cfba13b9bab70fbab1a700fdfd (diff)
pan/bi: Introduce CSEL4 class
All of these "ops" are just variants on the same. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4025>
Diffstat (limited to 'src/panfrost/bifrost/bifrost.h')
-rw-r--r--src/panfrost/bifrost/bifrost.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h
index aa382b43be7..a8725f395ab 100644
--- a/src/panfrost/bifrost/bifrost.h
+++ b/src/panfrost/bifrost/bifrost.h
@@ -82,4 +82,25 @@ struct bifrost_add_inst {
unsigned op : 17;
};
+enum bifrost_csel_cond {
+ BIFROST_FEQ_F = 0x0,
+ BIFROST_FGT_F = 0x1,
+ BIFROST_FGE_F = 0x2,
+ BIFROST_IEQ_F = 0x3,
+ BIFROST_IGT_I = 0x4,
+ BIFROST_IGE_I = 0x5,
+ BIFROST_UGT_I = 0x6,
+ BIFROST_UGE_I = 0x7
+};
+
+struct bifrost_csel4 {
+ unsigned src0 : 3;
+ unsigned src1 : 3;
+ unsigned src2 : 3;
+ unsigned src3 : 3;
+ enum bifrost_csel_cond cond : 3;
+ unsigned op : 8;
+};
+
+
#endif