pan/bi: Add BI_GENERIC property
I don't want to have 20 class-specific structures floating around. So
let's derive them all from a common generic ALU type.
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 6956a99..823d2e7 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -78,6 +78,11 @@
/* abs/neg/outmod valid for a float op */
#define BI_MODS (1 << 0)
+/* Generic enough that little class-specific information is required. In other
+ * words, it acts as a "normal" ALU op, even if the encoding ends up being
+ * irregular enough to warrant a separate class */
+#define BI_GENERIC (1 << 1)
+
/* It can't get any worse than csel4... can it? */
#define BIR_SRC_COUNT 4