r600: Assert when backend wants to create a new ALU CF

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297>
This commit is contained in:
Gert Wollny 2023-07-21 17:09:36 +02:00 committed by Marge Bot
parent 9d4104d4fb
commit c3e5b8da58

View file

@ -1285,13 +1285,16 @@ int r600_bytecode_add_alu_type(struct r600_bytecode *bc,
(bc->cf_last->op == CF_OP_ALU_PUSH_BEFORE && type == CF_OP_ALU)) {
LIST_FOR_EACH_ENTRY(lalu, &bc->cf_last->alu, list) {
if (lalu->execute_mask) {
assert(bc->force_add_cf || !"no force cf");
bc->force_add_cf = 1;
break;
}
type = CF_OP_ALU_PUSH_BEFORE;
}
} else
} else {
assert(bc->force_add_cf ||!"no force cf");
bc->force_add_cf = 1;
}
}
/* cf can contains only alu or only vtx or only tex */