r600: Assert when backend wants to create a new ALU CF
authorGert Wollny <gert.wollny@collabora.com>
Fri, 21 Jul 2023 15:09:36 +0000 (17:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Jul 2023 19:33:43 +0000 (19:33 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297>

src/gallium/drivers/r600/r600_asm.c

index d37e188..422d305 100644 (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 */