ir3/legalize: don't special-case early-preamble a1 reads

We can just generically read from the regmask.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36614>
This commit is contained in:
Job Noorman 2025-08-19 08:35:37 +02:00 committed by Marge Bot
parent 8760c36579
commit bd28a40bd4

View file

@ -155,7 +155,7 @@ ir3_required_sync_flags(struct ir3_legalize_state *state,
if (state->needs_sy_for_const) {
flags |= IR3_INSTR_SY;
}
} else if (reg_is_addr1(reg) && n->block->in_early_preamble) {
} else if (!(reg->flags & (IR3_REG_IMMED | IR3_REG_RT))) {
if (regmask_get(&state->needs_ss, reg)) {
flags |= IR3_INSTR_SS;
}