pan/bi: Add a bifrost_roundmode field
And a class property signaling it's okay to use.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 823d2e7..421db9a 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -83,6 +83,9 @@
* irregular enough to warrant a separate class */
#define BI_GENERIC (1 << 1)
+/* Accepts a bifrost_roundmode */
+#define BI_ROUNDMODE (1 << 2)
+
/* It can't get any worse than csel4... can it? */
#define BIR_SRC_COUNT 4
@@ -100,6 +103,9 @@
enum bifrost_outmod outmod;
bool src_abs[BIR_SRC_COUNT];
bool src_neg[BIR_SRC_COUNT];
+
+ /* Round mode (requires BI_ROUNDMODE) */
+ enum bifrost_roundmode roundmode;
} bi_instruction;
typedef struct {