Mesa (master): gallivm: Increase lp_build_rsqrt() precision.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sat Jul 23 01:52:31 UTC 2011
Module: Mesa
Branch: master
Commit: 47d6d44a231b811f1bba05478a6bbfb1e3fdb27b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=47d6d44a231b811f1bba05478a6bbfb1e3fdb27b
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Jul 20 14:41:17 2011 -0700
gallivm: Increase lp_build_rsqrt() precision.
Add an iteration step, which makes rqsqrt precision go from 12bits to
24, and fixes RSQ/NRM test case of PSPrecision/VSPrevision DCTs.
There are no uses of this function outside shader translation.
---
src/gallium/auxiliary/gallivm/lp_bld_arit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index 06e5deb..fce4685 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@ -1645,7 +1645,7 @@ lp_build_rsqrt(struct lp_build_context *bld,
assert(type.floating);
if (util_cpu_caps.has_sse && type.width == 32 && type.length == 4) {
- const unsigned num_iterations = 0;
+ const unsigned num_iterations = 1;
LLVMValueRef res;
unsigned i;
More information about the mesa-commit
mailing list