From d1ab6937bc380bc787e4eef29103fb2bc0d6306c Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Wed, 13 May 2026 12:32:56 +0200 Subject: [PATCH] ir3: allow (ss) on all cat7 instructions They all support it, not just alias. Totals from 1034 (0.59% of 176266) affected shaders: Instrs: 1191237 -> 1187463 (-0.32%); split: -0.32%, +0.00% CodeSize: 1967434 -> 1957658 (-0.50%) NOPs: 357507 -> 353733 (-1.06%); split: -1.07%, +0.01% (ss)-stall: 162617 -> 162616 (-0.00%) (sy)-stall: 701381 -> 701897 (+0.07%); split: -0.00%, +0.07% Cat0: 391915 -> 388141 (-0.96%); split: -0.98%, +0.01% Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index 83517828918..08424fe5bda 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -2140,7 +2140,7 @@ needs_ss(const struct ir3_compiler *compiler, struct ir3_instruction *producer, static inline bool supports_ss(struct ir3_instruction *instr) { - return opc_cat(instr->opc) < 5 || instr->opc == OPC_ALIAS; + return opc_cat(instr->opc) < 5 || opc_cat(instr->opc) == 7; } /* The soft delay for approximating the cost of (ss). */