diff options
author | Francisco Jerez <[email protected]> | 2016-03-02 23:50:04 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-03-03 21:31:22 -0800 |
commit | a6046d217d14130a46f6ffe42992fd745551a928 (patch) | |
tree | 0c58db5ec1f9bfd2c99ebc10e27afb9ec6537f5e /src/mesa | |
parent | 2795fbcae302cd8821b23821ebf8a2b256ff10d5 (diff) |
glsl: Improve the accuracy of the acos() approximation.
The adjusted polynomial coefficients come from the numerical
minimization of the L2 norm of the relative error. The old
coefficients would give a maximum relative error of about 15000 ULP in
the neighborhood around acos(x) = 0, the new ones give a relative
error bounded by less than 2000 ULP in the same neighborhood.
Fixes four dEQP subtests:
dEQP-GLES31.functional.shaders.builtin_functions.precision.acos.
highp_compute.{scalar,vec2,vec3,vec4}
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions