mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GE Debugger: Fix matrix dumping.
Record wasn't seeing the commands to dump them.
This commit is contained in:
parent
e45b04a699
commit
fcfbe8cabb
3 changed files with 9 additions and 9 deletions
|
@ -644,9 +644,7 @@ static void ExecuteFree() {
|
|||
}
|
||||
|
||||
static bool ExecuteCommands() {
|
||||
//for (const Command &cmd : commands) {
|
||||
for (size_t i = 0; i < commands.size(); ++i) {
|
||||
const Command &cmd = commands[i];
|
||||
for (const Command &cmd : commands) {
|
||||
switch (cmd.type) {
|
||||
case CommandType::INIT:
|
||||
ExecuteInit(cmd.ptr, cmd.sz);
|
||||
|
|
|
@ -903,7 +903,8 @@ bool GPUCommon::InterpretList(DisplayList &list) {
|
|||
gpuState = list.pc == list.stall ? GPUSTATE_STALL : GPUSTATE_RUNNING;
|
||||
guard.unlock();
|
||||
|
||||
const bool useDebugger = host->GPUDebuggingActive() || GPURecord::IsActive();
|
||||
debugRecording_ = GPURecord::IsActive();
|
||||
const bool useDebugger = host->GPUDebuggingActive() || debugRecording_;
|
||||
const bool useFastRunLoop = !dumpThisFrame_ && !useDebugger;
|
||||
while (gpuState == GPUSTATE_RUNNING) {
|
||||
{
|
||||
|
@ -1582,7 +1583,7 @@ void GPUCommon::Execute_WorldMtxNum(u32 op, u32 diff) {
|
|||
}
|
||||
}
|
||||
|
||||
const int count = i;
|
||||
const int count = debugRecording_ ? 0 : i;
|
||||
gstate.worldmtxnum = (GE_CMD_WORLDMATRIXNUMBER << 24) | ((op + count) & 0xF);
|
||||
|
||||
// Skip over the loaded data, it's done now.
|
||||
|
@ -1623,7 +1624,7 @@ void GPUCommon::Execute_ViewMtxNum(u32 op, u32 diff) {
|
|||
}
|
||||
}
|
||||
|
||||
const int count = i;
|
||||
const int count = debugRecording_ ? 0 : i;
|
||||
gstate.viewmtxnum = (GE_CMD_VIEWMATRIXNUMBER << 24) | ((op + count) & 0xF);
|
||||
|
||||
// Skip over the loaded data, it's done now.
|
||||
|
@ -1664,7 +1665,7 @@ void GPUCommon::Execute_ProjMtxNum(u32 op, u32 diff) {
|
|||
}
|
||||
}
|
||||
|
||||
const int count = i;
|
||||
const int count = debugRecording_ ? 0 : i;
|
||||
gstate.projmtxnum = (GE_CMD_PROJMATRIXNUMBER << 24) | ((op + count) & 0x1F);
|
||||
|
||||
// Skip over the loaded data, it's done now.
|
||||
|
@ -1706,7 +1707,7 @@ void GPUCommon::Execute_TgenMtxNum(u32 op, u32 diff) {
|
|||
}
|
||||
}
|
||||
|
||||
const int count = i;
|
||||
const int count = debugRecording_ ? 0 : i;
|
||||
gstate.texmtxnum = (GE_CMD_TGENMATRIXNUMBER << 24) | ((op + count) & 0xF);
|
||||
|
||||
// Skip over the loaded data, it's done now.
|
||||
|
@ -1766,7 +1767,7 @@ void GPUCommon::Execute_BoneMtxNum(u32 op, u32 diff) {
|
|||
}
|
||||
}
|
||||
|
||||
const int count = i;
|
||||
const int count = debugRecording_ ? 0 : i;
|
||||
gstate.boneMatrixNumber = (GE_CMD_BONEMATRIXNUMBER << 24) | ((op + count) & 0x7F);
|
||||
|
||||
// Skip over the loaded data, it's done now.
|
||||
|
|
|
@ -337,6 +337,7 @@ protected:
|
|||
|
||||
bool dumpNextFrame_;
|
||||
bool dumpThisFrame_;
|
||||
bool debugRecording_;
|
||||
bool interruptsEnabled_;
|
||||
bool resized_;
|
||||
DrawType lastDraw_;
|
||||
|
|
Loading…
Add table
Reference in a new issue