mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:04:58 +00:00
Merge 072faead41
into d220d188ff
This commit is contained in:
commit
914a7d0d69
2 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) {
|
|||
}
|
||||
|
||||
void GPU::startCommandList(u32 addr, u32 size) {
|
||||
cmdBuffStart = static_cast<u32*>(mem.getReadPointer(addr));
|
||||
cmdBuffStart = getPointerPhys<u32>(addr);
|
||||
if (!cmdBuffStart) Helpers::panic("Couldn't get buffer for command list");
|
||||
// TODO: This is very memory unsafe. We get a pointer to FCRAM and just keep writing without checking if we're gonna go OoB
|
||||
|
||||
|
|
|
@ -436,7 +436,7 @@ void GPUService::processCommandList(u32* cmd) {
|
|||
[[maybe_unused]] const bool flushBuffer = cmd[7] == 1; // Flush buffer (0 = don't flush, 1 = flush)
|
||||
|
||||
log("GPU::GSP::processCommandList. Address: %08X, size in bytes: %08X\n", address, size);
|
||||
gpu.startCommandList(address, size);
|
||||
gpu.startCommandList(VaddrToPaddr(address), size);
|
||||
requestInterrupt(GPUInterrupt::P3D); // Send an IRQ when command list processing is over
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue