WriteGatherPipe: warn about wrapping in unlinked state
While legitimate, I can't imagine this happening intentionally.
This commit is contained in:
parent
53e3878c59
commit
964cbd562b
|
@ -99,7 +99,11 @@ void GPFifoManager::UpdateGatherPipe()
|
||||||
|
|
||||||
// increase the CPUWritePointer
|
// increase the CPUWritePointer
|
||||||
if (processor_interface.m_fifo_cpu_write_pointer == processor_interface.m_fifo_cpu_end)
|
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;
|
processor_interface.m_fifo_cpu_write_pointer = processor_interface.m_fifo_cpu_base;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
processor_interface.m_fifo_cpu_write_pointer += GATHER_PIPE_SIZE;
|
processor_interface.m_fifo_cpu_write_pointer += GATHER_PIPE_SIZE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue