mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
nir/foreach_block: Return false if the callback on the last block fails
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
49911cf4db
commit
07556442a7
1 changed files with 1 additions and 3 deletions
|
|
@ -1660,9 +1660,7 @@ nir_foreach_block(nir_function_impl *impl, nir_foreach_block_cb cb, void *state)
|
|||
return false;
|
||||
}
|
||||
|
||||
cb(impl->end_block, state);
|
||||
|
||||
return true;
|
||||
return cb(impl->end_block, state);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue