Skip to content

Commit

Permalink
Define IPUDMAMode 2 (PCSX2#3617)
Browse files Browse the repository at this point in the history
Define IPUDMAMode 2
  • Loading branch information
seta-san authored Aug 21, 2020
1 parent fc882c9 commit 328e358
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcsx2/IPU/IPUdma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int IPU1dma()

//We need to make sure GIF has flushed before sending IPU data, it seems to REALLY screw FFX videos

if(!ipu1ch.chcr.STR || IPU1Status.DMAMode == 2)
if(!ipu1ch.chcr.STR || IPU1Status.DMAMode == DMA_MODE_INTERLEAVE)
{
//We MUST stop the IPU from trying to fill the FIFO with more data if the DMA has been suspended
//if we don't, we risk causing the data to go out of sync with the fifo and we end up losing some!
Expand Down Expand Up @@ -409,6 +409,6 @@ IPU_FORCEINLINE void ipu1Interrupt()

DMA_LOG("IPU1 DMA End");
ipu1ch.chcr.STR = false;
IPU1Status.DMAMode = 2;
IPU1Status.DMAMode = DMA_MODE_INTERLEAVE;
hwDmacIrq(DMAC_TO_IPU);
}
1 change: 1 addition & 0 deletions pcsx2/IPU/IPUdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct IPUStatus {

#define DMA_MODE_NORMAL 0
#define DMA_MODE_CHAIN 1
#define DMA_MODE_INTERLEAVE 2

#define IPU1_TAG_FOLLOW 0
#define IPU1_TAG_QWC 1
Expand Down

0 comments on commit 328e358

Please sign in to comment.