[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 8a9b8c8cde
commit ca0fc1cd88
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 (texture->mip_size == 0xB0000) {
XELOGD3D("[D3D] Mip shrinked - this may have unexpected behavior");
}
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;
}
}