mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Added missing CS thread sync for non-discard Map()
This commit is contained in:
parent
fb4663fcc8
commit
78c46f444a
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -121,6 +121,7 @@ namespace dxvk {
|
|||
return DXGI_ERROR_WAS_STILL_DRAWING;
|
||||
|
||||
Flush();
|
||||
SynchronizeCsThread();
|
||||
SynchronizeDevice();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue