diff options
author | José Fonseca <[email protected]> | 2011-07-20 14:41:17 -0700 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-07-22 18:52:09 -0700 |
commit | 47d6d44a231b811f1bba05478a6bbfb1e3fdb27b (patch) | |
tree | 0d5102bb0398df73372073c27f4c3b13245f778f /src/gallium/auxiliary | |
parent | ef1a2765a45c03b3bf7b5994197a611bcef96e0c (diff) |
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.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | 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 06e5debe4a3..fce4685cc2d 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; |