u_format: Fix clamping of overflow in 10F_11F_11F_REV to match GL specs.
authorEric Anholt <eric@anholt.net>
Wed, 26 Oct 2011 23:11:27 +0000 (16:11 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 28 Oct 2011 19:10:01 +0000 (12:10 -0700)
commit00d3716f4a91145609f50aa56de53e175d1c8b49
tree4fabb91f4d85b00cd3ba4b9d73427a03e457d411
parentb4d988bc9f36fddbe0cc92ea6e267d307f6d1112
u_format: Fix clamping of overflow in 10F_11F_11F_REV to match GL specs.

Fixes the 1000000.0 overflow cases of piglit
GL_EXT_packed_float/pack.c

Reviewed-by: Marek Ol ák <maraeo@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/auxiliary/util/u_format_r11g11b10f.h