diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2021-07-11 12:55:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-11 12:55:48 +0200 |
| commit | 88fd9fd577ffc3c1af5a04cdf337ecd2990ccfe2 (patch) | |
| tree | f9c3ab7e3d204c0f7a6c1c75964d93bbaf2f92d0 /Source/Core/VideoCommon/VertexLoaderARM64.cpp | |
| parent | 4157967f04bb72e37c0aa383b3f377c0d2177418 (diff) | |
| parent | 0f3b9a8874b12200326e6dd0904c30c2b296b159 (diff) | |
Merge pull request #9869 from JosJuice/jitarm64-constexpr-isimmlogical
JitArm64: Encode logical immediates at compile-time where possible
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderARM64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderARM64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderARM64.cpp b/Source/Core/VideoCommon/VertexLoaderARM64.cpp index eb16ec9bd3..dc760b011b 100644 --- a/Source/Core/VideoCommon/VertexLoaderARM64.cpp +++ b/Source/Core/VideoCommon/VertexLoaderARM64.cpp @@ -244,7 +244,7 @@ void VertexLoaderARM64::ReadColor(VertexComponentFormat attribute, ColorFormat f LDR(IndexType::Unsigned, scratch2_reg, src_reg, offset); if (format != ColorFormat::RGBA8888) - ORRI2R(scratch2_reg, scratch2_reg, 0xFF000000); + ORR(scratch2_reg, scratch2_reg, LogicalImm(0xFF000000, 32)); STR(IndexType::Unsigned, scratch2_reg, dst_reg, m_dst_ofs); load_bytes = format == ColorFormat::RGB888 ? 3 : 4; break; @@ -279,7 +279,7 @@ void VertexLoaderARM64::ReadColor(VertexComponentFormat attribute, ColorFormat f ORR(scratch1_reg, scratch1_reg, scratch2_reg, ArithOption(scratch2_reg, ShiftType::LSR, 2)); // A - ORRI2R(scratch1_reg, scratch1_reg, 0xFF000000); + ORR(scratch1_reg, scratch1_reg, LogicalImm(0xFF000000, 32)); STR(IndexType::Unsigned, scratch1_reg, dst_reg, m_dst_ofs); load_bytes = 2; |
