mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
aco/isel: assert that terminate intrinsics don't appear in loops
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33479>
This commit is contained in:
parent
46f6c73d36
commit
7adad4fc0e
2 changed files with 3 additions and 2 deletions
|
|
@ -8804,6 +8804,7 @@ visit_intrinsic(isel_context* ctx, nir_intrinsic_instr* instr)
|
|||
}
|
||||
case nir_intrinsic_terminate:
|
||||
case nir_intrinsic_terminate_if: {
|
||||
assert(ctx->cf_info.parent_loop.exit == NULL && "Terminate must not appear in loops.");
|
||||
Operand cond = Operand::c32(-1u);
|
||||
if (instr->intrinsic == nir_intrinsic_terminate_if) {
|
||||
Temp src = get_ssa_temp(ctx, instr->src[0].ssa);
|
||||
|
|
|
|||
|
|
@ -61,8 +61,8 @@ struct exec_info {
|
|||
|
||||
struct cf_context {
|
||||
struct {
|
||||
unsigned header_idx;
|
||||
Block* exit;
|
||||
unsigned header_idx = 0;
|
||||
Block* exit = NULL;
|
||||
bool has_divergent_continue = false;
|
||||
bool has_divergent_break = false;
|
||||
} parent_loop;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue