diff options
| author | xsacha <xsacha@gmail.com> | 2011-01-07 17:55:26 +0000 |
|---|---|---|
| committer | xsacha <xsacha@gmail.com> | 2011-01-07 17:55:26 +0000 |
| commit | 62b79028efdfcccb2886a02a9aba979df34c4727 (patch) | |
| tree | 719a5943e1dd0cd21ce9ddca9ababdf7058ef7c0 /Source/Core/VideoCommon/Src/TextureDecoder.cpp | |
| parent | 87bd4dd4b92da501073f1729bae260ef30dc4db6 (diff) | |
This needs to be in the right place to work for <sse4. Going to bed now :P.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6776 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureDecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index 4549504633..3b7f93b6f1 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -1031,9 +1031,9 @@ PC_TexFormat TexDecoder_Decode_RGBA(u32 * dst, const u8 * src, int width, int he // (bbbbbbbb bbbbbbbb aaaaaaaa aaaaaaaa) -> (bbbbbbbb 00000000 aaaaaaaa 00000000) // And last but not least, _mm_or_si128 ORs those two together, giving us the interleaving we desire: // (00000000 BBBBBBBB 00000000 AAAAAAAA) | (bbbbbbbb 00000000 aaaaaaaa 00000000) -> (bbbbbbbb BBBBBBBB aaaaaaaa AAAAAAAA) + __m128i o1, o2, o3, o4; #if _M_SSE >= 0x401 // SSE4 gives 5-10% improvement in I4 texture decode when this runs: - __m128i o1, o2, o3, o4; if (cpu_info.bSSE4_1) { o1 = _mm_blend_epi16(i251, i151, 0x33); // 0x33 = 00110011 o2 = _mm_blend_epi16(i252, i152, 0x33); |
