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
This commit is contained in:
magumagu9 2009-01-14 07:31:24 +00:00
parent 14984a916d
commit b5367bea46
1 changed files with 2 additions and 2 deletions

View File

@ -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)