From ec7942fc8ab08e53133340955ae6190a250e3ba2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 14 Jun 2014 09:53:50 -0700 Subject: [PATCH] Report decoding a texture from a VRAM mirror. Might mainly be depth textures? --- GPU/GLES/TextureCache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPU/GLES/TextureCache.cpp b/GPU/GLES/TextureCache.cpp index 78f5709c47..ea3da80e20 100644 --- a/GPU/GLES/TextureCache.cpp +++ b/GPU/GLES/TextureCache.cpp @@ -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)