pcsx2:log: add MDEC_LOG trace capability

This commit is contained in:
Gregory Hainaut 2016-09-18 15:35:59 +02:00
parent 5ef2d538a0
commit ac1b3845b2
3 changed files with 10 additions and 0 deletions

View File

@ -303,6 +303,7 @@ struct SysTraceLogPack
SysTraceLog_IOP_Events DMAC; SysTraceLog_IOP_Events DMAC;
SysTraceLog_IOP_Events Counters; SysTraceLog_IOP_Events Counters;
SysTraceLog_IOP_Events CDVD; SysTraceLog_IOP_Events CDVD;
SysTraceLog_IOP_Events MDEC;
IOP_PACK(); IOP_PACK();
} IOP; } IOP;
@ -380,6 +381,7 @@ extern void __Log( const char* fmt, ... );
#define PAD_LOG macTrace(IOP.PAD) #define PAD_LOG macTrace(IOP.PAD)
#define GPU_LOG macTrace(IOP.GPU) #define GPU_LOG macTrace(IOP.GPU)
#define CDVD_LOG macTrace(IOP.CDVD) #define CDVD_LOG macTrace(IOP.CDVD)
#define MDEC_LOG macTrace(IOP.MDEC)
#define ELF_LOG SysConsole.ELF.IsActive() && SysConsole.ELF.Write #define ELF_LOG SysConsole.ELF.IsActive() && SysConsole.ELF.Write

View File

@ -329,6 +329,12 @@ TLD_IOP_CDVD = {
L"CDVD", L"CDVD", L"CDVD", L"CDVD",
pxDt("Detailed logging of CDVD hardware."), pxDt("Detailed logging of CDVD hardware."),
"CDVD" "CDVD"
},
TLD_IOP_MDEC = {
L"MDEC", L"MDEC",
pxDt("Detailed logging of the Motion (FMV) Decoder hardware unit."),
"MDEC"
}; };
SysTraceLogPack::SysTraceLogPack() SysTraceLogPack::SysTraceLogPack()
@ -379,5 +385,6 @@ SysTraceLogPack::IOP_PACK::IOP_PACK()
, DMAC (&TLD_IOP_DMAC) , DMAC (&TLD_IOP_DMAC)
, Counters (&TLD_IOP_Counters) , Counters (&TLD_IOP_Counters)
, CDVD (&TLD_IOP_CDVD) , CDVD (&TLD_IOP_CDVD)
, MDEC (&TLD_IOP_MDEC)
{ {
} }

View File

@ -163,6 +163,7 @@ static SysTraceLog * const traceLogList[] =
&SysTrace.IOP.DMAC, &SysTrace.IOP.DMAC,
&SysTrace.IOP.Counters, &SysTrace.IOP.Counters,
&SysTrace.IOP.CDVD, &SysTrace.IOP.CDVD,
&SysTrace.IOP.MDEC,
}; };
static const uint traceLogCount = ArraySize(traceLogList); static const uint traceLogCount = ArraySize(traceLogList);