mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-04 12:55:22 +12:00
Add GSP::GPU::AcquireRight
This commit is contained in:
parent
a56b67f3ba
commit
68698ae7a7
6 changed files with 49 additions and 8 deletions
|
@ -6,11 +6,17 @@
|
|||
class GPUService {
|
||||
Handle handle = KernelHandles::GPU;
|
||||
Memory& mem;
|
||||
u32& currentPID; // Process ID of the current process
|
||||
|
||||
// At any point in time only 1 process has privileges to use rendering functions
|
||||
// This is the PID of that process
|
||||
u32 privilegedProcess;
|
||||
|
||||
// Service commands
|
||||
void acquireRight(u32 messagePointer);
|
||||
|
||||
public:
|
||||
GPUService(Memory& mem) : mem(mem) {}
|
||||
GPUService(Memory& mem, u32& currentPID) : mem(mem), currentPID(currentPID) {}
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
|
@ -23,7 +23,7 @@ class ServiceManager {
|
|||
void registerClient(u32 messagePointer);
|
||||
|
||||
public:
|
||||
ServiceManager(std::array<u32, 16>& regs, Memory& mem);
|
||||
ServiceManager(std::array<u32, 16>& regs, Memory& mem, u32& currentPID);
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue