KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

Use the DMA to transfer inactive lists to the PVR. More...

Functions

int pvr_vertex_dma_enabled (void)
 Is vertex DMA enabled?
 
void * pvr_vertbuf_tail (pvr_list_t list)
 Retrieve a pointer to the current output location in the DMA buffer for the requested list.
 
void pvr_vertbuf_written (pvr_list_t list, uint32_t amt)
 Notify the PVR system that data have been written into the output buffer for the given list.
 

Detailed Description

Use the DMA to transfer inactive lists to the PVR.

Function Documentation

◆ pvr_vertbuf_tail()

void * pvr_vertbuf_tail ( pvr_list_t  list)

Retrieve a pointer to the current output location in the DMA buffer for the requested list.

Vertex DMA must globally be enabled for this to work. Data may be added to this buffer by the user program directly; however, make sure to call pvr_vertbuf_written() to notify the system of any such changes.

Parameters
listThe primitive list to get the buffer for.
Returns
The tail of that list's buffer.

◆ pvr_vertbuf_written()

void pvr_vertbuf_written ( pvr_list_t  list,
uint32_t  amt 
)

Notify the PVR system that data have been written into the output buffer for the given list.

This should always be done after writing data directly to these buffers or it will get overwritten by other data.

Parameters
listThe primitive list that was modified.
amtNumber of bytes written. Must be a multiple of 32.

◆ pvr_vertex_dma_enabled()

int pvr_vertex_dma_enabled ( void  )

Is vertex DMA enabled?

Returns
Non-zero if vertex DMA was enabled at init time