gallivm: Fixed erroneous optimisation in lp_build_min/max.
authorJames Benton <jbenton@vmware.com>
Fri, 18 May 2012 15:06:44 +0000 (16:06 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 21 May 2012 19:24:47 +0000 (20:24 +0100)
commita3d4af0c00a198bba00c0965131a14223d426dd4
treeaf3e4ad3e88e18dc6503e6f9c56e6decdd119f99
parentfdeb0394cbc737cefa36c6bf99cbd255d8899a9f
gallivm: Fixed erroneous optimisation in lp_build_min/max.

Previously assumed normalised was 0 to 1, but it can be -1 to 1
if type is signed.
Tested with lp_test_conv and lp_test_format, reduced errors.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c