diff options
author | Paul Berry <[email protected]> | 2011-07-27 10:35:17 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-07-28 10:41:39 -0700 |
commit | fe33c886a79f49378e5719909a51e794b7bb1c38 (patch) | |
tree | 0d7b1afdfd2880523379933cff0c1c41b2799eba /src/mesa/swrast/s_context.c | |
parent | 0aed27ee37860ba332df776425d89d97ca1168b2 (diff) |
glsl: improve the accuracy of the radians() builtin function
The constant used in the radians() function didn't have enough
precision, causing a relative error of 1.676e-5, which is far worse
than the precision of 32-bit floats. This patch reduces the relative
error to 1.14e-9, which is the best we can do in 32 bits.
Fixes piglit tests {fs,vs}-radians-{float,vec2,vec3,vec4}.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_context.c')
0 files changed, 0 insertions, 0 deletions