From: Brian Paul Date: Fri, 26 Sep 2008 23:57:01 +0000 (-0600) Subject: cell: stub-out sin/cos function bodies to avoid trashing caller's stack for now X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55b65d3b42b8ba1ea1c5b5549b4629f3b20e7a97;p=mesa.git cell: stub-out sin/cos function bodies to avoid trashing caller's stack for now --- 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 }