From 1c74867c71ffd68dc0712599081153f22229afa3 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sat, 12 Feb 2022 16:31:04 -0800 Subject: [PATCH] GPFifo: Make s_gather_pipe size new constant GATHER_PIPE_EXTRA_SIZE --- Source/Core/Core/HW/GPFifo.cpp | 2 +- Source/Core/Core/HW/GPFifo.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/GPFifo.cpp b/Source/Core/Core/HW/GPFifo.cpp index a2c568bb38..ef05946c2b 100644 --- a/Source/Core/Core/HW/GPFifo.cpp +++ b/Source/Core/Core/HW/GPFifo.cpp @@ -29,7 +29,7 @@ namespace GPFifo // the same function could use both methods. Compile 2 different versions of each such block? // More room for the fastmodes -alignas(32) static u8 s_gather_pipe[GATHER_PIPE_SIZE * 16]; +alignas(GATHER_PIPE_SIZE) static u8 s_gather_pipe[GATHER_PIPE_EXTRA_SIZE]; static size_t GetGatherPipeCount() { diff --git a/Source/Core/Core/HW/GPFifo.h b/Source/Core/Core/HW/GPFifo.h index 95c100a1eb..2925e82c05 100644 --- a/Source/Core/Core/HW/GPFifo.h +++ b/Source/Core/Core/HW/GPFifo.h @@ -10,6 +10,7 @@ class PointerWrap; namespace GPFifo { constexpr u32 GATHER_PIPE_SIZE = 32; +constexpr u32 GATHER_PIPE_EXTRA_SIZE = GATHER_PIPE_SIZE * 16; // Init void Init();