TexCache: Check for videos rendered as slices.

In a few places, we were checking only the start address of the video.
This commit is contained in:
Unknown W. Brackets committed 2021-02-20 20:59:04 -08:00
1 parent dd980905a2
commit 557bf0d963
6 files changed
+35 -20

No files matched your search

+1 -1
View File
@@ -899,7 +899,7 @@ void TextureCacheVulkan::BuildTexture(TexCacheEntry *const entry) {
replacedInfo.cachekey = cachekey;
replacedInfo.hash = entry->fullhash;
replacedInfo.addr = entry->addr;
replacedInfo.isVideo = videos_.find(entry->addr & 0x3FFFFFFF) != videos_.end();
replacedInfo.isVideo = IsVideo(entry->addr);
replacedInfo.isFinal = (entry->status & TexCacheEntry::STATUS_TO_SCALE) == 0;
replacedInfo.scaleFactor = scaleFactor;
replacedInfo.fmt = FromVulkanFormat(actualFmt);