summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/cell/spu/spu_funcs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_funcs.c b/src/gallium/drivers/cell/spu/spu_funcs.c
index d174956518..b57ad3f3b8 100644
--- a/src/gallium/drivers/cell/spu/spu_funcs.c
+++ b/src/gallium/drivers/cell/spu/spu_funcs.c
@@ -49,17 +49,27 @@
static vector float
spu_cos(vector float x)
{
+#if 0
static const float scale = 1.0 / (2.0 * M_PI);
x = x * spu_splats(scale); /* normalize */
return _cos8_v(x);
+#else
+ /* just pass-through to avoid trashing caller's stack */
+ return x;
+#endif
}
static vector float
spu_sin(vector float x)
{
+#if 0
static const float scale = 1.0 / (2.0 * M_PI);
x = x * spu_splats(scale); /* normalize */
return _sin8_v(x); /* 8-bit accuracy enough?? */
+#else
+ /* just pass-through to avoid trashing caller's stack */
+ return x;
+#endif
}