summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureDecoder.cpp
diff options
context:
space:
mode:
authorRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2009-11-13 11:55:14 +0000
committerRodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com>2009-11-13 11:55:14 +0000
commite56ca08b4ff03a9c9500035a4f66404cf9997af7 (patch)
tree9bc2b992d814b4abfa86f0cbfba6a8374d4f4a2e /Source/Core/VideoCommon/Src/TextureDecoder.cpp
parent654800458fe91cd40370547f2798485ba8aae5f9 (diff)
some minor changes preparing for future commits, and a correction to texture alignment that must solve the efb misalignments in various games
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4556 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureDecoder.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp
index 9c09ad37cb..5f82c25ec1 100644
--- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp
+++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp
@@ -60,6 +60,25 @@ int TexDecoder_GetTexelSizeInNibbles(int format)
case GX_TF_C8: return 2;
case GX_TF_C14X2: return 4;
case GX_TF_CMPR: return 1;
+ case GX_CTF_R4: return 1;
+ case GX_CTF_RA4: return 2;
+ case GX_CTF_RA8: return 4;
+ case GX_CTF_YUVA8: return 8;
+ case GX_CTF_A8: return 2;
+ case GX_CTF_R8: return 2;
+ case GX_CTF_G8: return 2;
+ case GX_CTF_B8: return 2;
+ case GX_CTF_RG8: return 4;
+ case GX_CTF_GB8: return 4;
+
+ case GX_TF_Z8: return 2;
+ case GX_TF_Z16: return 4;
+ case GX_TF_Z24X8: return 8;
+
+ case GX_CTF_Z4: return 1;
+ case GX_CTF_Z8M: return 2;
+ case GX_CTF_Z8L: return 2;
+ case GX_CTF_Z16L: return 4;
default: return 1;
}
}