pan/mdg: Allow scheduling "x + x" to multipliers
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jun 2020 21:24:02 +0000 (17:24 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 12:57:34 +0000 (12:57 +0000)
commit6318e461416feacd352b611fd28e698dd654c6a4
tree5a22a6a6c173c1c8ed6aacc3ae691037e20da670
parentbc356abea31b4727dd1363d9a3a2017135b05bd0
pan/mdg: Allow scheduling "x + x" to multipliers

One of the neat things with Midgard's wacky VLIW... on VADD/SADD this is
(x + x) literally, on VMUL/SMUL/VLUT this is (x * 2.0) where the 2.0 is
exactly representable in FP16 so it fits nicely as an inline constant.
So we don't need to restrict its scheduling.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5475>
src/panfrost/midgard/midgard_schedule.c