Skip to content

Commit

Permalink
liverpool: Flush vulkan work on task finish shadps4-emu#1802
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolix29 committed Dec 16, 2024
1 parent f53c830 commit d62dc92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/video_core/amdgpu/liverpool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ static const char* ccb_task_name{"CCB_TASK"};
static_assert(Liverpool::NumComputeRings <= MAX_NAMES);

#define NAME_NUM(z, n, name) BOOST_PP_STRINGIZE(name) BOOST_PP_STRINGIZE(n),
#define NAME_ARRAY(name, num) {BOOST_PP_REPEAT(num, NAME_NUM, name)}
#define NAME_ARRAY(name, num) \
{ BOOST_PP_REPEAT(num, NAME_NUM, name) }

static const char* acb_task_name[] = NAME_ARRAY(ACB_TASK, MAX_NAMES);

Expand Down Expand Up @@ -123,6 +124,9 @@ void Liverpool::Process(std::stop_token stoken) {
if (task.done()) {
task.destroy();

if (rasterizer) {
rasterizer->Flush();
}
std::scoped_lock lock{queue.m_access};
queue.submits.pop();

Expand All @@ -134,10 +138,6 @@ void Liverpool::Process(std::stop_token stoken) {

if (submit_done) {
VideoCore::EndCapture();

if (rasterizer) {
rasterizer->Flush();
}
submit_done = false;
}

Expand Down

0 comments on commit d62dc92

Please sign in to comment.