mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nir/phi_builder: Adjust valid_metadata assert
so we can add more metadata to nir_metadata_control_flow. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36184>
This commit is contained in:
parent
ee8d448241
commit
cd06366ca2
1 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,8 @@ nir_phi_builder_create(nir_function_impl *impl)
|
|||
pb->shader = impl->function->shader;
|
||||
pb->impl = impl;
|
||||
|
||||
assert(impl->valid_metadata & (nir_metadata_control_flow));
|
||||
assert(impl->valid_metadata & (nir_metadata_block_index |
|
||||
nir_metadata_dominance));
|
||||
|
||||
pb->num_blocks = impl->num_blocks;
|
||||
pb->blocks = ralloc_array(pb, nir_block *, pb->num_blocks);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue