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.
This commit is contained in:
José Fonseca 2011-07-20 14:41:17 -07:00
parent ef1a2765a4
commit 47d6d44a23

View file

@ -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;