intel/compiler: invalidate metadata in brw_nir_initialize_mue

New "if" blocks may have been inserted.

Fixes: bc4f8c073a ("intel/compiler: inject MUE initialization")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15924>
This commit is contained in:
Marcin Ślusarz 2022-04-13 14:37:15 +02:00 committed by Marge Bot
parent 4fddef33d5
commit 5dace41c10
1 changed files with 7 additions and 0 deletions

View File

@ -584,6 +584,13 @@ brw_nir_initialize_mue(nir_shader *nir,
nir_scoped_barrier(&b, NIR_SCOPE_WORKGROUP, NIR_SCOPE_WORKGROUP,
NIR_MEMORY_ACQ_REL, nir_var_shader_out);
}
if (remaining) {
nir_metadata_preserve(entrypoint, nir_metadata_none);
} else {
nir_metadata_preserve(entrypoint, nir_metadata_block_index |
nir_metadata_dominance);
}
}
static bool