From b5367bea464e4770b4fe6ffdedb056603afd7214 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Wed, 14 Jan 2009 07:31:24 +0000 Subject: [PATCH] Unconditionally activate SSE code for texture conversion; this should only affect 32-bit non-Windows platforms, and I've tested 32-bit Linux, so I think it's pretty safe. It's a slight performance improvement when it kicks in. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1865 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index f9d943ffbf..9901347cd9 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -387,7 +387,7 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in { // TODO: SSSE3 variant (pshufb), THP videos use this format. // SSSE3 variant could bring even more speed -#if (defined(_WIN32) || (defined (_M_X64) && !defined(_WIN32))) +#if 1 __m128i Lmask = _mm_set1_epi8 (0x0F); __m128i Hmask = _mm_set1_epi8 (0xF0); const __m128i* sseSrc = (const __m128i *)src; @@ -459,7 +459,7 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in return PC_TEX_FMT_BGRA32; case GX_TF_I8: // speed critical { -#if (defined(_WIN32) || (defined (_M_X64) && !defined(_WIN32))) +#if 1 __m128i *sseSrc = (__m128i *)src; __m128i *sseDst = (__m128i *)dst; for (int y = 0; y < height; y += 4)