diff options
author | Jason Ekstrand <[email protected]> | 2016-12-09 09:33:05 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-12-09 18:38:21 -0800 |
commit | 9807f502eb7a023be619a14119388b2a43271b0e (patch) | |
tree | c1e87001a380e6bd56608799a5ef7fe849923a27 /CleanSpec.mk | |
parent | efe9d1cde3340d3a9d17e5560b609a4fb839d43d (diff) |
glsl: Use a simpler formula for tanh
The formula we have used in the past is a trivial reduction from the
definition by simply multiplying both the numerator and denominator of the
formula by 2. However, multiplying by e^x, you can further reduce it.
This allows us to get rid of one side of the clamp and two of exponential
functions which should make it faster. The new formula still passes the
dEQP precision tests for tanh so it should be fine.
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'CleanSpec.mk')
0 files changed, 0 insertions, 0 deletions