r600: don't check possible size of ALU CF
authorGert Wollny <gert.wollny@collabora.com>
Fri, 21 Jul 2023 15:11:52 +0000 (17:11 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Jul 2023 19:33:43 +0000 (19:33 +0000)
The scheduler and sfn assembler already o this.

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 422d305..5141b02 100644 (file)
@@ -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;