pan/bi: Add bi_must_message predicate

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig
2020-12-21 15:57:11 -05:00
committed by Marge Bot
parent ab4234bdf0
commit 56e35a4022
+6
View File
@@ -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