mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 02:26:07 +00:00
liverpool: Flush vulkan work on task finish
This commit is contained in:
parent
e7c4ffe032
commit
b0ec685f10
|
@ -123,6 +123,10 @@ void Liverpool::Process(std::stop_token stoken) {
|
||||||
if (task.done()) {
|
if (task.done()) {
|
||||||
task.destroy();
|
task.destroy();
|
||||||
|
|
||||||
|
if (rasterizer) {
|
||||||
|
rasterizer->Flush();
|
||||||
|
}
|
||||||
|
|
||||||
std::scoped_lock lock{queue.m_access};
|
std::scoped_lock lock{queue.m_access};
|
||||||
queue.submits.pop();
|
queue.submits.pop();
|
||||||
|
|
||||||
|
@ -134,10 +138,6 @@ void Liverpool::Process(std::stop_token stoken) {
|
||||||
|
|
||||||
if (submit_done) {
|
if (submit_done) {
|
||||||
VideoCore::EndCapture();
|
VideoCore::EndCapture();
|
||||||
|
|
||||||
if (rasterizer) {
|
|
||||||
rasterizer->Flush();
|
|
||||||
}
|
|
||||||
submit_done = false;
|
submit_done = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue