Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
}
}
+ /* Check for barriers */
+ if (I->op == AGX_OPCODE_THREADGROUP_BARRIER ||
+ I->op == AGX_OPCODE_MEMORY_BARRIER) {
+
+ for (unsigned slot = 0; slot < ARRAY_SIZE(slots); ++slot) {
+ if (slots[slot].nr_pending)
+ wait_mask |= BITSET_BIT(slot);
+ }
+ }
+
/* Try to assign a free slot */
if (instr_is_async(I)) {
for (unsigned slot = 0; slot < ARRAY_SIZE(slots); ++slot) {