gallium/util: Switch util_float_to_half to _mesa_float_to_half()'s impl.
authorEric Anholt <eric@anholt.net>
Thu, 27 Jun 2019 23:04:42 +0000 (16:04 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Mar 2020 22:28:12 +0000 (22:28 +0000)
commit8b8af6d398a94cb07015c695fdfdb5c157aa72cf
tree36053f9d2c7c14ba0d12d3b5a5bacd247bd1a591
parent8e4e2cedcf53d0f9649d51fc3acccaada96172bb
gallium/util: Switch util_float_to_half to _mesa_float_to_half()'s impl.

The util_float_to_half() implementation was much smaller, but when trying
to switch _mesa_float_to_half to it, many testcases
(dEQP-VK.spirv_assembly.instruction.graphics.opquantize.*,
piglit.spec.arb_shading_language_packing.*packhalf2x16) start failing on
Intel.  Replace the broken impl so that people don't have to debug it
later.

Acked-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3699>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3699>
src/gallium/auxiliary/util/u_half.h