aco: remove nir_to_aco
This isn't used anymore Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29121>
This commit is contained in:
@@ -10241,9 +10241,6 @@ emit_loop_continue(isel_context* ctx)
|
||||
void
|
||||
visit_jump(isel_context* ctx, nir_jump_instr* instr)
|
||||
{
|
||||
/* visit_block() would usually do this but divergent jumps updates ctx->block */
|
||||
ctx->cf_info.nir_to_aco[instr->instr.block->index] = ctx->block->index;
|
||||
|
||||
switch (instr->type) {
|
||||
case nir_jump_break: emit_loop_break(ctx); break;
|
||||
case nir_jump_continue: emit_loop_continue(ctx); break;
|
||||
@@ -10279,9 +10276,6 @@ visit_block(isel_context* ctx, nir_block* block)
|
||||
default: isel_err(instr, "Unknown NIR instr type");
|
||||
}
|
||||
}
|
||||
|
||||
if (!ctx->cf_info.parent_loop.has_divergent_branch)
|
||||
ctx->cf_info.nir_to_aco[block->index] = ctx->block->index;
|
||||
}
|
||||
|
||||
static bool
|
||||
|
@@ -65,7 +65,6 @@ struct isel_context {
|
||||
* and parent_if.is_divergent==false. Called _break but it's also used for
|
||||
* loop continues. */
|
||||
bool exec_potentially_empty_break = false;
|
||||
std::unique_ptr<unsigned[]> nir_to_aco; /* NIR block index to ACO block index */
|
||||
} cf_info;
|
||||
|
||||
/* NIR range analysis. */
|
||||
|
@@ -300,8 +300,6 @@ init_context(isel_context* ctx, nir_shader* shader)
|
||||
ctx->program->allocateRange(impl->ssa_alloc);
|
||||
RegClass* regclasses = ctx->program->temp_rc.data() + ctx->first_temp_id;
|
||||
|
||||
std::unique_ptr<unsigned[]> nir_to_aco{new unsigned[impl->num_blocks]()};
|
||||
|
||||
/* TODO: make this recursive to improve compile times */
|
||||
bool done = false;
|
||||
while (!done) {
|
||||
@@ -604,8 +602,6 @@ init_context(isel_context* ctx, nir_shader* shader)
|
||||
ctx->program->config->spi_ps_input_ena = ctx->program->info.ps.spi_ps_input_ena;
|
||||
ctx->program->config->spi_ps_input_addr = ctx->program->info.ps.spi_ps_input_addr;
|
||||
|
||||
ctx->cf_info.nir_to_aco = std::move(nir_to_aco);
|
||||
|
||||
/* align and copy constant data */
|
||||
while (ctx->program->constant_data.size() % 4u)
|
||||
ctx->program->constant_data.push_back(0);
|
||||
|
Reference in New Issue
Block a user