ir3/legalize: don't add WAR dependencies for const/imm regs
Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30611>
This commit is contained in:
@@ -635,7 +635,9 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
|
||||
}
|
||||
} else {
|
||||
foreach_src (reg, n) {
|
||||
regmask_set(&state->needs_ss_war, reg);
|
||||
if (!(reg->flags & (IR3_REG_IMMED | IR3_REG_CONST))) {
|
||||
regmask_set(&state->needs_ss_war, reg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user