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

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

r600: don't check possible size of ALU CF

The scheduler and sfn assembler already o this.

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 | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_asm.c 
b/src/gallium/drivers/r600/r600_asm.c
index 422d3058ccd..5141b02ac84 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1389,12 +1389,6 @@ int r600_bytecode_add_alu_type(struct r600_bytecode *bc,
                }
                bc->cf_last->ndw += align(nliteral, 2);
 
-               /* at most 128 slots, one add alu can add 5 slots + 4 
constants(2 slots)
-                * worst case */
-               if ((bc->cf_last->ndw >> 1) >= 120) {
-                       bc->force_add_cf = 1;
-               }
-
                bc->cf_last->prev2_bs_head = bc->cf_last->prev_bs_head;
                bc->cf_last->prev_bs_head = bc->cf_last->curr_bs_head;
                bc->cf_last->curr_bs_head = NULL;

Reply via email to