[GPU] Stub FlushCacheRange, increase size of shader memory

This commit is contained in:
wheremyfoodat 2022-10-09 19:48:51 +03:00
parent 4930c1a947
commit 5f7804e99f
3 changed files with 15 additions and 8 deletions

View file

@ -18,7 +18,8 @@ namespace GXCommands {
enum : u32 {
ProcessCommandList = 1,
MemoryFill = 2,
TriggerDisplayTransfer = 3
TriggerDisplayTransfer = 3,
FlushCacheRegions = 5
};
}
@ -214,6 +215,7 @@ void GPUService::processCommandBuffer() {
case GXCommands::ProcessCommandList: processCommandList(cmd); break;
case GXCommands::MemoryFill: memoryFill(cmd); break;
case GXCommands::TriggerDisplayTransfer: triggerDisplayTransfer(cmd); break;
case GXCommands::FlushCacheRegions: flushCacheRegions(cmd); break;
default: Helpers::panic("GSP::GPU::ProcessCommands: Unknown cmd ID %d", cmdID);
}
@ -252,6 +254,10 @@ void GPUService::triggerDisplayTransfer(u32* cmd) {
requestInterrupt(GPUInterrupt::PPF); // Send "Display transfer finished" interrupt
}
void GPUService::flushCacheRegions(u32* cmd) {
log("GSP::GPU::FlushCacheRegions (Stubbed)\n");
}
// Actually send command list (aka display list) to GPU
void GPUService::processCommandList(u32* cmd) {
u32 address = cmd[1] & ~7; // Buffer address