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>
(cherry picked from commit 5dace41c10)
This commit is contained in:
Marcin Ślusarz 2022-04-13 14:37:15 +02:00 committed by Dylan Baker
parent 30a980fb94
commit 9a28aea2a2
2 changed files with 8 additions and 1 deletions

View file

@ -742,7 +742,7 @@
"description": "intel/compiler: invalidate metadata in brw_nir_initialize_mue",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "bc4f8c073a2cf35227df85a1edfce9848b9cdfae"
},

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