Permalink
Browse files

Merge pull request #6985 from degasus/arm_vertex_loader_fix

VertexLoaderArm: Fix 565 color format.
  • Loading branch information...
degasus committed May 27, 2018
2 parents e9ce75c + 3307946 commit 5de2f960a1179fe32de4f93721faa5734497f949
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/VideoCommon/VertexLoaderARM64.cpp
@@ -229,7 +229,7 @@ void VertexLoaderARM64::ReadColor(u64 attribute, int format, s32 offset)
LDR(INDEX_UNSIGNED, scratch2_reg, src_reg, offset);
if (format != FORMAT_32B_8888)
ORR(scratch2_reg, scratch2_reg, 8, 7); // 0xFF000000
ORRI2R(scratch2_reg, scratch2_reg, 0xFF000000);
STR(INDEX_UNSIGNED, scratch2_reg, dst_reg, m_dst_ofs);
load_bytes = 3 + (format != FORMAT_24B_888);
break;
@@ -264,7 +264,7 @@ void VertexLoaderARM64::ReadColor(u64 attribute, int format, s32 offset)
ORR(scratch1_reg, scratch1_reg, scratch2_reg, ArithOption(scratch2_reg, ST_LSR, 2));
// A
ORR(scratch2_reg, scratch2_reg, 8, 7); // 0xFF000000
ORRI2R(scratch1_reg, scratch1_reg, 0xFF000000);
STR(INDEX_UNSIGNED, scratch1_reg, dst_reg, m_dst_ofs);
load_bytes = 2;

0 comments on commit 5de2f96

Please sign in to comment.