Permalink
Browse files

EfbInterface: Make efb and perf_values std::arrays

  • Loading branch information...
lioncash committed May 18, 2018
1 parent c58b5e9 commit 5eef8ba9844806a795a635c6e364e3b9edc9a6c8
Showing with 4 additions and 3 deletions.
  1. +4 −3 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)

0 comments on commit 5eef8ba

Please sign in to comment.