pan/mdg: Legalize inverts with constants
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 2 Jun 2020 16:15:18 +0000 (12:15 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 4 Jun 2020 13:17:11 +0000 (13:17 +0000)
commit622e3a8510ad6ccff41b2ba2f6184b80ad67dea5
treed6fd965a23b215a10384cc62578cb4832fb39089
parente61a98877ccdaf7ec1f9f890f0f7c1a993ee70a1
pan/mdg: Legalize inverts with constants

We need to force src_invert to be in the right place even if we flip
when lowering an embedded->inline constant.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: 449e5ded934 ("pan/mdg: Treat inot as a modifier")
Reported-by: Icecream95 <ixn@keemail.me>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5299>
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/mir.c