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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user