mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
nir/recompute_io_bases: don't use safe iterators
the pass doesn't remove anything Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38599>
This commit is contained in:
parent
4711e5954e
commit
18a338066b
1 changed files with 4 additions and 4 deletions
|
|
@ -79,8 +79,8 @@ nir_recompute_io_bases(nir_shader *nir, nir_variable_mode modes)
|
|||
BITSET_ZERO(outputs);
|
||||
|
||||
/* Gather the bitmasks of used locations. */
|
||||
nir_foreach_block_safe(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr(instr, block) {
|
||||
nir_variable_mode mode;
|
||||
nir_intrinsic_instr *intr = nir_get_io_intrinsic(instr, modes, &mode);
|
||||
if (!intr)
|
||||
|
|
@ -127,8 +127,8 @@ nir_recompute_io_bases(nir_shader *nir, nir_variable_mode modes)
|
|||
/* Renumber bases. */
|
||||
bool changed = false;
|
||||
|
||||
nir_foreach_block_safe(block, impl) {
|
||||
nir_foreach_instr_safe(instr, block) {
|
||||
nir_foreach_block(block, impl) {
|
||||
nir_foreach_instr(instr, block) {
|
||||
nir_variable_mode mode;
|
||||
nir_intrinsic_instr *intr = nir_get_io_intrinsic(instr, modes, &mode);
|
||||
if (!intr)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue