diff options
author | Matt Turner <[email protected]> | 2015-05-18 14:59:13 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-05-22 11:26:36 -0700 |
commit | 5614bcc416cf2ff1d816d52198e644565ca23bcd (patch) | |
tree | 41e8a8e7e8b0981d3f44eca5f316e9bf082b7d2e /Android.common.mk | |
parent | a21d23e191696ca130fd63617b8d177055b73dda (diff) |
nir: Remove sRGB colorspace conversion round-trip.
Some shaders in Civilization V and Beyond Earth do
pow(pow(x, 2.2), 0.454545)
which is converting to and from sRGB colorspace.
A more general rule that replaces pow(pow(a, b), c) with pow(a, b * c)
actually regresses two shaders in Sun Temple in which the result of the
inner pow is used twice, once by another pow and once by another
instruction. Also, since 2.2 * 0.454545 isn't exactly one, the more
general pattern would have still left us with a pow, and I'm 2.2 *
0.454545 percent sure that's not what they want.
instructions in affected programs: 934 -> 886 (-5.14%)
helped: 16
Diffstat (limited to 'Android.common.mk')
0 files changed, 0 insertions, 0 deletions