intel/nir: rerun lower_tex if it lowers something
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 2 Sep 2023 15:53:13 +0000 (18:53 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 13:35:51 +0000 (13:35 +0000)
commit10e75aae1bddee9795b1ff04ffd656b0da79b5b5
tree95c2ac329182c417cdd202f62ac540063f81c91d
parentc4506b5af5ed548a854f554644c1071ee753c4ec
intel/nir: rerun lower_tex if it lowers something

nir_lower_tex can lower tg4 coords into tg4 offset which on DG2+ we
also need to lower into constant offsets.

Unfortunately the nir_lower_tex pass is not able to lower the
instructions it itself generates, so the easy fix for when
nir_lower_tex lowers tg4 coords into tg4 offsets is to rerun the pass.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9735
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25015>
src/intel/compiler/brw_nir.c