Improve safe texture cache - now using sparse CRC to identify textures. Far less video glitches - metroid intro looks good.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1298 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-11-25 23:56:57 +00:00
parent a95e804681
commit d0a48f654a
3 changed files with 33 additions and 5 deletions

View File

@ -65,6 +65,7 @@ enum TextureFormat
};
int TexDecoder_GetTexelSizeInNibbles(int format);
int TexDecoder_GetTextureSizeInBytes(int width, int height, int format);
int TexDecoder_GetBlockWidthInTexels(int format);
int TexDecoder_GetPaletteSize(int fmt);
@ -76,6 +77,8 @@ enum PC_TexFormat
PC_TexFormat TexDecoder_Decode(u8 *dst, const u8 *src, int width, int height, int texformat, int tlutaddr, int tlutfmt);
u32 TexDecoder_GetSafeTextureHash(const u8 *src, int width, int height, int texformat);
void TexDecoder_SetTexFmtOverlayOptions(bool enable, bool center);
#endif