From 7380281b3d8f589f035f64773c3b88ac9e3afd28 Mon Sep 17 00:00:00 2001 From: Jaby Blubb Date: Sat, 16 Dec 2023 23:34:41 +0100 Subject: [PATCH] Investigate --- src/Library/src/GPU/gpu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Library/src/GPU/gpu.cpp b/src/Library/src/GPU/gpu.cpp index 781ed3e5..0705b142 100644 --- a/src/Library/src/GPU/gpu.cpp +++ b/src/Library/src/GPU/gpu.cpp @@ -62,7 +62,10 @@ namespace JabyEngine { } 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 GPU_IO::GP1.write(GPU_IO::Command::DMADirection(GPU_IO::DMADirection::CPU2GPU)); DMA_IO::GPU.set_adr(reinterpret_cast(data));