Replace IROUND_POS with _mesa_roundevenf
authorDylan Baker <dylan@pnwbakers.com>
Fri, 7 Sep 2018 21:44:05 +0000 (14:44 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 21 Apr 2020 18:09:03 +0000 (11:09 -0700)
commit64014c8302da52480643cb7711298153cfdb0d51
treeb95d0cc34255ceb05962582bfd5266b76088a2af
parent9d9a2819ee0e862f60abf50ba239a341b664845a
Replace IROUND_POS with _mesa_roundevenf

Which has the same behavior as long as you don't change the FPU rounding
mode. Other code in mesa makes the same assumption so it should be safe
to make that assumption more generally.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
src/mesa/drivers/x11/xm_api.c
src/mesa/swrast/s_aaline.c
src/mesa/swrast/s_aatriangle.c
src/util/imports.h