Investigate
This commit is contained in:
parent
9d2b8d902d
commit
7380281b3d
|
@ -62,7 +62,10 @@ namespace JabyEngine {
|
||||||
}
|
}
|
||||||
|
|
||||||
void render_dma(const uint32_t* data) {
|
void render_dma(const uint32_t* data) {
|
||||||
wait_ready_for_CMD();
|
//wait_ready_for_CMD();
|
||||||
|
#pragma message("Can we set_adr and block_ctrl, then wait and then start?!")
|
||||||
|
DMA_IO::GPU.wait();
|
||||||
|
|
||||||
// DPCR already enabled
|
// DPCR already enabled
|
||||||
GPU_IO::GP1.write(GPU_IO::Command::DMADirection(GPU_IO::DMADirection::CPU2GPU));
|
GPU_IO::GP1.write(GPU_IO::Command::DMADirection(GPU_IO::DMADirection::CPU2GPU));
|
||||||
DMA_IO::GPU.set_adr(reinterpret_cast<uintptr_t>(data));
|
DMA_IO::GPU.set_adr(reinterpret_cast<uintptr_t>(data));
|
||||||
|
|
Loading…
Reference in New Issue