Support basic linked elements

This commit is contained in:
Jaby
2023-06-12 21:47:56 +02:00
parent cc77237150
commit c705c3627c
8 changed files with 97 additions and 12 deletions

View File

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