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:

committed by
Alyssa Rosenzweig

parent
0a7a6f0558
commit
f7918ebc82
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user