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 <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41536>
This commit is contained in:
Job Noorman 2026-05-13 12:32:56 +02:00 committed by Marge Bot
parent 46607282f1
commit d1ab6937bc

View file

@ -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). */