GS: Fix a bunch of texture copy counters not adding

This commit is contained in:
Connor McLaughlin 2022-05-31 00:02:43 +10:00 committed by refractionpcsx2
parent f1702b5693
commit 2d8a4e13e6
3 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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);
}

View File

@ -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);
}