Mesa (master): lima/ppir: Fix assert condition in ppir_codegen_encode_branch.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 16 00:38:48 UTC 2019
Module: Mesa
Branch: master
Commit: d1a55d95594dcf634508c4b65e9cbcadfc1e1bd0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1a55d95594dcf634508c4b65e9cbcadfc1e1bd0
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sun Jul 14 22:58:33 2019 -0700
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 <vlee at freedesktop.org>
Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
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 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;
More information about the mesa-commit
mailing list