diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index e5cbfaf95e0..731f7e8dbe2 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -334,6 +334,11 @@ typedef struct { /* I don't really understand how writeout ops work yet */ bool did_writeout; + /* Number of nested control flow structures within the innermost loop. Since + * NIR is just loop and if-else, this is the number of nested if-else + * statements in the loop */ + unsigned loop_nesting; + /* During instruction selection, for inserting control flow */ agx_block *current_block;