diff options
| author | mimimi085181 <mimimi085181@gmail.com> | 2016-03-16 22:03:24 +0100 |
|---|---|---|
| committer | mimimi085181 <mimimi085181@gmail.com> | 2016-03-16 22:24:11 +0100 |
| commit | e4f984d5dd10782ffdac07a932e78a5c22875bcd (patch) | |
| tree | bcfcbaeffc2e9cc28e89dd65738dfdffb01fe8cd /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 80250f47e9a6a8038ce1fa5077a75ab499f9094f (diff) | |
Minor fixes to the partial updates code
- remove an outdated comment about the efb to ram and scaled efb restriction
- when upscaling efb copies, mark the new texture as efb copy
- dx12 fixes for the src box, especially the number of layers for 3D
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 746b7b459c..ffa2c68ad3 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -236,7 +236,7 @@ void TextureCacheBase::ScaleTextureCacheEntryTo(TextureCacheBase::TCacheEntryBas newentry->SetDimensions((*entry)->native_width, (*entry)->native_height, 1); newentry->SetHashes((*entry)->base_hash, (*entry)->hash); newentry->frameCount = frameCount; - newentry->is_efb_copy = false; + newentry->is_efb_copy = (*entry)->is_efb_copy; MathUtil::Rectangle<int> srcrect, dstrect; srcrect.left = 0; srcrect.top = 0; @@ -289,7 +289,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex // Efb copies and paletted textures are excluded from these updates, until there's an example where a game would // benefit from this. Both would require more work to be done. - // TODO: Implement upscaling support for normal textures, and then remove the efb to ram and the scaled efb restrictions if (entry_to_update->IsEfbCopy() || isPaletteTexture) return entry_to_update; |
