Fix promotion of floats to doubles
authorAlbert Astals Cid <aacid@kde.org>
Wed, 26 Feb 2020 22:05:51 +0000 (23:05 +0100)
committerAlbert Astals Cid <tsdgeos@yahoo.es>
Sat, 18 Apr 2020 19:55:45 +0000 (19:55 +0000)
commit06c5875fd6b8fa387a103bd0c6fad4fa5ef847a5
tree0c8f53e84198b1e808e9aef4100a47996d721665
parent94cb129d514b748db1342c6208ae4b7390bd33da
Fix promotion of floats to doubles

Use the f variants of the math functions if the input parameter is a
float, saves converting from float to double and running the double
variant of the math function for gaining no precision at all

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3969>
12 files changed:
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/si_cmd_buffer.c
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/r600/sb/sb_expr.cpp
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/state_trackers/xa/xa_renderer.c
src/intel/common/gen_l3_config.c
src/mesa/drivers/dri/nouveau/nv10_state_tnl.c
src/mesa/program/program.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/swrast/s_texfilter.c