aco: fix half_pi constant for 16-bit fsin/fcos
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 15 Jun 2020 13:21:03 +0000 (14:21 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 18:24:22 +0000 (18:24 +0000)
commitdd233455679fe0f0ae441cc5ef3dd366132951e7
tree6e2f0c6bf00a3c820b4946747664022a43bf5a3d
parent9b69ed0bb9503befd73e7bfa4867dc431d01e2ee
aco: fix half_pi constant for 16-bit fsin/fcos

This worked because the optimizer didn't consider that the 16-bit
instruction would interpret the inline constant differently. This will
change in the next commit.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
src/amd/compiler/aco_instruction_selection.cpp