diff options
author | Stéphane Marchesin <[email protected]> | 2011-06-28 12:07:11 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-06-28 12:07:11 -0700 |
commit | fe36bc0c41ee7fd3aa7b364a8301d50613644f71 (patch) | |
tree | ca720741fe3febe0474ee27ca58165bf698122d9 /src/gallium/drivers | |
parent | bd1ee764421ed23eb12c9d8be2dabe97100ad080 (diff) |
i915g: Fix comment about sin/cos constants.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/i915/i915_fpc_translate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 41c94e66a51..cae349e62c3 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -85,14 +85,14 @@ static const float scs_cos_constants[4] = { 1.0, -1.0f / (6 * 5 * 4 * 3 * 2 * 1) }; -/* 1, -1/3!, 1/5!, -1/7! */ +/* 2*pi, -(2*pi)^3/3!, (2*pi)^5/5!, -(2*pi)^7/7! */ static const float sin_constants[4] = { 2.0 * M_PI, -8.0f * M_PI * M_PI * M_PI / (3 * 2 * 1), 32.0f * M_PI * M_PI * M_PI * M_PI * M_PI / (5 * 4 * 3 * 2 * 1), -128.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (7 * 6 * 5 * 4 * 3 * 2 * 1) }; -/* 1, -1/2!, 1/4!, -1/6! */ +/* 1, -(2*pi)^2/2!, (2*pi)^4/4!, -(2*pi)^6/6! */ static const float cos_constants[4] = { 1.0, -4.0f * M_PI * M_PI / (2 * 1), 16.0f * M_PI * M_PI * M_PI * M_PI / (4 * 3 * 2 * 1), |