aco: keep track of temporaries' regclasses in the Program

A future change will switch the liveness sets to bit vectors, which don't
contain regclass information.

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/6733>
This commit is contained in:
Rhys Perry
2020-09-14 20:58:33 +01:00
committed by Marge Bot
parent f007115e3b
commit ec2185c598
10 changed files with 57 additions and 49 deletions
@@ -1152,7 +1152,7 @@ void init_context(isel_context *ctx, nir_shader *shader)
ctx->program->config->spi_ps_input_addr = spi_ps_inputs;
for (unsigned i = 0; i < impl->ssa_alloc; i++)
allocated[i] = Temp(ctx->program->allocateId(), allocated[i].regClass());
allocated[i] = ctx->program->allocateTmp(allocated[i].regClass());
ctx->allocated.reset(allocated.release());
ctx->cf_info.nir_to_aco.reset(nir_to_aco.release());