[idd] driver: use the frameSize instead of the resource size

As the resource size can be larger then the actual frame data, we
need to track this seperately so that we don't waste cycles copying
data the client will never use.
This commit is contained in:
Geoffrey McRae
2025-03-28 14:35:19 +00:00
parent 91e8440c9d
commit 9ffb800e93
3 changed files with 15 additions and 8 deletions

View File

@@ -217,7 +217,8 @@ void CSwapChainProcessor::SwapChainNewFrame(ComPtr<IDXGIResource> acquiredBuffer
m_dx12Device->GetCopyQueue().Reset();
if (m_dx12Device->IsIndirectCopy())
m_devContext->WriteFrameBuffer(fbRes->GetMap(), 0, fbRes->GetSize(), true);
m_devContext->WriteFrameBuffer(
fbRes->GetMap(), 0, fbRes->GetFrameSize(), true);
else
m_devContext->FinalizeFrameBuffer();
}