summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/ir/pp
diff options
context:
space:
mode:
authorVasily Khoruzhick <[email protected]>2019-07-14 18:21:57 -0700
committerVasily Khoruzhick <[email protected]>2019-07-14 19:48:55 -0700
commit8f0160ca249fcfda676b2bb42dc2726edba50f9a (patch)
tree8d0ed07b237dac3f9be44e0442b6f937d6bdff7e /src/gallium/drivers/lima/ir/pp
parent4e102a6de72667c1177e7c484d72bf1d94d028ca (diff)
lima/ppir: Fix assert condition in ppir_codegen_encode_discard
Fixes: af0de6b91c0b ("lima/ppir: implement discard and discard_if") Reviewed-by: Qiang Yu <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/ir/pp')
-rw-r--r--src/gallium/drivers/lima/ir/pp/codegen.c2
1 files changed, 1 insertions, 1 deletions
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;