commit | 5e841e8b4fd689c50e5ff870ccd64788c6181c9e | [log] [tgz] |
---|---|---|
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | Fri Jan 10 22:59:54 2020 +0100 |
committer | Marge Bot <eric+marge@anholt.net> | Mon Aug 24 10:02:47 2020 +0000 |
tree | e32c46047f5a88f467e6e083070d7c26e969cd19 | |
parent | 9e5e3be412271ff700c9ad7c0c51453ea1e95007 [diff] |
nir: add iabs-lowering code Microsoft's DXIL is based on LLVM, which doesn't have an integer ABS opcode, but instead needs it lowered to NEG + MAX. We need to do this with an option, to prevent an already existing optimization rule from undoing this. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5211>