diff --git a/Core/HLE/sceGe.cpp b/Core/HLE/sceGe.cpp index a044b6f0e9..203d014a41 100644 --- a/Core/HLE/sceGe.cpp +++ b/Core/HLE/sceGe.cpp @@ -103,8 +103,9 @@ public: ge_pending_cb.pop_front(); gpu->InterruptEnd(intrdata.listid); + // Seen in GoW. if (subintr >= 0) - WARN_LOG(HLE, "Ignoring interrupt for display list %d, already been released.", intrdata.listid); + DEBUG_LOG(HLE, "Ignoring interrupt for display list %d, already been released.", intrdata.listid); return false; } diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 437ce96f7b..91ec78786b 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -367,7 +367,6 @@ bool GPUCommon::InterpretList(DisplayList &list) double start = time_now_d(); currentList = &list; u32 op = 0; - prev = 0; gpuState = GPUSTATE_RUNNING; // I don't know if this is the correct place to zero this, but something @@ -390,6 +389,7 @@ bool GPUCommon::InterpretList(DisplayList &list) list.state = PSP_GE_DL_STATE_RUNNING; list.interrupted = false; + const bool dumpThisFrame = dumpThisFrame_; while (gpuState == GPUSTATE_RUNNING) { if (list.pc == list.stall) @@ -410,8 +410,9 @@ bool GPUCommon::InterpretList(DisplayList &list) u32 diff = op ^ gstate.cmdmem[cmd]; PreExecuteOp(op, diff); // TODO: Add a compiler flag to remove stuff like this at very-final build time. - if (dumpThisFrame_) { + if (dumpThisFrame) { char temp[256]; + u32 prev = Memory::ReadUnchecked_U32(list.pc - 4); GeDisassembleOp(list.pc, op, prev, temp); NOTICE_LOG(HLE, "%s", temp); } @@ -420,7 +421,6 @@ bool GPUCommon::InterpretList(DisplayList &list) ExecuteOp(op, diff); list.pc += 4; - prev = op; } UpdateCycles(list.pc - 4, list.pc); @@ -549,7 +549,8 @@ void GPUCommon::ExecuteOp(u32 op, u32 diff) { // Processed in GE_END. break; - case GE_CMD_END: + case GE_CMD_END: { + u32 prev = Memory::ReadUnchecked_U32(currentList->pc - 4); UpdateCycles(currentList->pc); switch (prev >> 24) { case GE_CMD_SIGNAL: @@ -675,6 +676,7 @@ void GPUCommon::ExecuteOp(u32 op, u32 diff) { break; } break; + } default: DEBUG_LOG(G3D,"DL Unknown: %08x @ %08x", op, currentList == NULL ? 0 : currentList->pc); @@ -697,6 +699,7 @@ void GPUCommon::DoState(PointerWrap &p) { currentList = &dls[currentID]; } p.Do(interruptRunning); + u32 prev; // TODO: kill. just didn't want to break states right now... p.Do(prev); p.Do(gpuState); p.Do(isbreak); diff --git a/GPU/GPUCommon.h b/GPU/GPUCommon.h index 0933f75129..89e38ad31b 100644 --- a/GPU/GPUCommon.h +++ b/GPU/GPUCommon.h @@ -41,7 +41,6 @@ protected: DisplayListQueue dlQueue; bool interruptRunning; - u32 prev; GPUState gpuState; bool isbreak; u64 drawCompleteTicks;