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/OGL/OGLPerfQuery.cpp | |
| parent | e0090024119184238032923987af1c8d7167b7b5 (diff) | |
Move xfb tracking and IR scaling out of RenderBase
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp index cae5f71297..a5bd155afb 100644 --- a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp +++ b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp @@ -9,7 +9,7 @@ #include "Common/GL/GLExtensions/GLExtensions.h" #include "VideoBackends/OGL/OGLGfx.h" -#include "VideoCommon/RenderBase.h" +#include "VideoCommon/FramebufferManager.h" #include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" @@ -165,7 +165,7 @@ void PerfQueryGL::FlushOne() // TODO: Dropping the lower 2 bits from this count should be closer to actual // hardware behavior when drawing triangles. result = static_cast<u64>(result) * EFB_WIDTH * EFB_HEIGHT / - (g_renderer->GetTargetWidth() * g_renderer->GetTargetHeight()); + (g_framebuffer_manager->GetEFBWidth() * g_framebuffer_manager->GetEFBHeight()); // Adjust for multisampling if (g_ActiveConfig.iMultisamples > 1) @@ -265,7 +265,7 @@ void PerfQueryGLESNV::FlushOne() // TODO: Dropping the lower 2 bits from this count should be closer to actual // hardware behavior when drawing triangles. const u64 native_res_result = static_cast<u64>(result) * EFB_WIDTH * EFB_HEIGHT / - (g_renderer->GetTargetWidth() * g_renderer->GetTargetHeight()); + (g_framebuffer_manager->GetEFBWidth() * g_framebuffer_manager->GetEFBHeight()); m_results[entry.query_group].fetch_add(static_cast<u32>(native_res_result), std::memory_order_relaxed); |
