diff options
author | Jason Ekstrand <[email protected]> | 2015-01-26 09:40:25 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-26 11:25:02 -0800 |
commit | dd74369a0a501be7c772c926c62ab1185bf5996f (patch) | |
tree | 7b3b926739c65b0982f38bb9e813a33ba9a8d9a8 /src/glsl/ir_hierarchical_visitor.cpp | |
parent | 9bd28fe3a305605168417234a163b6702bbde9d6 (diff) |
nir/opcodes: Don't go through doubles when constant-folding iabs
Previously, we called the abs() function in math.h. However, this involves
unnecessarily going through double. This commit changes it to use integers
directly with a ternary.
Reviewed-by: Connor Abbott <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.cpp')
0 files changed, 0 insertions, 0 deletions