nir: add nir_block::divergent to indicate a divergent entry condition
to be used by nir_opt_varyings Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28049>
This commit is contained in:
@@ -889,6 +889,14 @@ visit_block(nir_block *block, struct divergence_state *state)
|
||||
}
|
||||
}
|
||||
|
||||
bool divergent = state->divergent_loop_cf ||
|
||||
state->divergent_loop_continue ||
|
||||
state->divergent_loop_break;
|
||||
if (divergent != block->divergent) {
|
||||
block->divergent = divergent;
|
||||
has_changed = true;
|
||||
}
|
||||
|
||||
return has_changed;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user