aco: Don't allow any VALU instruction to write m0.

Fixes: d5398b62da
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22885>
This commit is contained in:
Timur Kristóf
2023-05-06 17:03:22 +02:00
committed by Marge Bot
parent c140a456b7
commit 16a05f1903
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1656,7 +1656,7 @@ get_reg(ra_ctx& ctx, RegisterFile& reg_file, Temp temp,
}
if (ctx.assignments[temp.id()].m0) {
if (get_reg_specified(ctx, reg_file, temp.regClass(), instr, m0) &&
can_write_m0(ctx.program->gfx_level, instr))
can_write_m0(instr))
return m0;
}