gallivm: Updated lp_build_log2_approx to use a more accurate polynomial.
authorJames Benton <jbenton@vmware.com>
Thu, 5 Apr 2012 19:34:11 +0000 (20:34 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 5 Apr 2012 19:34:11 +0000 (20:34 +0100)
commitcf68959f99f372ef1c4f647e7a7438ab478314c9
treea83b6cc0c611884dd833f181301cb8c97b657553
parent7c639feb2f6697b5da94e81e7901436ce1620c66
gallivm: Updated lp_build_log2_approx to use a more accurate polynomial.

Tested with lp_test_arit with 100% passes and piglit tests with 100%
pass for log but some tests still fail for pow.

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