1
// Copyright 2013 Dolphin Emulator Project
2
// Licensed under GPLv2
3
// Refer to the license.txt file included.
5
#ifndef _FIFOANALYZER_H
6
#define _FIFOANALYZER_H
13
namespace FifoAnalyzer
17
u8 ReadFifo8(u8 *&data);
18
u16 ReadFifo16(u8 *&data);
19
u32 ReadFifo32(u8 *&data);
21
// TODO- move to video common
22
void InitBPMemory(BPMemory *bpMem);
23
BPCmd DecodeBPCmd(u32 value, const BPMemory &bpMem);
24
void LoadBPReg(const BPCmd &bp, BPMemory &bpMem);
25
void GetTlutLoadData(u32 &tlutAddr, u32 &memAddr, u32 &tlutXferCount, BPMemory &bpMem);
35
void LoadCPReg(u32 subCmd, u32 value, CPMemory &cpMem);
37
u32 CalculateVertexSize(int vatIndex, const CPMemory &cpMem);
38
void CalculateVertexElementSizes(int sizes[], int vatIndex, const CPMemory &cpMem);