diff options
author | Thomas Helland <[email protected]> | 2015-08-06 13:36:05 +0200 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-08-18 11:34:44 -0700 |
commit | 49d0a36bd6593ce09486678a7bf3d500af5e265c (patch) | |
tree | c3f67f0536192a8487c210fd52b6261cf68ba67f /src/glsl/Makefile.sources | |
parent | a39167d5949c76dfb48994caead4b59ab5f80318 (diff) |
nir: Simplify feq(fneg(a), a)) -> feq(a, 0.0)
The positive and negative value of a float can only
be equal to each other if it is -0.0f and 0.0f.
This is safe for Nan and Inf, as -Nan != Nan, and -Inf != Inf
This gives no changes in my shader-db
Signed-off-by: Thomas Helland <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glsl/Makefile.sources')
0 files changed, 0 insertions, 0 deletions