1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed sysmem/vidmem synchronization issues on integrated AMD GPUs

This commit is contained in:
narzoul 2020-06-27 11:12:13 +02:00
parent 4ca4e5d6ca
commit b8bff744e5

View File

@ -336,6 +336,19 @@ namespace D3dDdi
{
LOG_ONCE("ERROR: Resource::copySubResource failed: " << Compat::hex(result));
}
D3DDDIARG_LOCK lock = {};
lock.hResource = m_lockResource.get();
lock.SubResourceIndex = subResourceIndex;
lock.Flags.NotifyOnly = 1;
m_device.getOrigVtable().pfnLock(m_device, &lock);
D3DDDIARG_UNLOCK unlock = {};
unlock.hResource = m_lockResource.get();
unlock.SubResourceIndex = subResourceIndex;
unlock.Flags.NotifyOnly = 1;
m_device.getOrigVtable().pfnUnlock(m_device, &unlock);
return LOG_RESULT(result);
}