IPU: Fix SETTH threshold masks

Bits 8:0 for transparency, and 24:16 for translucency.
This commit is contained in:
kozarovv authored and refractionpcsx2 committed 2021-07-08 09:20:59 +01:00
1 parent 178354099d
commit 7dd4fd16fd
1 file changed
+3 -3
+3 -3
View File
@@ -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);
}
// --------------------------------------------------------------------------------------