1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-30 11:52:11 +01:00

[d3d11] Added missing CS thread sync for non-discard Map()

This commit is contained in:
Philip Rebohle 2018-01-31 16:39:47 +01:00
parent fb4663fcc8
commit 78c46f444a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 1 deletions

View File

@ -1655,7 +1655,7 @@ namespace dxvk {
// submit the current command buffer in order to keep the GPU busy.
// This also helps keep the command buffers at a reasonable size.
if (m_drawCount >= 500)
this->Flush();
Flush();
for (UINT i = 0; i < m_state.om.renderTargetViews.size(); i++) {
D3D11RenderTargetView* view = nullptr;

View File

@ -121,6 +121,7 @@ namespace dxvk {
return DXGI_ERROR_WAS_STILL_DRAWING;
Flush();
SynchronizeCsThread();
SynchronizeDevice();
}
}