agx: Introduce worklist infrastructure

Using the common NIR stuff.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig
2022-05-01 15:53:35 -04:00
parent e414a8c16f
commit 590df764d6
3 changed files with 18 additions and 8 deletions

View File

@@ -1728,11 +1728,9 @@ agx_compile_shader_nir(nir_shader *nir,
for (unsigned i = 0; i < 8; ++i)
agx_trap(&_b);
unsigned block_source_count = 0;
/* Name blocks now that we're done emitting so the order is consistent */
/* Index blocks now that we're done emitting so the order is consistent */
agx_foreach_block(ctx, block)
block->name = block_source_count++;
block->index = ctx->num_blocks++;
if (agx_debug & AGX_DBG_SHADERS && !skip_internal)
agx_print_shader(ctx, stdout);