agx: Add inner loop nesting count field

Needed for proper handling of break/continue with nested if-else.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11023>
This commit is contained in:
Alyssa Rosenzweig
2021-05-26 19:46:59 -04:00
committed by Alyssa Rosenzweig
parent 8454d08aa3
commit 4fe03cf97c

View File

@@ -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;