Skip to content

Commit

Permalink
Merge pull request #3752 from mimimi085181/remove-use-only-once-restr…
Browse files Browse the repository at this point in the history
…iction-partial-updates

Remove the restriction to use efb copies only once as partial update
  • Loading branch information
delroth committed Apr 9, 2016
2 parents 94098a5 + 2dd9e6b commit e98fb0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Core/VideoCommon/TextureCacheBase.cpp
Expand Up @@ -309,7 +309,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex
if (entry != entry_to_update
&& entry->IsEfbCopy()
&& entry->OverlapsMemoryRange(entry_to_update->addr, entry_to_update->size_in_bytes)
&& entry->frameCount == FRAMECOUNT_INVALID
&& entry->memory_stride == numBlocksX * block_size)
{
if (entry->hash == entry->CalculateHash())
Expand Down Expand Up @@ -368,8 +367,8 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex
dstrect.right = (dst_x + copy_width);
dstrect.bottom = (dst_y + copy_height);
entry_to_update->CopyRectangleFromTexture(entry, srcrect, dstrect);
// Mark the texture update as used, so it isn't applied more than once
entry->frameCount = frameCount;
// Mark the texture update as used, as if it was loaded directly
entry->frameCount = FRAMECOUNT_INVALID;
}
else
{
Expand Down

0 comments on commit e98fb0a

Please sign in to comment.