diff options
Diffstat (limited to 'libpsn00b/psxgpu/image.c')
| -rw-r--r-- | libpsn00b/psxgpu/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpsn00b/psxgpu/image.c b/libpsn00b/psxgpu/image.c index 63bceb6..a08e293 100644 --- a/libpsn00b/psxgpu/image.c +++ b/libpsn00b/psxgpu/image.c @@ -41,6 +41,7 @@ static void _dma_transfer(const RECT *rect, uint32_t *data, int write) { while (!(GPU_GP1 & (1 << 26))) __asm__ volatile(""); + SetDrawOpType(DRAWOP_TYPE_DMA); GPU_GP1 = 0x04000000; // Disable DMA request GPU_GP0 = 0x01000000; // Flush cache @@ -124,6 +125,8 @@ void MoveImage2(const RECT *rect, int x, int y) { while (!(GPU_GP1 & (1 << 26))) __asm__ volatile(""); + SetDrawOpType(DRAWOP_TYPE_GPU_IRQ); + GPU_GP0 = 0x80000000; //GPU_GP0 = rect->x | (rect->y << 16); GPU_GP0 = *((const uint32_t *) &(rect->x)); |
