pan/mdg: Fix perspective combination
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 31 Aug 2020 18:20:59 +0000 (14:20 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 31 Aug 2020 19:43:55 +0000 (19:43 +0000)
commit41d0a81c2a3f09701e8c694b520c8d900f6ac2f1
tree061a4d5a6b90fe6e72aae511e1f4fb962b653052
parentc8ac01af33a5bc63822915f08f89a7dbaf7d433f
pan/mdg: Fix perspective combination

It's not enough to multiply by a .w reciprocal, we have to be taking the
reciprocal of the thing we're actually multiplying against.

Fixes incorrect rendering in Manhattan.

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