From: Alyssa Rosenzweig Date: Mon, 21 Dec 2020 20:57:11 +0000 (-0500) Subject: pan/bi: Add bi_must_message predicate X-Git-Tag: upstream/21.2.3~8743 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56e35a4022ac023e0b90a33ce107ddcb7d52392a;p=platform%2Fupstream%2Fmesa.git pan/bi: Add bi_must_message predicate Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c index d360de9..84e36bd 100644 --- a/src/panfrost/bifrost/bi_schedule.c +++ b/src/panfrost/bifrost/bi_schedule.c @@ -172,6 +172,12 @@ bi_must_last(bi_instr *ins) return bi_opcode_props[ins->op].last; } +ASSERTED static bool +bi_must_message(bi_instr *ins) +{ + return bi_opcode_props[ins->op].message != BIFROST_MESSAGE_NONE; +} + /* Eventually, we'll need a proper scheduling, grouping instructions * into clauses and ordering/assigning grouped instructions to the * appropriate FMA/ADD slots. Right now we do the dumbest possible