14void gsKit_setup_tbw(GSTEXTURE *Texture)
19 if(Texture->
TBW / 64 > 0)
20 Texture->
TBW = (Texture->
TBW / 64);
27 if(Texture->
TBW / 64 > 0)
28 Texture->
TBW = (Texture->
TBW / 64);
34void gsKit_vram_dump(GSGLOBAL *
gsGlobal,
char *Path, u32 StartAddr, u32 EndAddr)
45 printf(
"THIS IS NOT DONE YET!\n");
49 StartAddr = (-GS_VRAM_BLOCKSIZE)&(StartAddr+GS_VRAM_BLOCKSIZE-1);
50 EndAddr = (-GS_VRAM_BLOCKSIZE)&(EndAddr+GS_VRAM_BLOCKSIZE-1);
52 Size = EndAddr - StartAddr;
58 printf(
"Uneven division of quad word count from VRAM alloc. Rounding up QWC.\n");
63 packets = qwc / DMA_MAX_SIZE;
64 remain = qwc % DMA_MAX_SIZE;
71 *p_data++ = DMA_TAG( 6, 0, DMA_CNT, 0, 0, 0 );
77 *p_data++ = GS_SETREG_BITBLTBUF(StartAddr / 64, (4095.9375 / 64), 0, 0, 0, 0);
80 *p_data++ = GS_SETREG_TRXPOS(0, 0, 0, 0, 0);
83 *p_data++ = GS_SETREG_TRXREG(4095.9375, 4095.9375);
89 *p_data++ = GS_SETREG_TRXDIR(1);
void dmaKit_send_spr(u16 channel, void *data, u32 size)
void * dmaKit_spr_alloc(int size)
DMA Scratchpad Allocation.
#define GS_VRAM_TBWALIGN
Texture Base Width Allocation Allignment (32/24/16 Bit Textures).
#define GS_VRAM_TBWALIGN_CLUT
Texture Base Width Allocation Allignment (8/4 Bit CLUT Textures).
#define GS_SETREG_BUSDIR(A)
GS BUSDIR Register Writing Routine.
#define GS_PSM_T8
8 Bit Texture with CLUT
#define GS_TRXDIR
GS Activation for Transmission Between Buffers.
#define GS_SETREG_CSR_FINISH(A)
CSR FINISH Register Writing Routine.
#define GS_FINISH
FINISH Event Occourence.
#define GS_CSR_FINISH
CSR FINISH Register Access Routine.
#define GS_PSM_T4
4 Bit Texture with CLUT
#define GS_TRXREG
GS Specificiation for Transmission Area in Buffers.
#define GIF_TAG(NLOOP, EOP, PRE, PRIM, FLG, NREG)
DMA Packet Header "GIF Tag" For Packets Sent To GIF.
#define GS_BITBLTBUF
GS Setting for Transmission Between Buffers.
#define GS_TRXPOS
GS Specificiation for Transmission Area in Buffers.
#define GIF_AD
GIF_TAG Address+Data Setting. (Used after GIF_TAG).
#define GSKIT_GIF_FLG_PACKED
gsKit GIFTAG data format "FLG"
u32 TBW
Texture Base Width.
u8 PSM
Pixel Storage Method (Color Format).
u32 Width
Width of the Texture.