summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-29 06:16:16 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:25 +0200
commit39a379632ea9f5eec9877b53668ebf385d0520bf (patch)
tree5ab603b79f70f1080e3db59edbcefb19fe8b7686 /src/shader_recompiler/frontend/ir
parentshader: Implement I2I CC (diff)
downloadyuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar.gz
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar.bz2
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar.lz
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar.xz
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.tar.zst
yuzu-39a379632ea9f5eec9877b53668ebf385d0520bf.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
-rw-r--r--src/shader_recompiler/frontend/ir/reg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/reg.h b/src/shader_recompiler/frontend/ir/reg.h
index 3845ec5fb..a4b635792 100644
--- a/src/shader_recompiler/frontend/ir/reg.h
+++ b/src/shader_recompiler/frontend/ir/reg.h
@@ -309,7 +309,7 @@ constexpr Reg operator++(Reg& reg, int) {
}
[[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