diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-31 17:26:46 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-02-09 18:36:20 +1300 |
| commit | 11de923dcb7e6a7e1b29e5b15cb2bf71ede22b97 (patch) | |
| tree | 52769efe7cac3f705d0daddb83ab59f68d9511ed /Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp | |
| parent | e0090024119184238032923987af1c8d7167b7b5 (diff) | |
Move xfb tracking and IR scaling out of RenderBase
Diffstat (limited to 'Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp b/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp index e1535f7c32..d72b88c0fb 100644 --- a/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp +++ b/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp @@ -114,8 +114,8 @@ void PerfQuery::FlushOne() // NOTE: Reported pixel metrics should be referenced to native resolution // TODO: Dropping the lower 2 bits from this count should be closer to actual // hardware behavior when drawing triangles. - const u64 native_res_result = result * EFB_WIDTH / g_renderer->GetTargetWidth() * EFB_HEIGHT / - g_renderer->GetTargetHeight(); + const u64 native_res_result = result * EFB_WIDTH / g_framebuffer_manager->GetEFBWidth() * EFB_HEIGHT / + g_framebuffer_manager->GetEFBHeight(); m_results[entry.query_group].fetch_add(static_cast<u32>(native_res_result), std::memory_order_relaxed); @@ -143,8 +143,8 @@ void PerfQuery::WeakFlush() if (hr == S_OK) { // NOTE: Reported pixel metrics should be referenced to native resolution - const u64 native_res_result = result * EFB_WIDTH / g_renderer->GetTargetWidth() * EFB_HEIGHT / - g_renderer->GetTargetHeight(); + const u64 native_res_result = result * EFB_WIDTH / g_framebuffer_manager->GetEFBWidth() * EFB_HEIGHT / + g_framebuffer_manager->GetEFBHeight(); m_results[entry.query_group].store(static_cast<u32>(native_res_result), std::memory_order_relaxed); |
