SPU: Remove wrong clamp in MFC_Size

Just crashes real MFC.
This commit is contained in:
Eladash 2023-07-09 12:41:48 +03:00 committed by Elad Ashkenazi
parent cae2e7de80
commit 482dd0e8f8
2 changed files with 2 additions and 2 deletions

View File

@ -6811,7 +6811,7 @@ public:
}
case MFC_Size:
{
set_reg_fixed(s_reg_mfc_size, trunc<u16>(val & 0x7fff).eval(m_ir));
set_reg_fixed(s_reg_mfc_size, trunc<u16>(val).eval(m_ir));
return;
}
case MFC_TagID:

View File

@ -5278,7 +5278,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
case MFC_Size:
{
ch_mfc_cmd.size = value & 0x7fff;
ch_mfc_cmd.size = static_cast<u16>(std::min<u32>(value, 0xffff));
return true;
}