freedreno/ir3: put the conversion back for half const to the right place.
authorHyunjun Ko <zzoon@igalia.com>
Thu, 7 Nov 2019 05:28:41 +0000 (05:28 +0000)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 7 Feb 2020 17:53:42 +0000 (09:53 -0800)
commit260bd32b58a55ac0d9870497caef3a4602e19d47
tree6e43d52728f08ca924d8b4330fe2f3efd41c710e
parentd70192e6973aec3bbe2be70192f18b6a2257872a
freedreno/ir3: put the conversion back for half const to the right place.

The previous commit leads to match immed values unexpectedly.

This makes constlen for each shader including bvert wrong.
Also fixes atan2 for mediump deqp tests.

Fixes: cbd1f47433b ("freedreno/ir3: convert back to 32-bit values for half constant registers.")
v2: Move conversion up above fabs/fneg modifier handling as well.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
src/freedreno/ir3/ir3_cp.c