EfbInterface: Make efb and perf_values std::arrays

This commit is contained in:
Lioncash
2018-05-18 15:36:37 -04:00
parent c58b5e9b9b
commit 5eef8ba984

View File

@ -5,6 +5,7 @@
#include "VideoBackends/Software/EfbInterface.h" #include "VideoBackends/Software/EfbInterface.h"
#include <algorithm> #include <algorithm>
#include <array>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <vector> #include <vector>
@ -20,9 +21,9 @@
namespace EfbInterface 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) static inline u32 GetColorOffset(u16 x, u16 y)
{ {
@ -690,7 +691,7 @@ u32 GetPerfQueryResult(PerfQueryType type)
void ResetPerfQuery() void ResetPerfQuery()
{ {
std::memset(perf_values, 0, sizeof(perf_values)); perf_values = {};
} }
void IncPerfCounterQuadCount(PerfQueryType type) void IncPerfCounterQuadCount(PerfQueryType type)