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:
Alyssa Rosenzweig
2021-05-23 17:27:26 -04:00
committed by Alyssa Rosenzweig
parent 0a7a6f0558
commit f7918ebc82
2 changed files with 4 additions and 0 deletions

View File

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