aco: add and use Program::progress
This is used when printing the program and to avoid updating register demand during post-RA liveness analysis. 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/10315>
This commit is contained in:
@@ -2625,6 +2625,8 @@ void register_allocation(Program *program, std::vector<IDSet>& live_out_per_bloc
|
||||
/* num_gpr = rnd_up(max_used_gpr + 1) */
|
||||
program->config->num_vgprs = get_vgpr_alloc(program, ctx.max_used_vgpr + 1);
|
||||
program->config->num_sgprs = get_sgpr_alloc(program, ctx.max_used_sgpr + 1);
|
||||
|
||||
program->progress = CompilationProgress::after_ra;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user