Define IPUDMAMode 2 (#3617)

Define IPUDMAMode 2
This commit is contained in:
seta-san 2020-08-21 18:27:56 +00:00 committed by GitHub
parent fc882c9efc
commit 328e358b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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!
@ -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);
}

View File

@ -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