mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-25 23:25:41 +00:00
GPU: Tie idle bit to FIFO emptyness on VRAM write
Fixes Tenga Seiha lockup on boot.
This commit is contained in:
parent
53600746c7
commit
73136d7dc4
|
@ -448,19 +448,13 @@ void GPU::UpdateGPUIdle()
|
|||
switch (m_blitter_state)
|
||||
{
|
||||
case BlitterState::Idle:
|
||||
case BlitterState::DrawingPolyLine:
|
||||
m_GPUSTAT.gpu_idle = (m_pending_command_ticks <= 0 && m_fifo.IsEmpty());
|
||||
break;
|
||||
|
||||
case BlitterState::WritingVRAM:
|
||||
m_GPUSTAT.gpu_idle = false;
|
||||
break;
|
||||
|
||||
case BlitterState::ReadingVRAM:
|
||||
m_GPUSTAT.gpu_idle = false;
|
||||
break;
|
||||
|
||||
case BlitterState::DrawingPolyLine:
|
||||
m_GPUSTAT.gpu_idle = false;
|
||||
m_GPUSTAT.gpu_idle = m_fifo.IsEmpty();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue