summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_x64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_x64.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_x64.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp
index a31aa3ad3d..66bf5a708b 100644
--- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp
+++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp
@@ -622,53 +622,6 @@ static void copyDXTBlock(u8* dst, const u8* src)
}
#endif
-static PC_TexFormat GetPCFormatFromTLUTFormat(int tlutfmt)
-{
- switch (tlutfmt)
- {
- case 0: return PC_TEX_FMT_IA8; // IA8
- case 1: return PC_TEX_FMT_RGB565; // RGB565
- case 2: return PC_TEX_FMT_BGRA32; // RGB5A3: This TLUT format requires
- // extra work to decode.
- }
- return PC_TEX_FMT_NONE; // Error
-}
-
-PC_TexFormat GetPC_TexFormat(int texformat, int tlutfmt)
-{
- switch (texformat)
- {
- case GX_TF_C4:
- return GetPCFormatFromTLUTFormat(tlutfmt);
- case GX_TF_I4:
- return PC_TEX_FMT_IA8;
- case GX_TF_I8: // speed critical
- return PC_TEX_FMT_IA8;
- case GX_TF_C8:
- return GetPCFormatFromTLUTFormat(tlutfmt);
- case GX_TF_IA4:
- return PC_TEX_FMT_IA4_AS_IA8;
- case GX_TF_IA8:
- return PC_TEX_FMT_IA8;
- case GX_TF_C14X2:
- return GetPCFormatFromTLUTFormat(tlutfmt);
- case GX_TF_RGB565:
- return PC_TEX_FMT_RGB565;
- case GX_TF_RGB5A3:
- return PC_TEX_FMT_BGRA32;
- case GX_TF_RGBA8: // speed critical
- return PC_TEX_FMT_BGRA32;
- case GX_TF_CMPR: // speed critical
- // The metroid games use this format almost exclusively.
- {
- return PC_TEX_FMT_BGRA32;
- }
- }
-
- // The "copy" texture formats, too?
- return PC_TEX_FMT_NONE;
-}
-
inline void SetOpenMPThreadCount(int width, int height)
{
#ifdef _OPENMP