r600/sfn: assert when alu dest is missing
authorGert Wollny <gert.wollny@collabora.com>
Fri, 8 May 2020 15:46:49 +0000 (17:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 07:52:13 +0000 (07:52 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>

src/gallium/drivers/r600/sfn/sfn_instruction_alu.cpp

index 4143b9c52d7d1bf1d5797202ce238ce911806897..c059749afd0e220d2ee5f9b9f9eba94751630508 100644 (file)
@@ -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);