nir: slight correction to cube_face_coord constant folding
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 18 Jun 2020 15:41:00 +0000 (16:41 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 10:28:40 +0000 (10:28 +0000)
commit9a389322c444846e22bd2244c8df1c120aa47706
treefa51b3f55ee5301d6a6710f333b2038b13d05cb1
parentc95d258d1bcde8d29e28aa182050a5da33a74456
nir: slight correction to cube_face_coord constant folding

ACO does the division with a rcp and then a multiplication.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5547>
src/compiler/nir/nir_opcodes.py