1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxvk] Only decrement pending submission count for command submissions

Otherwise we'll underflow the integer and break the D3D9 flush heuristic.
This commit is contained in:
Philip Rebohle 2023-06-22 20:15:00 +02:00
parent 80b27f95bc
commit 0895858901

View File

@ -215,7 +215,9 @@ namespace dxvk {
entry.submit.cmdList->notifyObjects(); entry.submit.cmdList->notifyObjects();
lock.lock(); lock.lock();
m_pending -= 1;
if (entry.submit.cmdList != nullptr)
m_pending -= 1;
m_finishQueue.pop(); m_finishQueue.pop();
m_finishCond.notify_all(); m_finishCond.notify_all();