Re: [Mesa-dev] [PATCH (gles3) 06/20] mesa: Remove rounding bias in _mesa_float_to_half()

2013-01-22 Thread Paul Berry
On 21 January 2013 00:49, Chad Versace chad.vers...@linux.intel.com wrote: Not all float32 values can be exactly represented as a float16. _mesa_float_to_half() rounded such intermediate float32 values to zero by truncating unrepresentable bits in the mantissa. This behavior is bia Sentence

[Mesa-dev] [PATCH (gles3) 06/20] mesa: Remove rounding bias in _mesa_float_to_half()

2013-01-21 Thread Chad Versace
Not all float32 values can be exactly represented as a float16. _mesa_float_to_half() rounded such intermediate float32 values to zero by truncating unrepresentable bits in the mantissa. This behavior is bia This patch improves _mesa_float_to_half() by rounding intermediate float32 values to the