rework FIFO crap so it can also be used for the GXFIFO crapo.

This commit is contained in:
StapleButter
2017-02-07 22:41:33 +01:00
parent 0562410de2
commit 2b7fac05c7
6 changed files with 79 additions and 89 deletions

View File

@ -20,24 +20,41 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
#include "FIFO.h"
namespace GPU3D
{
typedef struct
{
u8 Command;
u32 Param;
} CmdFIFOEntry;
FIFO<CmdFIFOEntry>* CmdFIFO;
FIFO<CmdFIFOEntry>* CmdPIPE;
bool Init()
{
CmdFIFO = new FIFO<CmdFIFOEntry>(256);
CmdPIPE = new FIFO<CmdFIFOEntry>(4);
return true;
}
void DeInit()
{
//
delete CmdFIFO;
delete CmdPIPE;
}
void Reset()
{
//
CmdFIFO->Clear();
CmdPIPE->Clear();
}
}