nir/lower_explicit_io: fix metadata preserve

This pass can insert if blocks, therefore no dominance/block_index for
you.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19818>
(cherry picked from commit 723b15fb75)
This commit is contained in:
Lionel Landwerlin 2022-11-16 15:53:26 +02:00 committed by Dylan Baker
parent c061e1b46d
commit 205767d5ef
2 changed files with 2 additions and 3 deletions

View file

@ -1183,7 +1183,7 @@
"description": "nir/lower_explicit_io: fix metadata preserve",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2288,8 +2288,7 @@ nir_lower_explicit_io_impl(nir_function_impl *impl, nir_variable_mode modes,
}
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
nir_metadata_preserve(impl, nir_metadata_none);
} else {
nir_metadata_preserve(impl, nir_metadata_all);
}