Browse Source

shader: Fix alignment checks on RZ

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
99b954550f
  1. 2
      src/shader_recompiler/frontend/ir/reg.h

2
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

Loading…
Cancel
Save