video_core: a fix for multi submits processing (temporary code)

This commit is contained in:
psucien 2024-05-22 20:22:42 +02:00
parent 66b695f5c7
commit 62fd72009b
2 changed files with 13 additions and 5 deletions

View file

@ -34,10 +34,15 @@ void Liverpool::Process(std::stop_token stoken) {
gfx_ring.pop();
}
ASSERT_MSG(dcb.size() != 0, "Empty command list received");
ProcessCmdList(dcb.data(), dcb.size());
ASSERT_MSG(!dcb.empty(), "Empty command list received");
ProcessCmdList(dcb.data(), dcb.size_bytes());
cv_complete.notify_all();
{
std::unique_lock lock{m_ring_access};
if (gfx_ring.empty()) {
cv_complete.notify_all();
}
}
}
}