aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-21 13:45:47 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-22 12:51:39 -0700
commitb89cb0dba6a6026c0fe9a36ccebce8e16913520a (patch)
treebf2166812f1088af59194e553e63aeba1743aadc /src
parent19d58a299b911ce36349485b8d4b5859c719f10a (diff)
pan/midgard: Explain ffma
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ops.c b/src/panfrost/midgard/midgard_ops.c
index dbc87386bc0..36e4bc371d1 100644
--- a/src/panfrost/midgard/midgard_ops.c
+++ b/src/panfrost/midgard/midgard_ops.c
@@ -54,6 +54,9 @@ struct mir_op_props alu_opcode_props[256] = {
[midgard_alu_op_ftrunc] = {"ftrunc", UNITS_ADD},
[midgard_alu_op_ffloor] = {"ffloor", UNITS_ADD},
[midgard_alu_op_fceil] = {"fceil", UNITS_ADD},
+
+ /* Multiplies the X/Y components of the first arg and adds the second
+ * arg. Like other LUTs, it must be scalarized. */
[midgard_alu_op_ffma] = {"ffma", UNIT_VLUT},
/* Though they output a scalar, they need to run on a vector unit