diff options
| author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-08-10 13:59:47 -0400 |
|---|---|---|
| committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-09-04 17:32:06 -0700 |
| commit | bfb2c04ace044b734a8341a929c2456da82a229f (patch) | |
| tree | 4c8653571cf634acf9b8aed9558394cda14b6e68 /Source/Core/VideoCommon/TextureDecoder_x64.cpp | |
| parent | 6682a2fadd74809b627eb3b1fa398353246e891c (diff) | |
TextureDecoder: Remove unused function
GetPC_TexFormat was never used. It was added in commit d02426a, with the
only user being commented out code. The commented out code was later
removed in 9893122, but the implementation stayed.
Diffstat (limited to 'Source/Core/VideoCommon/TextureDecoder_x64.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureDecoder_x64.cpp | 47 |
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 |
