mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[GPU/GSP] Get our first command list
This commit is contained in:
parent
8692e7fc6b
commit
09000da701
4 changed files with 21 additions and 6 deletions
|
@ -30,7 +30,7 @@ class Emulator {
|
|||
|
||||
public:
|
||||
Emulator() : window(sf::VideoMode(width, height), "Alber", sf::Style::Default, sf::ContextSettings(0, 0, 0, 4, 3)),
|
||||
kernel(cpu, memory, gpu), cpu(memory, kernel) {
|
||||
kernel(cpu, memory, gpu), cpu(memory, kernel), gpu(memory) {
|
||||
reset();
|
||||
window.setActive(true);
|
||||
}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#pragma once
|
||||
#include "helpers.hpp"
|
||||
#include "memory.hpp"
|
||||
|
||||
class GPU {
|
||||
Memory& mem;
|
||||
|
||||
public:
|
||||
GPU() {}
|
||||
GPU(Memory& mem) : mem(mem) {}
|
||||
void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control);
|
||||
void reset();
|
||||
};
|
|
@ -26,7 +26,7 @@ class GPUService {
|
|||
// This is the PID of that process
|
||||
u32 privilegedProcess;
|
||||
|
||||
void processCommands();
|
||||
void processCommandBuffer();
|
||||
|
||||
// Service commands
|
||||
void acquireRight(u32 messagePointer);
|
||||
|
@ -37,7 +37,8 @@ class GPUService {
|
|||
void writeHwRegs(u32 messagePointer);
|
||||
void writeHwRegsWithMask(u32 messagePointer);
|
||||
|
||||
// GPU commands processed via TriggerCmdReqQueue
|
||||
// GSP commands processed via TriggerCmdReqQueue
|
||||
void processCommandList(u32* cmd);
|
||||
void memoryFill(u32* cmd);
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue