Module: Mesa
Branch: main
Commit: c3e5b8da58033eaf39ace49d133d9cff65fb409d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3e5b8da58033eaf39ace49d133d9cff65fb409d

Author: Gert Wollny <[email protected]>
Date:   Fri Jul 21 17:09:36 2023 +0200

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

Signed-off-by: Gert Wollny <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24297>

---

 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 */

Reply via email to