From 92e16d436e14f132e0857ceaf77dd7573f9c7a10 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Tue, 10 Jul 2018 12:07:35 +0200 Subject: [PATCH] PVR DMA: VRAM->System RAM transfer was handled the other way around --- core/hw/pvr/pvr_sb_regs.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/core/hw/pvr/pvr_sb_regs.cpp b/core/hw/pvr/pvr_sb_regs.cpp index bb7b1a59d..f8653f86a 100644 --- a/core/hw/pvr/pvr_sb_regs.cpp +++ b/core/hw/pvr/pvr_sb_regs.cpp @@ -28,8 +28,8 @@ void do_pvr_dma() u32 dmaor = DMAC_DMAOR.full; u32 dmatcr = DMAC_DMATCR(0); - u32 src = SB_PDSTAR; - u32 dst = SB_PDSTAP; + u32 src = SB_PDSTAR; // System RAM address + u32 dst = SB_PDSTAP; // VRAM address u32 len = SB_PDLEN; if(0x8201 != (dmaor &DMAOR_MASK)) @@ -47,18 +47,11 @@ void do_pvr_dma() if (SB_PDDIR) { //PVR -> System -/* for (u32 i=0;i PVR - //TODO : FIX THAT , to warp around on dmas :) - //WriteMemBlock_nommu_ptr(dst,(u32*)GetMemPtr(src,len),len); WriteMemBlock_nommu_dma(dst,src,len); } @@ -153,4 +146,4 @@ void pvr_sb_Term() //Reset -> Reset - Initialise void pvr_sb_Reset(bool Manual) { -} \ No newline at end of file +}