mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 15:40:16 +00:00
VertexLoaderArm: Fix 565 color format.
Copy & paste error for enforcing A=255. It was copied from the 888X format, which stores the output data in another register.
This commit is contained in:
parent
7b07424885
commit
3307946e2a
@ -229,7 +229,7 @@ void VertexLoaderARM64::ReadColor(u64 attribute, int format, s32 offset)
|
|||||||
LDR(INDEX_UNSIGNED, scratch2_reg, src_reg, offset);
|
LDR(INDEX_UNSIGNED, scratch2_reg, src_reg, offset);
|
||||||
|
|
||||||
if (format != FORMAT_32B_8888)
|
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);
|
STR(INDEX_UNSIGNED, scratch2_reg, dst_reg, m_dst_ofs);
|
||||||
load_bytes = 3 + (format != FORMAT_24B_888);
|
load_bytes = 3 + (format != FORMAT_24B_888);
|
||||||
break;
|
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));
|
ORR(scratch1_reg, scratch1_reg, scratch2_reg, ArithOption(scratch2_reg, ST_LSR, 2));
|
||||||
|
|
||||||
// A
|
// 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);
|
STR(INDEX_UNSIGNED, scratch1_reg, dst_reg, m_dst_ofs);
|
||||||
load_bytes = 2;
|
load_bytes = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user