diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-10-09 21:26:21 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-10-09 21:26:21 +0000 |
| commit | 2df982a50344c6c1d9b40262aed1f53a7f5b4ec6 (patch) | |
| tree | 437bd1e9bd02cb3bab299799755db2dee4a7a5ac /Source/Core/VideoCommon | |
| parent | bb7cae4c188c4fd931e167adb6af15f9d853e79a (diff) | |
Yay, comments
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@818 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureDecoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index e19eb94d20..0cb6353a0e 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -152,7 +152,6 @@ inline void decodebytesI4(u32 *dst, const u8 *src) inline void decodebytesI8_8(u32 *dst, const u8 *src)
{
- // TODO: SSSE3 variant (pshufb), possibly SSE2 variant (packuswb). THP videos use this format.
for (int x = 0; x < 8; x++)
dst[x] = src[x] * 0x01010101; //expand8888(src[x]); *0x... may or may not be faster. not sure. Should be faster on P4 at least.
}
@@ -352,7 +351,8 @@ PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, in return PC_TEX_FMT_BGRA32;
case GX_TF_I4:
{
-//Works in GCC 4.3.2 and above, possibly 4.3.1 and above
+ // TODO: SSSE3 variant (pshufb), THP videos use this format.
+ // SSSE3 variant could bring even more speed
#if (defined(_WIN32) || (defined (_M_X64) && !defined(_WIN32)))
__m128i Lmask = _mm_set1_epi8 (0x0F);
__m128i Hmask = _mm_set1_epi8 (0xF0);
|
