gallivm: Fix lp_build_float_to_half.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 29 Nov 2012 16:52:06 +0000 (16:52 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 29 Nov 2012 16:52:42 +0000 (16:52 +0000)
commit9c9c18a395d9b70ef76ca694a67743f0338a4665
treed64a8bb124d0142366d89388c186d546625546de
parentb5918d8f1d0d963e58ede1f82ecd836a815cfd89
gallivm: Fix lp_build_float_to_half.

The current implementation was close by not fully correct: several
operations that should be done in floating point were being done in
integer.

Fixes piglit fbo-clear-formats GL_ARB_texture_float

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_conv.c