summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorHaixia Shi <[email protected]>2016-12-08 17:41:02 -0800
committerJason Ekstrand <[email protected]>2016-12-09 09:14:20 -0800
commitd4983390a869c3051929858a8b783be53d46b722 (patch)
treec7c959e6a37183dc448915ad3a949d0fec4a9a0b /m4
parent7aea08667c673713e1f419539e788eedeea047cb (diff)
compiler/glsl: fix precision problem of tanh
Clamp input scalar value to range [-10, +10] to avoid precision problems when the absolute value of input is too large. Fixes dEQP-GLES3.functional.shaders.builtin_functions.precision.tanh.* test failures. v2: added more explanation in the comment. v3: fixed a typo in the comment. Signed-off-by: Haixia Shi <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions