Main Page | Data Structures | File List | Data Fields | Globals

render_vif.h File Reference

Exposes functions to build VIF packets. More...

Go to the source code of this file.

Functions

sps2VIFCode4_t * Render_AddMpgCode (int loadaddr, sps2DMATag_t *dmatagaddr)
 Add an MPG vifcode to the data buffer.

sps2VIFCode4_t * Render_AddUnpackCode_Data (int destaddr, VIF_UNPACK_FORMAT_t format, sps2DMATag_t *dmatagaddr)
 Add an UNPACK vifcode to the data buffer.

sps2VIFCode4_t * Render_AddUnpackCode_Curr (int destaddr, VIF_UNPACK_FORMAT_t format, sps2DMATag_t *dmatagaddr)
 Add an UNPACK vifcode to the current DMA chain buffer.

sps2VIFCode4_t * Render_AddMscalCode (sps2DMATag_t *dmatagaddr)
 Add an MSCAL vifcode to the data buffer.

sps2VIFCode4_t * Render_AddMscntCode (sps2DMATag_t *dmatagaddr)
 Add an MSCNT vifcode to the data buffer.

sps2VIFCode4_t * Render_AddDirectCode (sps2DMATag_t *dmatagaddr)
 Add a DIRECT vifcode to the data buffer.

sps2VIFCode4_t * Render_AddFlushCode (sps2DMATag_t *dmatagaddr)
 Add a FLUSH vifcode to the data buffer.


Detailed Description

Exposes functions to build VIF packets.


Function Documentation

Render_AddDirectCode sps2DMATag_t *  dmatagaddr  ) 
 

Add a DIRECT vifcode to the data buffer.

A DIRECT vifcode is required when performing a PATH2 transfer. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddFlushCode sps2DMATag_t *  dmatagaddr  ) 
 

Add a FLUSH vifcode to the data buffer.

A FLUSH vifcode is required to synchronise DMA transfers. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddMpgCode int  loadaddr,
sps2DMATag_t *  dmatagaddr
 

Add an MPG vifcode to the data buffer.

An MPG vifcode is required when uploading a VU microprogram. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
loadaddr Destination quadword address in VU code memory.
*dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddMscalCode sps2DMATag_t *  dmatagaddr  ) 
 

Add an MSCAL vifcode to the data buffer.

An MSCAL vifcode is required to start execution of the current VU microprogram. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddMscntCode sps2DMATag_t *  dmatagaddr  ) 
 

Add an MSCNT vifcode to the data buffer.

An MSCNT vifcode is required to continue execution of the current VU microprogram. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddUnpackCode_Curr int  destaddr,
VIF_UNPACK_FORMAT_t  format,
sps2DMATag_t *  dmatagaddr
 

Add an UNPACK vifcode to the current DMA chain buffer.

An UNPACK vifcode is required when uploading to VU data memory. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
destaddr Destination quadword address in VU data memory.
format Format type to use when unpacking the data into VU memory.
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.

Render_AddUnpackCode_Data int  destaddr,
VIF_UNPACK_FORMAT_t  format,
sps2DMATag_t *  dmatagaddr
 

Add an UNPACK vifcode to the data buffer.

An UNPACK vifcode is required when uploading to VU data memory. This function will increment the QWC field of the last DMAtag to reflect the addition of the vifcode.

Parameters:
destaddr Destination quadword address in VU data memory.
format Format type to use when unpacking the data into VU memory.
dmatagaddr Pointer to the last DMAtag that was added to the buffer.
Returns:
A pointer to the newly added vifcode.


Generated on Wed Apr 28 20:49:13 2004 for KISS Renderer by doxygen 1.3.6-20040222