FifoAnalyzer: Remove layer of indirection.
This commit is contained in:
parent
9872f5b518
commit
17b7102b35
|
@ -31,11 +31,6 @@ void FifoRecordAnalyzer::Initialize(u32* cpMem)
|
|||
memcpy(s_CpMem.arrayStrides, cpMem + 0xB0, 16 * 4);
|
||||
}
|
||||
|
||||
void FifoRecordAnalyzer::AnalyzeGPCommand(u8* data)
|
||||
{
|
||||
FifoAnalyzer::AnalyzeCommand(data, DECODE_RECORD);
|
||||
}
|
||||
|
||||
void FifoRecordAnalyzer::ProcessLoadIndexedXf(u32 val, int array)
|
||||
{
|
||||
int index = val >> 16;
|
||||
|
|
|
@ -12,13 +12,9 @@
|
|||
|
||||
namespace FifoRecordAnalyzer
|
||||
{
|
||||
// Must call this before analyzing GP commands
|
||||
// Must call this before analyzing Fifo commands with FifoAnalyzer::AnalyzeCommand()
|
||||
void Initialize(u32* cpMem);
|
||||
|
||||
// Assumes data contains all information for the command
|
||||
// Calls FifoRecorder::UseMemory
|
||||
void AnalyzeGPCommand(u8* data);
|
||||
|
||||
void ProcessLoadIndexedXf(u32 val, int array);
|
||||
void WriteVertexArray(int arrayIndex, u8* vertexData, int vertexSize, int numVertices);
|
||||
};
|
||||
|
|
|
@ -68,7 +68,9 @@ void FifoRecorder::WriteGPCommand(u8* data, u32 size)
|
|||
{
|
||||
if (!m_SkipNextData)
|
||||
{
|
||||
FifoRecordAnalyzer::AnalyzeGPCommand(data);
|
||||
// Assumes data contains all information for the command
|
||||
// Calls FifoRecorder::UseMemory
|
||||
FifoAnalyzer::AnalyzeCommand(data, FifoAnalyzer::DECODE_RECORD);
|
||||
|
||||
// Copy data to buffer
|
||||
size_t currentSize = m_FifoData.size();
|
||||
|
|
Loading…
Reference in New Issue