summaryrefslogtreecommitdiffstats
path: root/src/mapi/table.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-12-09 09:34:50 -0800
committerJason Ekstrand <[email protected]>2016-12-09 18:38:21 -0800
commitda1c49171d0df185545cfbbd600e287f7c6160fa (patch)
treef344d29affe732755dc68fdca2d06676e0e566e4 /src/mapi/table.h
parent9807f502eb7a023be619a14119388b2a43271b0e (diff)
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 <[email protected]> Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/mapi/table.h')
0 files changed, 0 insertions, 0 deletions