pan/midgard: Explain ffma
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 21 Aug 2019 20:45:47 +0000 (13:45 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 22 Aug 2019 19:51:39 +0000 (12:51 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_ops.c

index dbc87386bc08d96d198fc80aad743e5398167b44..36e4bc371d15cb439b7d1d2f963bdeccb719f20e 100644 (file)
@@ -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