[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 illusion98
parent 9ba48c8176
commit a38dc43a73
1 changed files with 6 additions and 1 deletions

View File

@ -2445,8 +2445,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;
}
}