WriteGatherPipe: warn about wrapping in unlinked state

While legitimate, I can't imagine this happening intentionally.
This commit is contained in:
Tillmann Karras 2025-02-09 23:13:51 +00:00
parent 53e3878c59
commit 964cbd562b
1 changed files with 4 additions and 0 deletions

View File

@ -99,7 +99,11 @@ void GPFifoManager::UpdateGatherPipe()
// increase the CPUWritePointer
if (processor_interface.m_fifo_cpu_write_pointer == processor_interface.m_fifo_cpu_end)
{
if (!system.GetCommandProcessor().GetFifo().bFF_GPLinkEnable)
WARN_LOG_FMT(VIDEO, "write gather pipe wrapped while fifos are not linked");
processor_interface.m_fifo_cpu_write_pointer = processor_interface.m_fifo_cpu_base;
}
else
processor_interface.m_fifo_cpu_write_pointer += GATHER_PIPE_SIZE;