This commit is contained in:
GPUCode 2023-08-22 10:01:07 +03:00 committed by GitHub
commit 914a7d0d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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
}