mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-16 13:46:34 +00:00
ea9f0be28a
Well, ReapplyGfxState() seems kinda dangerous now...
38 lines
774 B
C++
38 lines
774 B
C++
#pragma once
|
|
|
|
#include "GPUInterface.h"
|
|
|
|
class GPUCommon : public GPUInterface
|
|
{
|
|
public:
|
|
GPUCommon() :
|
|
dlIdGenerator(1),
|
|
currentList(NULL),
|
|
stackptr(0),
|
|
dumpThisFrame_(false),
|
|
dumpNextFrame_(false)
|
|
{}
|
|
|
|
virtual void PreExecuteOp(u32 op, u32 diff);
|
|
virtual bool InterpretList(DisplayList &list);
|
|
virtual bool ProcessDLQueue();
|
|
virtual void UpdateStall(int listid, u32 newstall);
|
|
virtual u32 EnqueueList(u32 listpc, u32 stall, bool head);
|
|
virtual int listStatus(int listid);
|
|
virtual void DoState(PointerWrap &p);
|
|
|
|
protected:
|
|
typedef std::deque<DisplayList> DisplayListQueue;
|
|
|
|
int dlIdGenerator;
|
|
DisplayList *currentList;
|
|
DisplayListQueue dlQueue;
|
|
|
|
u32 prev;
|
|
u32 stack[2];
|
|
u32 stackptr;
|
|
bool finished;
|
|
|
|
bool dumpNextFrame_;
|
|
bool dumpThisFrame_;
|
|
}; |