nir/opt_offsets: Disable unsigned wrap checks on non-native-integers HW.
authorEmma Anholt <emma@anholt.net>
Thu, 30 Dec 2021 00:50:06 +0000 (16:50 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Jan 2022 22:28:34 +0000 (22:28 +0000)
commitec4b9909f040fff083ff3e787270ab713f8662fe
treef47b869014b1494dbeb6ece2be8e5026c0dda0b6
parent700d2fbd0ab3bde9b87a28b14addaac9bb4520eb
nir/opt_offsets: Disable unsigned wrap checks on non-native-integers HW.

Since we don't have 32-bit ints, these checks for 32-bit unsigned wrapping
don't help and just reduce optimization opportunities (particularly for
DX9 addressing math).

Doesn't affect any current consumers.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14309>
src/compiler/nir/nir_opt_offsets.c