mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
agx: Track current_block
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11023>
This commit is contained in:
parent
0a7a6f0558
commit
f7918ebc82
2 changed files with 4 additions and 0 deletions
|
|
@ -732,6 +732,7 @@ emit_block(agx_context *ctx, nir_block *block)
|
|||
agx_block *blk = agx_create_block(ctx);
|
||||
list_addtail(&blk->link, &ctx->blocks);
|
||||
list_inithead(&blk->instructions);
|
||||
ctx->current_block = blk;
|
||||
|
||||
agx_builder _b = agx_init_builder(ctx, agx_after_block(blk));
|
||||
|
||||
|
|
|
|||
|
|
@ -321,6 +321,9 @@ typedef struct {
|
|||
/* I don't really understand how writeout ops work yet */
|
||||
bool did_writeout;
|
||||
|
||||
/* During instruction selection, for inserting control flow */
|
||||
agx_block *current_block;
|
||||
|
||||
/* Stats for shader-db */
|
||||
unsigned loop_count;
|
||||
unsigned spills;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue