From 7dd4fd16fd203974bab0ee684af33e64d1dfdb5b Mon Sep 17 00:00:00 2001 From: kozarovv <15552250+kozarovv@users.noreply.github.com> Date: Thu, 8 Jul 2021 09:31:30 +0200 Subject: [PATCH] IPU: Fix SETTH threshold masks Bits 8:0 for transparency, and 24:16 for translucency. --- pcsx2/IPU/IPU.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2/IPU/IPU.cpp b/pcsx2/IPU/IPU.cpp index 391d895c1f..14332f2f3d 100644 --- a/pcsx2/IPU/IPU.cpp +++ b/pcsx2/IPU/IPU.cpp @@ -659,9 +659,9 @@ static __ri bool ipuPACK(tIPU_CMD_CSC csc) static void ipuSETTH(u32 val) { - s_thresh[0] = (val & 0xff); - s_thresh[1] = ((val >> 16) & 0xff); - IPU_LOG("SETTH (Set threshold value)command %x.", val&0xff00ff); + s_thresh[0] = (val & 0x1ff); + s_thresh[1] = ((val >> 16) & 0x1ff); + IPU_LOG("SETTH (Set threshold value)command %x.", val&0x1ff01ff); } // --------------------------------------------------------------------------------------