From 2d8a4e13e6552cb827aed8602beb41ea1ab568ba Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 31 May 2022 00:02:43 +1000 Subject: [PATCH] GS: Fix a bunch of texture copy counters not adding --- pcsx2/GS/GSPerfMon.h | 2 +- pcsx2/GS/Renderers/DX12/GSDevice12.cpp | 4 ++-- pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pcsx2/GS/GSPerfMon.h b/pcsx2/GS/GSPerfMon.h index 15e8359ed5..5091de8211 100644 --- a/pcsx2/GS/GSPerfMon.h +++ b/pcsx2/GS/GSPerfMon.h @@ -52,7 +52,7 @@ public: u64 GetFrame() { return m_frame; } void EndFrame(); - void Put(counter_t c, double val = 0) { m_counters[c] += val; } + void Put(counter_t c, double val) { m_counters[c] += val; } double Get(counter_t c) { return m_stats[c]; } void Update(); diff --git a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp index 261dd18dcc..5fcb7eb658 100644 --- a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp +++ b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp @@ -2555,7 +2555,7 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config) const GSVector4 sRect(GSVector4(render_area) / GSVector4(rtsize.x, rtsize.y).xyxy()); DrawStretchRect(sRect, GSVector4(render_area), rtsize); - g_perfmon.Put(GSPerfMon::TextureCopies); + g_perfmon.Put(GSPerfMon::TextureCopies, 1); GL_POP(); } @@ -2640,7 +2640,7 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config) SetPipeline(m_hdr_finish_pipelines[pipe.ds].get()); SetUtilityTexture(hdr_rt, m_point_sampler_cpu); DrawStretchRect(sRect, GSVector4(render_area), rtsize); - g_perfmon.Put(GSPerfMon::TextureCopies); + g_perfmon.Put(GSPerfMon::TextureCopies, 1); Recycle(hdr_rt); } diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp index 135397bf26..a11b9edcab 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp @@ -3001,7 +3001,7 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config) const GSVector4 sRect(GSVector4(render_area) / GSVector4(rtsize.x, rtsize.y).xyxy()); DrawStretchRect(sRect, GSVector4(render_area), rtsize); - g_perfmon.Put(GSPerfMon::TextureCopies); + g_perfmon.Put(GSPerfMon::TextureCopies, 1); GL_POP(); } @@ -3101,7 +3101,7 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config) SetPipeline(m_hdr_finish_pipelines[pipe.ds][pipe.feedback_loop]); SetUtilityTexture(hdr_rt, m_point_sampler); DrawStretchRect(sRect, GSVector4(render_area), rtsize); - g_perfmon.Put(GSPerfMon::TextureCopies); + g_perfmon.Put(GSPerfMon::TextureCopies, 1); Recycle(hdr_rt); }