From 6447bf4ccebddd848ca676583116f67db07b9e5b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 1 Aug 2023 08:30:33 -0400 Subject: [PATCH] agx: Stop setting registers after the shader Leftover from before live range splitting. Should be a no-op. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_register_allocate.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/asahi/compiler/agx_register_allocate.c b/src/asahi/compiler/agx_register_allocate.c index 081fd70396a..05a6a1cad8d 100644 --- a/src/asahi/compiler/agx_register_allocate.c +++ b/src/asahi/compiler/agx_register_allocate.c @@ -1162,19 +1162,6 @@ agx_ra(agx_context *ctx) assert(ctx->max_reg <= max_regs); - agx_foreach_instr_global(ctx, ins) { - agx_foreach_ssa_src(ins, s) { - unsigned v = ssa_to_reg[ins->src[s].value]; - agx_replace_src(ins, s, agx_register(v, ins->src[s].size)); - } - - agx_foreach_ssa_dest(ins, d) { - unsigned v = ssa_to_reg[ins->dest[d].value]; - ins->dest[d] = - agx_replace_index(ins->dest[d], agx_register(v, ins->dest[d].size)); - } - } - agx_foreach_instr_global_safe(ctx, ins) { /* Lower away RA pseudo-instructions */ agx_builder b = agx_init_builder(ctx, agx_after_instr(ins));