From 4c94467e5fab6dc15ab41bcd99e4afeedd8f8b0c Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 11 Aug 2025 21:41:05 +0200 Subject: [PATCH] r600/sfn: add an unreachable if the creation of a fp64 group fails Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp index 5aa5767d796..5fda5ada7da 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp @@ -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;