[D3D12] Adjust mip size in certain cases to fix techland games

This commit is contained in:
Cancerous 2020-02-05 09:41:08 -05:00 committed by illusion
parent c728fc4733
commit 404f9f53aa
1 changed files with 6 additions and 1 deletions

View File

@ -2406,8 +2406,13 @@ bool TextureCache::LoadTextureData(Texture* texture) {
} }
} }
if (!mips_in_sync) { if (!mips_in_sync) {
if (texture->mip_size == 0xB0000) {
XELOGD3D("[D3D] Mip shrinked - this may have unexpected behavior");
}
if (!shared_memory_->RequestRange(texture->key.mip_page << 12, if (!shared_memory_->RequestRange(texture->key.mip_page << 12,
texture->mip_size)) { texture->mip_size == 0xB0000
? texture->mip_size >> 4
: texture->mip_size)) {
return false; return false;
} }
} }