Mesa (main): nir: add 16 and 64 bit fisnormal lowering
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 28 19:32:20 UTC 2022
Module: Mesa
Branch: main
Commit: a2c9e1cb50937577f918e643039f74a54585e699
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2c9e1cb50937577f918e643039f74a54585e699
Author: Karol Herbst <kherbst at redhat.com>
Date: Sun Apr 24 21:55:34 2022 +0200
nir: add 16 and 64 bit fisnormal lowering
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16206>
---
src/compiler/nir/nir_opt_algebraic.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py
index eec10407842..d0873b0e1aa 100644
--- a/src/compiler/nir/nir_opt_algebraic.py
+++ b/src/compiler/nir/nir_opt_algebraic.py
@@ -2419,7 +2419,9 @@ for op in ['ineg', 'iabs', 'inot', 'isign']:
]
optimizations.extend([
- (('fisnormal', 'a at 32'), ('ult', 0x1ffffff, ('iadd', ('ishl', a, 1), 0x1000000)), 'options->lower_fisnormal')
+ (('fisnormal', 'a at 16'), ('ult', 0xfff, ('iadd', ('ishl', a, 1), 0x800)), 'options->lower_fisnormal'),
+ (('fisnormal', 'a at 32'), ('ult', 0x1ffffff, ('iadd', ('ishl', a, 1), 0x1000000)), 'options->lower_fisnormal'),
+ (('fisnormal', 'a at 64'), ('ult', 0x3fffffffffffff, ('iadd', ('ishl', a, 1), 0x20000000000000)), 'options->lower_fisnormal')
])
# This section contains optimizations to propagate downsizing conversions of
More information about the mesa-commit
mailing list