From fb8b80843cedcc57ea35d429bbc1f25d1a3114d1 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 28 Dec 2020 17:56:18 -0500 Subject: [PATCH] pan/bi: Amend misleading comment Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bi_pack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 4824989008d..2c960c089dc 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -316,8 +316,9 @@ bi_pack_registers(bi_registers regs) if (regs.first_instruction) { /* Bit 3 implicitly must be clear for first instructions. * The affected patterns all write both ADD/FMA, but that - * is forbidden for the first instruction, so this does - * not add additional encoding constraints */ + * is forbidden for the last instruction (whose writes are + * encoded by the first), so this does not add additional + * encoding constraints */ assert(!(mode & 0x8)); /* Move bit 4 to bit 3, since bit 3 is clear */