projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
457378e
)
gallivm: Fix and enable the extra Newton/Raphson step in lp_build_rcp().
author
José Fonseca
<jfonseca@vmware.com>
Wed, 11 Aug 2010 17:44:17 +0000
(18:44 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 11 Aug 2010 17:45:26 +0000
(18:45 +0100)
Thanks to Michal for spotting this.
src/gallium/auxiliary/gallivm/lp_bld_arit.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_arit.c
b/src/gallium/auxiliary/gallivm/lp_bld_arit.c
index cf2feeb16339dcdd8cf8f4a48164faacdbb6fb8c..816ee701194fa02152a1119a8865344d1cea7967 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_arit.c
@@
-1274,7
+1274,7
@@
lp_build_rcp(struct lp_build_context *bld,
* when we have a better system in place to track minimum precision.
*/
-#if
0
+#if
1
/*
* Do one Newton-Raphson step to improve precision:
*
@@
-1291,7
+1291,7
@@
lp_build_rcp(struct lp_build_context *bld,
res = LLVMBuildFSub(bld->builder, two, res, "");
res = LLVMBuildFMul(bld->builder, res, rcp_a, "");
- return r
cp_a
;
+ return r
es
;
#else
return lp_build_intrinsic_unary(bld->builder, "llvm.x86.sse.rcp.ps", lp_build_vec_type(type), a);
#endif