diff --git a/src/amd/compiler/aco_lower_to_hw_instr.cpp b/src/amd/compiler/aco_lower_to_hw_instr.cpp index cdfb75892df..12f582be833 100644 --- a/src/amd/compiler/aco_lower_to_hw_instr.cpp +++ b/src/amd/compiler/aco_lower_to_hw_instr.cpp @@ -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. */