From 627c12bebee2ca082586f81793bc9bf6fe8dd03b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 31 May 2024 20:39:18 +1000 Subject: [PATCH] GPU: Fix IRQ request --- src/core/gpu.cpp | 1 + src/core/gpu_commands.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index e2c5bedb4..680700396 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -1261,6 +1261,7 @@ void GPU::WriteGP1(u32 value) { DEBUG_LOG("Acknowledge interrupt"); m_GPUSTAT.interrupt_request = false; + InterruptController::SetLineState(InterruptController::IRQ::GPU, false); } break; diff --git a/src/core/gpu_commands.cpp b/src/core/gpu_commands.cpp index f6173c60b..b2086e8c5 100644 --- a/src/core/gpu_commands.cpp +++ b/src/core/gpu_commands.cpp @@ -210,7 +210,7 @@ bool GPU::HandleInterruptRequestCommand() DEBUG_LOG("GP0 interrupt request"); m_GPUSTAT.interrupt_request = true; - InterruptController::SetLineState(InterruptController::IRQ::GPU, m_GPUSTAT.interrupt_request); + InterruptController::SetLineState(InterruptController::IRQ::GPU, true); m_fifo.RemoveOne(); AddCommandTicks(1);