From: Vinson Lee Date: Mon, 15 Jul 2019 05:58:33 +0000 (-0700) Subject: lima/ppir: Fix assert condition in ppir_codegen_encode_branch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1a55d95594dcf634508c4b65e9cbcadfc1e1bd0;p=mesa.git lima/ppir: Fix assert condition in ppir_codegen_encode_branch. Fixes: af0de6b91c0b ("lima/ppir: implement discard and discard_if") Reported-by: Coverity Scan Signed-off-by: Vinson Lee Reviewed-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/ir/pp/codegen.c b/src/gallium/drivers/lima/ir/pp/codegen.c index 49e91a87a38..09cf5e623bd 100644 --- a/src/gallium/drivers/lima/ir/pp/codegen.c +++ b/src/gallium/drivers/lima/ir/pp/codegen.c @@ -533,7 +533,7 @@ static void ppir_codegen_encode_branch(ppir_node *node, void *code) return; } - assert(node->op = ppir_op_branch); + assert(node->op == ppir_op_branch); branch = ppir_node_to_branch(node); b->branch.unknown_0 = 0x0;