IPU: Fix SETTH threshold masks

Bits 8:0 for transparency, and 24:16 for translucency.
This commit is contained in:
kozarovv 2021-07-08 09:31:30 +02:00 committed by refractionpcsx2
parent 178354099d
commit 7dd4fd16fd
1 changed files with 3 additions and 3 deletions

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);
}
// --------------------------------------------------------------------------------------