From: Gert Wollny Date: Fri, 8 May 2020 15:46:49 +0000 (+0200) Subject: r600/sfn: assert when alu dest is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f3ce9b1d0c5ebf37c8f33d7cfa67d6b3a23a17b;p=mesa.git r600/sfn: assert when alu dest is missing Signed-off-by: Gert Wollny Reviewed-by: Reviewed-by: Dave Airlie Part-of: --- 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);