Support basic linked elements
This commit is contained in:
@@ -63,6 +63,15 @@ namespace JabyEngine {
|
||||
GPU_IO::GP0 = data[n];
|
||||
}
|
||||
}
|
||||
|
||||
void render_dma(const uint32_t* data) {
|
||||
wait_ready_for_CMD();
|
||||
// DPCR already enabled
|
||||
GPU_IO::GP1 = GPU_IO::Command::DMADirection(GPU_IO::DMADirection::CPU2GPU);
|
||||
DMA_IO::GPU.set_adr(reinterpret_cast<uintptr_t>(data));
|
||||
DMA_IO::GPU.block_ctrl = 0;
|
||||
DMA_IO::GPU.channel_ctrl = DMA_IO::CHCHR_t::StartGPULinked();
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef USE_NO$PSX
|
||||
|
Reference in New Issue
Block a user