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:

committed by
Alyssa Rosenzweig

parent
8454d08aa3
commit
4fe03cf97c
@@ -334,6 +334,11 @@ typedef struct {
|
|||||||
/* I don't really understand how writeout ops work yet */
|
/* I don't really understand how writeout ops work yet */
|
||||||
bool did_writeout;
|
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 */
|
/* During instruction selection, for inserting control flow */
|
||||||
agx_block *current_block;
|
agx_block *current_block;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user