From e62675400038b42059ed9455614eb8851179d426 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 8 Jan 2024 22:32:32 +1000 Subject: [PATCH] IPU: Remove last parameter from IDCT_Add It was always being used uninitialized. --- pcsx2/IPU/IPU_MultiISA.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2/IPU/IPU_MultiISA.cpp b/pcsx2/IPU/IPU_MultiISA.cpp index 194a2b0172..5ffb0a1bf2 100644 --- a/pcsx2/IPU/IPU_MultiISA.cpp +++ b/pcsx2/IPU/IPU_MultiISA.cpp @@ -346,11 +346,11 @@ __ri static void IDCT_Copy(s16* block, u8* dest, const int stride) // stride = increment for dest in 16-bit units (typically either 8 [128 bits] or 16 [256 bits]). -__ri static void IDCT_Add(const int last, s16* block, s16* dest, const int stride) +__ri static void IDCT_Add(s16* block, s16* dest, const int stride) { // on the IPU, stride is always assured to be multiples of QWC (bottom 3 bits are 0). - if (last != 129 || (block[0] & 7) == 4) + if ((block[0] & 7) == 4) { IDCT_Block(block); @@ -954,7 +954,7 @@ __ri static bool slice_non_intra_DCT(s16 * const dest, const int stride, const b return false; } - IDCT_Add(last, decoder.DCTblock, dest, stride); + IDCT_Add(decoder.DCTblock, dest, stride); return true; }