From 9f571aa9b81fc2af7e05992b64aee993e2cc6180 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 31 Oct 2010 10:34:37 +0000 Subject: [PATCH] GregMiscellaneous: zzogl-pg: * Mem swizzle: fix mask scrambling & bad copy paste git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3987 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/Mem_Swizzle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/zzogl-pg/opengl/Mem_Swizzle.cpp b/plugins/zzogl-pg/opengl/Mem_Swizzle.cpp index f16da7f64a..7933cb4060 100644 --- a/plugins/zzogl-pg/opengl/Mem_Swizzle.cpp +++ b/plugins/zzogl-pg/opengl/Mem_Swizzle.cpp @@ -32,8 +32,8 @@ #define INTRINSIC_PORT_8 #define INTRINSIC_PORT_4 #ifdef ZEROGS_SSE2 -static const __aligned16 u32 mask_24b_H[4] = {0x0000FFFF, 0xFF000000, 0x0000FFFF, 0xFF000000}; -static const __aligned16 u32 mask_24b_L[4] = {0x00000000, 0x00FFFFFF, 0x00000000, 0x00FFFFFF}; +static const __aligned16 u32 mask_24b_H[4] = {0xFF000000, 0x0000FFFF, 0xFF000000, 0x0000FFFF}; +static const __aligned16 u32 mask_24b_L[4] = {0x00FFFFFF, 0x00000000, 0x00FFFFFF, 0x00000000}; template __forceinline void SwizzleBlock32_sse2_I(u8 *dst, u8 *src, int pitch, u32 WriteMask) @@ -503,8 +503,8 @@ __forceinline void SwizzleBlock24(u8 *dst, u8 *src, int pitch, u32 WriteMask) src_1 = _mm_slli_si128(src_1, 2); src_1 = _mm_shufflelo_epi16(src_1, 0x39); - src_2 = _mm_slli_si128(src_0, 2); - src_2 = _mm_shufflelo_epi16(src_0, 0x39); + src_2 = _mm_slli_si128(src_2, 2); + src_2 = _mm_shufflelo_epi16(src_2, 0x39); src_3 = _mm_slli_si128(src_3, 2); src_3 = _mm_shufflelo_epi16(src_3, 0x39);