bifrost: Add support for nir_op_imul
Unfortunately this doesn't map nicely to the existing instruction
classes, so we'll make a new one for now.
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6091>
diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h
index 2038a32..4c77ac5 100644
--- a/src/panfrost/bifrost/compiler.h
+++ b/src/panfrost/bifrost/compiler.h
@@ -76,6 +76,7 @@
BI_TABLE,
BI_TEX,
BI_ROUND,
+ BI_IMUL,
BI_NUM_CLASSES
};
@@ -171,6 +172,10 @@
BI_IMATH_SUB,
};
+enum bi_imul_op {
+ BI_IMUL_IMUL,
+};
+
enum bi_table_op {
/* fp32 log2() with low precision, suitable for GL or half_log2() in
* CL. In the first argument, takes x. Letting u be such that x =
@@ -281,6 +286,7 @@
enum bi_frexp_op frexp;
enum bi_tex_op texture;
enum bi_imath_op imath;
+ enum bi_imul_op imul;
/* For FMA/ADD, should we add a biased exponent? */
bool mscale;