summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-26 17:57:01 -0600
committerBrian Paul <[email protected]>2008-09-26 17:57:01 -0600
commit55b65d3b42b8ba1ea1c5b5549b4629f3b20e7a97 (patch)
tree3fb54682e0e9260f9c0caac5997aa00f67e1e373 /src/gallium/drivers/cell
parent938e12c1caee7e34fcc6630f17f422ebdd824ec3 (diff)
cell: stub-out sin/cos function bodies to avoid trashing caller's stack for now
Diffstat (limited to 'src/gallium/drivers/cell')
-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 d1749565187..b57ad3f3b81 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
}