Merge pull request #3752 from mimimi085181/remove-use-only-once-restriction-partial-updates
Remove the restriction to use efb copies only once as partial update
This commit is contained in:
commit
e98fb0af84
|
@ -309,7 +309,6 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex
|
||||||
if (entry != entry_to_update
|
if (entry != entry_to_update
|
||||||
&& entry->IsEfbCopy()
|
&& entry->IsEfbCopy()
|
||||||
&& entry->OverlapsMemoryRange(entry_to_update->addr, entry_to_update->size_in_bytes)
|
&& entry->OverlapsMemoryRange(entry_to_update->addr, entry_to_update->size_in_bytes)
|
||||||
&& entry->frameCount == FRAMECOUNT_INVALID
|
|
||||||
&& entry->memory_stride == numBlocksX * block_size)
|
&& entry->memory_stride == numBlocksX * block_size)
|
||||||
{
|
{
|
||||||
if (entry->hash == entry->CalculateHash())
|
if (entry->hash == entry->CalculateHash())
|
||||||
|
@ -368,8 +367,8 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::DoPartialTextureUpdates(Tex
|
||||||
dstrect.right = (dst_x + copy_width);
|
dstrect.right = (dst_x + copy_width);
|
||||||
dstrect.bottom = (dst_y + copy_height);
|
dstrect.bottom = (dst_y + copy_height);
|
||||||
entry_to_update->CopyRectangleFromTexture(entry, srcrect, dstrect);
|
entry_to_update->CopyRectangleFromTexture(entry, srcrect, dstrect);
|
||||||
// Mark the texture update as used, so it isn't applied more than once
|
// Mark the texture update as used, as if it was loaded directly
|
||||||
entry->frameCount = frameCount;
|
entry->frameCount = FRAMECOUNT_INVALID;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue