mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2025-04-02 10:42:15 -04:00
31 lines
537 B
C++
31 lines
537 B
C++
// Defines the state of the entire graphics system
|
|
|
|
#pragma once
|
|
|
|
namespace GX
|
|
{
|
|
|
|
struct State
|
|
{
|
|
PERegs peregs;
|
|
CPHostRegs cpregs; // Mapped command processor registers
|
|
CPState cp;
|
|
XFState xf;
|
|
|
|
// PI FIFO
|
|
volatile uint32_t pi_cp_base;
|
|
volatile uint32_t pi_cp_top;
|
|
volatile uint32_t pi_cp_wrptr; // also WRAP bit
|
|
|
|
// Command Processor
|
|
Thread* cp_thread; // CP FIFO thread
|
|
size_t tickPerFifo;
|
|
int64_t updateTbrValue;
|
|
|
|
// Stats
|
|
size_t cpLoads;
|
|
size_t xfLoads;
|
|
size_t bpLoads;
|
|
};
|
|
|
|
}
|