summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureDecoder.cpp
diff options
context:
space:
mode:
authormagumagu9 <magumagu9@gmail.com>2009-01-14 07:31:24 +0000
committermagumagu9 <magumagu9@gmail.com>2009-01-14 07:31:24 +0000
commitb5367bea464e4770b4fe6ffdedb056603afd7214 (patch)
tree180de58ed98b27e2d018803d9c7fcd0f88788c02 /Source/Core/VideoCommon/Src/TextureDecoder.cpp
parent14984a916df0a2e63728b0b550629605bbc8cb3f (diff)
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
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureDecoder.cpp4
1 files 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)