Fix IO Rendering between DMA calls

This commit is contained in:
2024-03-16 22:46:12 -05:00
parent fecd8172c7
commit 13e342565d
3 changed files with 6 additions and 3 deletions

View File

@@ -64,6 +64,11 @@ namespace JabyEngine {
void render(const uint32_t* data, size_t words) {
wait_ready_for_CMD();
#ifdef __SUPPORT_PS3__
// The PS3 needs explict change to FiFo
GPU_IO::GP1.write(GPU_IO::Command::DMADirection(GPU_IO::DMADirection::Fifo));
#endif // __SUPPORT_PS3__
for(size_t n = 0; n < words; n++) {
GPU_IO::GP0.write({data[n]});
}