mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
SPU: Remove wrong clamp in MFC_Size
Just crashes real MFC.
This commit is contained in:
parent
cae2e7de80
commit
482dd0e8f8
2 changed files with 2 additions and 2 deletions
|
@ -6811,7 +6811,7 @@ public:
|
||||||
}
|
}
|
||||||
case MFC_Size:
|
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;
|
return;
|
||||||
}
|
}
|
||||||
case MFC_TagID:
|
case MFC_TagID:
|
||||||
|
|
|
@ -5278,7 +5278,7 @@ bool spu_thread::set_ch_value(u32 ch, u32 value)
|
||||||
|
|
||||||
case MFC_Size:
|
case MFC_Size:
|
||||||
{
|
{
|
||||||
ch_mfc_cmd.size = value & 0x7fff;
|
ch_mfc_cmd.size = static_cast<u16>(std::min<u32>(value, 0xffff));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue