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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user