From c3e5b8da58033eaf39ace49d133d9cff65fb409d Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 21 Jul 2023 17:09:36 +0200 Subject: [PATCH] r600: Assert when backend wants to create a new ALU CF Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_asm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index d37e1884b0b..422d3058ccd 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -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 */