aco: update ctx.block when inserting discard block

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13432
Backport-to: 25.1
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35833>
This commit is contained in:
Rhys Perry
2025-06-30 14:25:17 +01:00
committed by Marge Bot
parent 329d47421b
commit 21c4400278
@@ -2427,6 +2427,7 @@ lower_to_hw_instr(Program* program)
discard_exit_block = discard_block;
}
block = &program->blocks[block_idx];
ctx.block = block;
/* sendmsg(dealloc_vgprs) releases scratch, so it isn't safe if there is an
* in-progress scratch store. */