mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
GPU: Only accept DMA writes when FIFO is empty or command incomplete
Fixes a bunch of games, including Red Asphalt, Little Princess, Vampire Hunter D main menu when combined with tight DMA sync.
This commit is contained in:
parent
df12f08ac3
commit
473cfffa0c
|
@ -246,7 +246,7 @@ void GPU::UpdateDMARequest()
|
|||
{
|
||||
case BlitterState::Idle:
|
||||
m_GPUSTAT.ready_to_send_vram = false;
|
||||
m_GPUSTAT.ready_to_recieve_dma = (m_fifo.GetSize() < m_fifo_size);
|
||||
m_GPUSTAT.ready_to_recieve_dma = (m_fifo.IsEmpty() || m_fifo.GetSize() < m_command_total_words);
|
||||
break;
|
||||
|
||||
case BlitterState::WritingVRAM:
|
||||
|
|
Loading…
Reference in a new issue