1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
7 * This program is distributed in the hope that it will be useful, *
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10 * GNU General Public License for more details. *
11 ***************************************************************************/
16 void gpu_state_change(int what)
18 enum psx_gpu_state state = what;
21 case PGS_VRAM_TRANSFER_START:
22 HW_GPU_STATUS &= ~SWAP32(PSXGPU_nBUSY);
24 case PGS_VRAM_TRANSFER_END:
25 HW_GPU_STATUS |= SWAP32(PSXGPU_nBUSY);
27 case PGS_PRIMITIVE_START:
28 HW_GPU_STATUS &= ~SWAP32(PSXGPU_nBUSY);
29 GPUDMA_INT(200); // see gpuInterrupt