ir3/legalize: handle WAR for special regs

In particular many cat5/cat6 instructions read a1.x, and we need to add
a (ss) before any mova1 instruction afterwards, as the blob does.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13142>
This commit is contained in:
Connor Abbott 2021-09-29 16:19:10 +02:00 committed by Marge Bot
parent 1ed9a2f50c
commit 6dc56f18bc
1 changed files with 1 additions and 2 deletions

View File

@ -293,8 +293,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
*/
if (is_tex(n) || is_sfu(n) || is_mem(n)) {
foreach_src (reg, n) {
if (reg_gpr(reg))
regmask_set(&state->needs_ss_war, reg);
regmask_set(&state->needs_ss_war, reg);
}
}