diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-18 15:36:37 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-18 16:23:29 -0400 |
| commit | 5eef8ba9844806a795a635c6e364e3b9edc9a6c8 (patch) | |
| tree | ea699bffc342aff1f38150ba19204b8e022549da /Source/Core/VideoBackends/Software/EfbInterface.cpp | |
| parent | c58b5e9b9bccf9baac5d5fb5aa6e254528f19782 (diff) | |
EfbInterface: Make efb and perf_values std::arrays
Diffstat (limited to 'Source/Core/VideoBackends/Software/EfbInterface.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/EfbInterface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/EfbInterface.cpp b/Source/Core/VideoBackends/Software/EfbInterface.cpp index 1d5dab1f49..a133d63c2f 100644 --- a/Source/Core/VideoBackends/Software/EfbInterface.cpp +++ b/Source/Core/VideoBackends/Software/EfbInterface.cpp @@ -5,6 +5,7 @@ #include "VideoBackends/Software/EfbInterface.h" #include <algorithm> +#include <array> #include <cstddef> #include <cstring> #include <vector> @@ -20,9 +21,9 @@ namespace EfbInterface { -static u8 efb[EFB_WIDTH * EFB_HEIGHT * 6]; +static std::array<u8, EFB_WIDTH * EFB_HEIGHT * 6> efb; -static u32 perf_values[PQ_NUM_MEMBERS]; +static std::array<u32, PQ_NUM_MEMBERS> perf_values; static inline u32 GetColorOffset(u16 x, u16 y) { @@ -690,7 +691,7 @@ u32 GetPerfQueryResult(PerfQueryType type) void ResetPerfQuery() { - std::memset(perf_values, 0, sizeof(perf_values)); + perf_values = {}; } void IncPerfCounterQuadCount(PerfQueryType type) |
