mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
nir: Fix preseved metadata in sort_unstructured_blocks
Fixes: c859ea5783 ("nir: Add a sort_unstructured_blocks() helper")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38354>
This commit is contained in:
parent
3858a6a696
commit
8db66767a9
1 changed files with 2 additions and 2 deletions
|
|
@ -968,7 +968,7 @@ nir_sort_unstructured_blocks(nir_function_impl *impl)
|
|||
|
||||
ralloc_free(blocks);
|
||||
|
||||
/* Dominance is toast but we indexed blocks as part of this pass. */
|
||||
impl->valid_metadata &= nir_metadata_dominance;
|
||||
/* Most metadata is toast but we indexed blocks as part of this pass. */
|
||||
impl->valid_metadata &= nir_metadata_live_defs;
|
||||
impl->valid_metadata |= nir_metadata_block_index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue