Skip to content

Commit

Permalink
GPU: Allow DMAs in Mode 1
Browse files Browse the repository at this point in the history
Exact behaviour is still unknown, but it works on console (Nicolas
Noble's torus demo).
  • Loading branch information
stenzek committed Jul 2, 2024
1 parent fbdeea7 commit aabe39d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/gpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ class GPU
// DMA access
void DMARead(u32* words, u32 word_count);

ALWAYS_INLINE bool BeginDMAWrite() const { return (m_GPUSTAT.dma_direction == DMADirection::CPUtoGP0); }
ALWAYS_INLINE bool BeginDMAWrite() const
{
return (m_GPUSTAT.dma_direction == DMADirection::CPUtoGP0 || m_GPUSTAT.dma_direction == DMADirection::FIFO);
}
ALWAYS_INLINE void DMAWrite(u32 address, u32 value)
{
m_fifo.Push((ZeroExtend64(address) << 32) | ZeroExtend64(value));
Expand Down

0 comments on commit aabe39d

Please sign in to comment.