r600/sfn: add an unreachable if the creation of a fp64 group fails

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36860>
This commit is contained in:
Gert Wollny 2025-08-11 21:41:05 +02:00 committed by Marge Bot
parent ff6802687a
commit 4c94467e5f

View file

@ -2201,7 +2201,8 @@ emit_alu_fma_64bit(const nir_alu_instr& alu, EAluOp opcode, Shader& shader)
value_factory.src64(alu.src[1], 0, chan),
value_factory.src64(alu.src[2], 0, chan),
i < 2 ? AluInstr::write : AluInstr::empty);
group->add_instruction(ir);
if (!group->add_instruction(ir))
UNREACHABLE("Unable to emit group, likely because of a readport conflict\n");
}
shader.emit_instruction(group);
return true;