~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/Core/Src/FifoPlayer/FifoAnalyzer.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
#ifndef _FIFOANALYZER_H
 
6
#define _FIFOANALYZER_H
 
7
 
 
8
#include "Common.h"
 
9
 
 
10
#include "BPMemory.h"
 
11
#include "CPMemory.h"
 
12
 
 
13
namespace FifoAnalyzer
 
14
{
 
15
        void Init();
 
16
 
 
17
        u8 ReadFifo8(u8 *&data);
 
18
        u16 ReadFifo16(u8 *&data);
 
19
        u32 ReadFifo32(u8 *&data);
 
20
 
 
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);
 
26
 
 
27
        struct CPMemory
 
28
        {
 
29
                TVtxDesc vtxDesc;
 
30
                VAT vtxAttr[8];
 
31
                u32 arrayBases[16];
 
32
                u32 arrayStrides[16];
 
33
        };
 
34
 
 
35
        void LoadCPReg(u32 subCmd, u32 value, CPMemory &cpMem);
 
36
 
 
37
        u32 CalculateVertexSize(int vatIndex, const CPMemory &cpMem);
 
38
        void CalculateVertexElementSizes(int sizes[], int vatIndex, const CPMemory &cpMem);
 
39
}
 
40
 
 
41
#endif