1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Savestates/RSX: Fix fifo_control::restore_state

This commit is contained in:
Eladash 2022-07-25 23:54:30 +03:00 committed by Ivan
parent cf77bb7cfc
commit 769f9e33e9

View File

@ -34,10 +34,10 @@ namespace rsx
{
m_cmd = cmd;
m_command_inc = ((m_cmd & RSX_METHOD_NON_INCREMENT_CMD_MASK) == RSX_METHOD_NON_INCREMENT_CMD) ? 0 : 4;
m_remaining_commands = count - 1;
m_internal_get = m_ctrl->get;
m_remaining_commands = count;
m_internal_get = m_ctrl->get - 4;
m_args_ptr = m_iotable->get_addr(m_internal_get);
m_command_reg = (m_cmd & 0xffff) + m_command_inc * (((m_cmd >> 18) - count) & 0x7ff);
m_command_reg = (m_cmd & 0xffff) + m_command_inc * (((m_cmd >> 18) - count) & 0x7ff) - m_command_inc;
}
void FIFO_control::inc_get(bool wait)