[dxvk] Flush initialization context unconditionally

An application might need to wait for a resource to become available
just after it has been created, in which case  its initialization
commands might not have been dispatched yet. If no rendering commands
were issued on the immediate context prior to the wait operation,
WaitForResource would stall indefinitely.
This commit is contained in:
Philip Rebohle 2018-03-11 20:25:09 +01:00
parent bbbc552868
commit 4eacff21e9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 2 additions and 1 deletions

View File

@ -42,8 +42,9 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11ImmediateContext::Flush() {
m_parent->FlushInitContext();
if (m_csChunk->commandCount() != 0) {
m_parent->FlushInitContext();
m_drawCount = 0;
// Add commands to flush the threaded