pan/bi: Allow BI_FMA to take mods
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 1 Apr 2020 22:13:55 +0000 (18:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 5 Apr 2020 23:26:04 +0000 (23:26 +0000)
It doesn't take abs but it can take outmod/neg.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4458>

src/panfrost/bifrost/bi_tables.c

index 04beb55c71a95f6bd3ff5377d3d185cf13edfb68..d79fae26a06504d8d39c65b8ce99262eb788e48f 100644 (file)
@@ -37,7 +37,7 @@ unsigned bi_class_props[BI_NUM_CLASSES] = {
         [BI_CONVERT]           = BI_SCHED_ALL | BI_SWIZZLABLE,
         [BI_CSEL]              = BI_SCHED_FMA,
         [BI_DISCARD]           = BI_SCHED_HI_LATENCY | BI_SCHED_ADD,
-        [BI_FMA]               = BI_ROUNDMODE | BI_SCHED_FMA,
+        [BI_FMA]               = BI_ROUNDMODE | BI_SCHED_FMA | BI_MODS,
         [BI_FREXP]             = BI_SCHED_ALL,
         [BI_ISUB]              = BI_GENERIC | BI_SCHED_ALL,
         [BI_LOAD]              = BI_SCHED_HI_LATENCY | BI_SCHED_ADD | BI_VECTOR | BI_DATA_REG_DEST,