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:
parent
1ed9a2f50c
commit
6dc56f18bc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue