D3D12: Implement XFB encoding/decoding (support Real XFB)

This commit is contained in:
Stenzek
2016-03-06 18:48:35 +10:00
parent 3372bfa6ab
commit 6f3573dda8
15 changed files with 342 additions and 164 deletions

View File

@ -1309,6 +1309,11 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
{
drawRc = flipped_trc;
sourceRc.right -= fbStride - fbWidth;
// RealXFB doesn't call ConvertEFBRectangle for sourceRc, therefore it is still assuming a top-left origin.
// The top offset is always zero (see FramebufferManagerBase::GetRealXFBSource).
sourceRc.top = sourceRc.bottom;
sourceRc.bottom = 0;
}
else
{