From 8f0160ca249fcfda676b2bb42dc2726edba50f9a Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 14 Jul 2019 18:21:57 -0700 Subject: [PATCH] lima/ppir: Fix assert condition in ppir_codegen_encode_discard Fixes: af0de6b91c0b ("lima/ppir: implement discard and discard_if") Reviewed-by: Qiang Yu Signed-off-by: Vasily Khoruzhick --- src/gallium/drivers/lima/ir/pp/codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/lima/ir/pp/codegen.c b/src/gallium/drivers/lima/ir/pp/codegen.c index d568e1dda36..3b74f2c6afe 100644 --- a/src/gallium/drivers/lima/ir/pp/codegen.c +++ b/src/gallium/drivers/lima/ir/pp/codegen.c @@ -516,7 +516,7 @@ static void ppir_codegen_encode_const(ppir_const *constant, uint16_t *code) static void ppir_codegen_encode_discard(ppir_node *node, void *code) { ppir_codegen_field_branch *b = code; - assert(node->op = ppir_op_discard); + assert(node->op == ppir_op_discard); b->discard.word0 = PPIR_CODEGEN_DISCARD_WORD0; b->discard.word1 = PPIR_CODEGEN_DISCARD_WORD1; -- 2.30.2