Merge pull request #21324 from hrydgard/silent-hill-shadows

WIP: Apply changes by fcrwr, fixing (mostly) shadows in Silent Hill: Shattered memories
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-03-18 09:06:55 +01:00
commit df5ad56546
2 files changed
+55 -2

No files matched your search

+11 -2
View File
@@ -1135,8 +1135,17 @@ bool TextureCacheCommon::MatchFramebuffer(
}
return true;
}
} else if (IsClutFormat((GETextureFormat)(entry.format)) || IsDXTFormat((GETextureFormat)(entry.format))) {
WARN_LOG_ONCE(fourEightBit, Log::G3D, "%s texture format not matching framebuffer of format %s at %08x/%d", GeTextureFormatToString(entry.format), GeBufferFormatToString(fb_format), fb_address, fb_stride);
} else if (IsClutFormat((GETextureFormat)(entry.format))) {
WARN_LOG_ONCE(nomatch_clut, Log::G3D, "%s texture format not matching framebuffer of format %s at %08x/%d", GeTextureFormatToString(entry.format), GeBufferFormatToString(fb_format), fb_address, fb_stride);
// Seen in Silent Hill: Shattered Memories (#6265).
if (entry.format == GE_TFMT_CLUT32 && fb_format != GE_FORMAT_8888) {
matchInfo->reinterpret = true;
matchInfo->reinterpretTo = GE_FORMAT_8888;
return true;
}
return false;
} else if (IsDXTFormat((GETextureFormat)(entry.format))) {
WARN_LOG_ONCE(nomatch_dxt, Log::G3D, "%s texture format (DXT!) not matching framebuffer of format %s at %08x/%d", GeTextureFormatToString(entry.format), GeBufferFormatToString(fb_format), fb_address, fb_stride);
return false;
}