summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2008-05-16 17:35:47 -0400
committerZack Rusin <[email protected]>2008-05-17 13:58:44 -0400
commita7449d4d840148ccd9261b59e68d45e9d0d2be53 (patch)
treefb6ee368fe033fb24b907ed2d3639d2b430d3593
parent02e45b2dadd42c38247cb992a07eb520ac86519b (diff)
fix rsq
-rw-r--r--src/gallium/auxiliary/gallivm/soabuiltins.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/soabuiltins.c b/src/gallium/auxiliary/gallivm/soabuiltins.c
index 64c02aa9675..62c75f18f48 100644
--- a/src/gallium/auxiliary/gallivm/soabuiltins.c
+++ b/src/gallium/auxiliary/gallivm/soabuiltins.c
@@ -182,7 +182,7 @@ void rsq(float4 *res,
{
const float4 onevec = (float4) {1., 1., 1., 1.};
res[0] = onevec/sqrtvec(absvec(tmp0x));
- res[1] = res[0];
- res[2] = res[0];
- res[3] = res[0];
+ res[1] = onevec/sqrtvec(absvec(tmp0y));
+ res[2] = onevec/sqrtvec(absvec(tmp0z));
+ res[3] = onevec/sqrtvec(absvec(tmp0w));
}