summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-12-09 09:34:50 -0800
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-15 16:46:28 +0000
commitfb9f0a1197e10f9b1c727b5b2956f36827308ad1 (patch)
treed2d27d5e8ed04b9be2ae7d0062e45a229ebaf140 /src/mesa/main/fbobject.c
parent41c688a6c31ac5b985a3318e082f78103f061977 (diff)
downloadexternal_mesa3d-fb9f0a1197e10f9b1c727b5b2956f36827308ad1.zip
external_mesa3d-fb9f0a1197e10f9b1c727b5b2956f36827308ad1.tar.gz
external_mesa3d-fb9f0a1197e10f9b1c727b5b2956f36827308ad1.tar.bz2
spirv: Use a simpler and more correct implementaiton of tanh()
The new implementation is more correct because it clamps the incoming value to 10 to avoid floating-point overflow. It also uses a much reduced version of the formula which only requires 1 exp() rather than 2. This fixes all of the dEQP-VK.glsl.builtin.precision.tanh.* tests. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "13.0" <mesa-dev@lists.freedesktop.org> (cherry picked from commit da1c49171d0df185545cfbbd600e287f7c6160fa)
Diffstat (limited to 'src/mesa/main/fbobject.c')
0 files changed, 0 insertions, 0 deletions