mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-06 22:54:16 +01:00
[d3d11] Added missing CS thread sync for non-discard Map()
This commit is contained in:
parent
fb4663fcc8
commit
78c46f444a
@ -1655,7 +1655,7 @@ namespace dxvk {
|
|||||||
// submit the current command buffer in order to keep the GPU busy.
|
// submit the current command buffer in order to keep the GPU busy.
|
||||||
// This also helps keep the command buffers at a reasonable size.
|
// This also helps keep the command buffers at a reasonable size.
|
||||||
if (m_drawCount >= 500)
|
if (m_drawCount >= 500)
|
||||||
this->Flush();
|
Flush();
|
||||||
|
|
||||||
for (UINT i = 0; i < m_state.om.renderTargetViews.size(); i++) {
|
for (UINT i = 0; i < m_state.om.renderTargetViews.size(); i++) {
|
||||||
D3D11RenderTargetView* view = nullptr;
|
D3D11RenderTargetView* view = nullptr;
|
||||||
|
@ -121,6 +121,7 @@ namespace dxvk {
|
|||||||
return DXGI_ERROR_WAS_STILL_DRAWING;
|
return DXGI_ERROR_WAS_STILL_DRAWING;
|
||||||
|
|
||||||
Flush();
|
Flush();
|
||||||
|
SynchronizeCsThread();
|
||||||
SynchronizeDevice();
|
SynchronizeDevice();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user