Skip to content

Commit

Permalink
[d3d11] Added missing CS thread sync for non-discard Map()
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Jan 31, 2018
1 parent fb4663f commit 78c46f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/d3d11_context.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/d3d11/d3d11_context_imm.cpp
Expand Up @@ -121,6 +121,7 @@ namespace dxvk {
return DXGI_ERROR_WAS_STILL_DRAWING;

Flush();
SynchronizeCsThread();
SynchronizeDevice();
}
}
Expand Down

0 comments on commit 78c46f4

Please sign in to comment.