rsx: Fix false desync events

This commit is contained in:
Eladash 2020-07-16 15:02:47 +03:00 committed by Megamouse
parent 42a9ac9e6c
commit 268bcd1c7b

View File

@ -177,15 +177,6 @@ namespace rsx
return; return;
} }
// Validate the args ptr if the command attempts to read from it
m_args_ptr = m_iotable->get_addr(m_internal_get + 4);
if (m_args_ptr == umax) [[unlikely]]
{
// Optional recovery
data.reg = FIFO_ERROR;
return;
}
verify(HERE), !m_remaining_commands; verify(HERE), !m_remaining_commands;
const u32 count = (m_cmd >> 18) & 0x7ff; const u32 count = (m_cmd >> 18) & 0x7ff;
@ -196,6 +187,15 @@ namespace rsx
return; return;
} }
// Validate the args ptr if the command attempts to read from it
m_args_ptr = m_iotable->get_addr(m_internal_get + 4);
if (m_args_ptr == umax) [[unlikely]]
{
// Optional recovery
data.reg = FIFO_ERROR;
return;
}
if (count > 1) if (count > 1)
{ {
// Set up readback parameters // Set up readback parameters