X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fcspace_neon.S;fp=frontend%2Fcspace_neon.S;h=651ab84243f63df94da8996b743a5d39a5d3bb51;hp=4cb3d4c8fc4a78ed7a149f98360814ad467dc6ce;hb=d639fa7fe4be413006e13209587fa710b98820f5;hpb=57467c77b7045642afd8de1679f1149acc9c1ab5 diff --git a/frontend/cspace_neon.S b/frontend/cspace_neon.S index 4cb3d4c8..651ab842 100644 --- a/frontend/cspace_neon.S +++ b/frontend/cspace_neon.S @@ -23,6 +23,16 @@ FUNCTION(bgr555_to_rgb565): @ dst, src, bytes pld [r1] mov r3, #0x07c0 vdup.16 q15, r3 + tst r0, #8 + beq 0f + @ align the dst + vld1.16 {d0}, [r1]! + vshl.u16 d0, d0, #1 + vshl.u16 d1, d0, #10 + vsri.u16 d1, d0, #11 + vbit d1, d0, d30 + vst1.16 {d1}, [r0]! +0: subs r2, r2, #64 blt btr16_end64 0: