nir/opt_offsets: Also apply the max offset to top-level constant folding.
authorEmma Anholt <emma@anholt.net>
Tue, 11 Jan 2022 18:23:51 +0000 (10:23 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Jan 2022 22:28:34 +0000 (22:28 +0000)
commit645ca56425a54ce56781f2650f2990cd4d50b6a1
tree30d07d43ea1b1c3e006f0224f0d4e66c14a48658
parentec4b9909f040fff083ff3e787270ab713f8662fe
nir/opt_offsets: Also apply the max offset to top-level constant folding.

nir_to_tgsi wants this for disabling folding into shared var accesses at
all.

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