Report decoding a texture from a VRAM mirror.

Might mainly be depth textures?
This commit is contained in:
Unknown W. Brackets 2014-06-14 09:53:50 -07:00
parent 0b9db176e9
commit ec7942fc8a

View file

@ -1551,6 +1551,10 @@ void *TextureCache::DecodeTextureLevel(GETextureFormat format, GEPaletteFormat c
void *finalBuf = NULL;
u32 texaddr = gstate.getTextureAddress(level);
if (texaddr & 0x00600000 && Memory::IsVRAMAddress(texaddr)) {
// This means it's in a mirror, possibly a swizzled mirror. Let's report.
WARN_LOG_REPORT_ONCE(texmirror, G3D, "Decoding texture from VRAM mirror at %08x swizzle=%d", texaddr, gstate.isTextureSwizzled() ? 1 : 0);
}
int bufw = GetTextureBufw(level, texaddr, format);
if (bufwout)