GS: Fix a bunch of texture copy counters not adding

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-06-04 18:10:46 +01:00
1 parent f1702b5693
commit 2d8a4e13e6
3 files changed
+5 -5

No files matched your search

+1 -1
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();
+2 -2
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);
}
+2 -2
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);
}