Files
mesa/src/compiler
Boris Brezillon 199bea0fd8 nir: Fix i64tof32 lowering
The round-to-nearest-even implementation found in lower_2f() is incorrect
for any value having a significand that is not directly representable
and whose non-representable part lies between 1 and half the minimum
representable value. In this case, the significand is rounded up instead
of being rounded down.

Fixes: 936c58c8fc ("nir: Extend nir_lower_int64() to support i2f/f2i lowering")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6290>
2020-08-17 20:31:31 +00:00
..
2020-08-17 20:31:31 +00:00
2020-07-15 20:49:24 +00:00
2017-07-21 08:47:56 +03:00
2020-08-17 11:06:49 +00:00
2020-08-14 20:35:36 +00:00
2018-03-30 14:33:03 -06:00
2018-03-27 08:36:37 -04:00