diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-18 15:13:03 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-18 15:35:08 -0400 |
| commit | c58b5e9b9bccf9baac5d5fb5aa6e254528f19782 (patch) | |
| tree | f1934294892823acb55cf97461831b2682dc7fc3 /Source/Core/VideoBackends/Software/SWmain.cpp | |
| parent | f3a8874214b61f33332b826a37ac9ca25dee1477 (diff) | |
EfbInterface: Make perf_values internally linked
Instead, expose functions to operate with it. This way we keep the
internal representation concealed.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWmain.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 8765a28e4c..18a739726b 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -38,11 +38,8 @@ public: ~PerfQuery() {} void EnableQuery(PerfQueryGroup type) override {} void DisableQuery(PerfQueryGroup type) override {} - void ResetQuery() override - { - memset(EfbInterface::perf_values, 0, sizeof(EfbInterface::perf_values)); - } - u32 GetQueryResult(PerfQueryType type) override { return EfbInterface::perf_values[type]; } + void ResetQuery() override { EfbInterface::ResetPerfQuery(); } + u32 GetQueryResult(PerfQueryType type) override { return EfbInterface::GetPerfQueryResult(type); } void FlushResults() override {} bool IsFlushed() const override { return true; } }; |
