ir3/legalize: insert (ss) to read consts after stc
Observed when reading consts in the preamble using alias.rt. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31222>
This commit is contained in:
@@ -644,7 +644,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
|
||||
} else {
|
||||
regmask_set(&state->needs_ss, n->dsts[0]);
|
||||
}
|
||||
} else if (n->opc == OPC_PUSH_CONSTS_LOAD_MACRO) {
|
||||
} else if (n->opc == OPC_PUSH_CONSTS_LOAD_MACRO || n->opc == OPC_STC) {
|
||||
state->needs_ss_for_const = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user