GPU: Fix HW readback counter

This commit is contained in:
Stenzek 2024-03-31 14:02:44 +10:00
parent 8ebda3cdc8
commit 3ecc19c43f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -2709,7 +2709,7 @@ void GPU::GetStatsString(SmallStringBase& str)
{
str.format("{} HW | {} P | {} DC | {} RP | {} RB | {} C | {} W",
GPUDevice::RenderAPIToString(g_gpu_device->GetRenderAPI()), m_stats.num_primitives,
m_stats.host_num_draws, m_stats.host_num_render_passes, m_stats.num_reads, m_stats.num_copies,
m_stats.host_num_draws, m_stats.host_num_render_passes, m_stats.host_num_downloads, m_stats.num_copies,
m_stats.num_writes);
}
else

View file

@ -584,6 +584,7 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand()
}
// switch to pixel-by-pixel read state
m_counters.num_reads++;
m_blitter_state = BlitterState::ReadingVRAM;
m_command_total_words = 0;
return true;