mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-01 07:46:27 -05:00
shader: Fix alignment checks on RZ
This commit is contained in:
parent
73af0d2e0d
commit
39a379632e
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ constexpr Reg operator++(Reg& reg, int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] constexpr bool IsAligned(Reg reg, size_t align) {
|
[[nodiscard]] constexpr bool IsAligned(Reg reg, size_t align) {
|
||||||
return (RegIndex(reg) / align) * align == RegIndex(reg);
|
return RegIndex(reg) % align == 0 || reg == Reg::RZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Shader::IR
|
} // namespace Shader::IR
|
||||||
|
|
Loading…
Reference in a new issue