mesa: Replace F_TO_I() with _mesa_lroundevenf().
authorMatt Turner <mattst88@gmail.com>
Thu, 25 Jun 2015 23:47:52 +0000 (16:47 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 3 Aug 2015 16:24:51 +0000 (09:24 -0700)
commit594fc0f85953d11c455e7ab549308a773b312d70
treef23cb5f74f95e7f97fcc8e5c01b166c9a90edde9
parentf55c408067a3ea3529fcf7cbbaa1a041a4a8849d
mesa: Replace F_TO_I() with _mesa_lroundevenf().

I'm not sure what the true meaning of "The rounding mode may vary." is,
but it is the case that the IROUND() path rounds differently than the
other paths (and does it wrong, at that).

Like _mesa_roundeven{f,}(), just add an use _mesa_lroundeven{f,}() that
has known semantics.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/format_utils.h
src/mesa/main/imports.h
src/mesa/main/macros.h
src/mesa/main/pack.c
src/mesa/main/pixeltransfer.c
src/util/rounding.h