summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-03-31 14:11:53 +1000
committerStenzek <stenzek@gmail.com>2019-04-21 12:41:15 +1000
commit708bd3d9f7f375fba750561758abab77c99fa0af (patch)
treeedf44955def2713b8242166020662f5bb4bc6883 /Source/Core/VideoCommon/BPStructs.cpp
parentdbaba0062a057836b31455d7abe3fea6a20b99d8 (diff)
TextureCache: Simplify XFB reconstruction
This also better handles in-memory interlaced XFB data placed by the CPU by considering the stride from the VI.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index d7d80a1bfa..925619e797 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -312,14 +312,13 @@ static void BPWritten(const BPCmd& bp)
if (g_ActiveConfig.bImmediateXFB)
{
// below div two to convert from bytes to pixels - it expects width, not stride
- g_renderer->Swap(destAddr, destStride / 2, destStride / 2, height, srcRect,
- CoreTiming::GetTicks());
+ g_renderer->Swap(destAddr, destStride / 2, destStride, height, CoreTiming::GetTicks());
}
else
{
if (FifoPlayer::GetInstance().IsRunningWithFakeVideoInterfaceUpdates())
{
- VideoInterface::FakeVIUpdate(destAddr, srcRect.GetWidth(), height);
+ VideoInterface::FakeVIUpdate(destAddr, srcRect.GetWidth(), destStride, height);
}
}
}