ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
packet2_utils.h File Reference
#include "packet2.h"
#include "packet2_chain.h"
#include "packet2_vif.h"
#include <tamtypes.h>
#include <draw3d.h>
#include <draw_buffers.h>
#include <draw_sampling.h>
#include <gs_gp.h>
+ Include dependency graph for packet2_utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VU_GS_PRIM(PRIM, IIP, TME, FGE, ABE, AA1, FST, CTXT, FIX)   (u128)(((FIX << 10) | (CTXT << 9) | (FST << 8) | (AA1 << 7) | (ABE << 6) | (FGE << 5) | (TME << 4) | (IIP << 3) | (PRIM)))
 
#define VU_GS_GIFTAG(NLOOP, EOP, PRE, PRIM, FLG, NREG)   (((u64)(NREG) << 60) | ((u64)(FLG) << 58) | ((u64)(PRIM) << 47) | ((u64)(PRE) << 46) | (EOP << 15) | (NLOOP << 0))
 

Functions

static void packet2_utils_vu_add_double_buffer (packet2_t *packet2, u16 base, u16 offset)
 
static void packet2_utils_vu_add_unpack_data (packet2_t *packet2, u32 t_dest_address, void *t_data, u32 t_size, u8 t_use_top)
 
static void packet2_utils_vu_open_unpack (packet2_t *packet2, u32 t_dest_address, u8 t_use_top)
 
static u32 packet2_utils_vu_close_unpack (packet2_t *packet2)
 
static void packet2_utils_vu_add_continue_program (packet2_t *packet2)
 
static void packet2_utils_vu_add_start_program (packet2_t *packet2, u32 addr)
 
static void packet2_utils_vu_add_end_tag (packet2_t *packet2)
 
static u32 packet2_utils_get_packet_size_for_program (u32 *start, u32 *end)
 
static void packet2_utils_gif_add_set (packet2_t *packet2, u32 loops_count)
 
static void packet2_utils_gs_add_lod (packet2_t *packet2, lod_t *lod)
 
static void packet2_utils_gs_add_texbuff_clut (packet2_t *packet2, texbuffer_t *texbuff, clutbuffer_t *clut)
 
static void packet2_utils_gs_add_draw_finish_giftag (packet2_t *packet2)
 
static void packet2_utils_gs_add_prim_giftag (packet2_t *packet2, prim_t *prim, u32 loops_count, u32 nreg, u8 nreg_count, u8 context)