From 2f3ce9b1d0c5ebf37c8f33d7cfa67d6b3a23a17b Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 8 May 2020 17:46:49 +0200 Subject: [PATCH] r600/sfn: assert when alu dest is missing Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp b/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp index 4143b9c52d7..c059749afd0 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp @@ -56,6 +56,7 @@ AluInstruction::AluInstruction(EAluOp opcode, PValue dest, m_bank_swizzle(alu_vec_unknown), m_cf_type(cf_alu) { + assert(dest); m_src.swap(src); for (auto f : flags) m_flags.set(f); -- 2.30.2