PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
libgs.h File Reference
#include <tamtypes.h>
+ Include dependency graph for libgs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GsGParam_t
 
struct  QWORD
 
struct  GS_PMODE
 
struct  GS_SMODE1
 
struct  GS_SMODE2
 
struct  GS_DISPFB
 
struct  GS_DISPLAY
 
struct  GS_EXTBUF
 
struct  GS_EXTDATA
 
struct  GS_EXTWRITE
 
struct  GS_BGCOLOR
 
struct  GS_CSR
 
struct  GS_IMR
 
struct  GS_BUSDIR
 
struct  GS_PRIM
 
struct  GS_RGBAQ
 
struct  GS_ST
 
struct  GS_UV
 
struct  GS_XYZF
 
struct  GS_XYZ
 
struct  GS_TEX0
 
struct  GS_CLAMP
 
struct  GS_FOG
 
struct  GS_TEX1
 
struct  GS_TEX2
 
struct  GS_XYOFFSET
 
struct  GS_PRMODECONT
 
struct  GS_PRMODE
 
struct  GS_TEXCLUT
 
struct  GS_SCANMSK
 
struct  GS_MIPTBP1
 
struct  GS_MIPTBP2
 
struct  GS_TEXA
 
struct  GS_FOGCOLOR
 
struct  GS_TEXFLUSH
 
struct  GS_SCISSOR
 
struct  GS_ALPHA
 
struct  GS_DIMX
 
struct  GS_DTHE
 
struct  GS_COLCLAMP
 
struct  GS_TEST
 
struct  GS_PABE
 
struct  GS_FBA
 
struct  GS_FRAME
 
struct  GS_ZBUF
 
struct  GS_BITBLTBUF
 
struct  GS_TRXPOS
 
struct  GS_TRXREG
 
struct  GS_TRXDIR
 
struct  GS_HWREG
 
struct  GS_SIGNAL
 
struct  GS_FINISH
 
struct  GS_LABEL
 
struct  GS_NOP
 
struct  GS_R_PRIM
 
struct  GS_R_RGBAQ
 
struct  GS_R_ST
 
struct  GS_R_UV
 
struct  GS_R_XYZF
 
struct  GS_R_XYZ
 
struct  GS_R_TEX0
 
struct  GS_R_CLAMP
 
struct  GS_R_FOG
 
struct  GS_R_TEX1
 
struct  GS_R_TEX2
 
struct  GS_R_XYOFFSET
 
struct  GS_R_PRMODECONT
 
struct  GS_R_PRMODE
 
struct  GS_R_TEXCLUT
 
struct  GS_R_SCANMSK
 
struct  GS_R_MIPTBP1
 
struct  GS_R_MIPTBP2
 
struct  GS_R_TEXA
 
struct  GS_R_FOGCOLOR
 
struct  GS_R_TEXFLUSH
 
struct  GS_R_SCISSOR
 
struct  GS_R_ALPHA
 
struct  GS_R_DIMX
 
struct  GS_R_DTHE
 
struct  GS_R_COLCLAMP
 
struct  GS_R_TEST
 
struct  GS_R_PABE
 
struct  GS_R_FBA
 
struct  GS_R_FRAME
 
struct  GS_R_ZBUF
 
struct  GS_R_BITBLTBUF
 
struct  GS_R_TRXPOS
 
struct  GS_R_TRXREG
 
struct  GS_R_TRXDIR
 
struct  GS_R_HWREG
 
struct  GS_R_SIGNAL
 
struct  GS_R_FINISH
 
struct  GS_R_LABEL
 
struct  GS_R_NOP
 
struct  _GS_GIF_DMACHAIN_TAG
 
struct  GS_GIF_TAG
 
struct  GS_RECT
 
struct  GS_URECT
 
struct  GS_RECT32
 
struct  GS_POS
 
struct  GS_ZENV
 
struct  GS_DRAWENV
 
struct  GS_DISPENV
 
struct  GS_POINT_P
 
struct  GS_POINT
 
struct  GS_LINE_F1_P
 
struct  GS_LINE_F1
 
struct  GS_LINE_G1_P
 
struct  GS_LINE_G1
 
struct  GS_TRIANGLE_F3_P
 
struct  GS_TRIANGLE_F3
 
struct  GS_TRIANGLE_FT3_P
 
struct  GS_TRIANGLE_FT3
 
struct  GS_TRIANGLE_FT3ST_P
 
struct  GS_TRIANGLE_FT3ST
 
struct  GS_TRIANGLE_G3_P
 
struct  GS_TRIANGLE_G3
 
struct  GS_TRIANGLE_GT3ST_P
 
struct  GS_TRIANGLE_GT3ST
 
struct  GS_SPRITE_F4_P
 
struct  GS_SPRITE_F4
 
struct  GS_SPRITE_FT4_P
 
struct  GS_SPRITE_FT4
 
struct  GS_GIF_PACKET
 
struct  GS_PACKET_TABLE
 
struct  GS_IMAGE
 

Macros

#define GS_INIT_RESET   0
 
#define GS_INIT_DRAW_RESET   1
 
#define GS_NONINTERLACED   0x00
 
#define GS_INTERLACED   0x01
 
#define GS_FFMD_FIELD   0x00
 
#define GS_FFMD_FRAME   0x01
 
#define GS_DISABLE   0
 
#define GS_ENABLE   1
 
#define GS_PIXMODE_32   0
 
#define GS_PIXMODE_24   1
 
#define GS_PIXMODE_16   2
 
#define GS_PIXMODE_16S   10
 
#define GS_CLUT_32   0
 
#define GS_CLUT_16   2
 
#define GS_CLUT_16S   10
 
#define GS_TEX_32   0
 
#define GS_TEX_24   1
 
#define GS_TEX_16   2
 
#define GS_TEX_16S   10
 
#define GS_TEX_8   19
 
#define GS_TEX_4   20
 
#define GS_TEX_8H   27
 
#define GS_TEX_4HL   36
 
#define GS_TEX_4HH   44
 
#define GS_ZBUFF_32   48
 
#define GS_ZBUFF_24   49
 
#define GS_ZBUFF_16   50
 
#define GS_ZBUFF_16S   58
 
#define GS_TEX_CALC   0
 
#define GS_TEX_FIXED   1
 
#define GS_TEX_MIPMAP_DEFINE   0
 
#define GS_TEX_MIPMAP_AUTO   1
 
#define gs_p_pmode   0x12000000
 
#define gs_p_smode1   0x12000010
 
#define gs_p_smode2   0x12000020
 
#define gs_p_dispfb1   0x12000070
 
#define gs_p_display1   0x12000080
 
#define gs_p_dispfb2   0x12000090
 
#define gs_p_display2   0x120000a0
 
#define gs_p_extbuf   0x120000b0
 
#define gs_p_extdata   0x120000c0
 
#define gs_p_extwrite   0x120000d0
 
#define gs_p_bgcolor   0x120000e0
 
#define gs_p_csr   0x12001000
 
#define gs_p_imr   0x12001010
 
#define gs_p_busdir   0x12001040
 
#define gs_p_siglblid   0x12001080
 
#define gs_g_prim   0x00
 
#define gs_g_rgbaq   0x01
 
#define gs_g_st   0x02
 
#define gs_g_uv   0x03
 
#define gs_g_xyzf2   0x04
 
#define gs_g_xyz2   0x05
 
#define gs_g_tex0_1   0x06
 
#define gs_g_tex0_2   0x07
 
#define gs_g_clamp_1   0x08
 
#define gs_g_clamp_2   0x09
 
#define gs_g_fog   0x0a
 
#define gs_g_xyzf3   0x0c
 
#define gs_g_xyz3   0x0d
 
#define gs_g_tex1_1   0x14
 
#define gs_g_tex1_2   0x15
 
#define gs_g_tex2_1   0x16
 
#define gs_g_tex2_2   0x17
 
#define gs_g_xyoffset_1   0x18
 
#define gs_g_xyoffset_2   0x19
 
#define gs_g_prmodecont   0x1a
 
#define gs_g_prmode   0x1b
 
#define gs_g_texclut   0x1c
 
#define gs_g_scanmsk   0x22
 
#define gs_g_miptbp1_1   0x34
 
#define gs_g_miptbp1_2   0x35
 
#define gs_g_miptbp2_1   0x36
 
#define gs_g_miptbp2_2   0x37
 
#define gs_g_texa   0x3b
 
#define gs_g_fogcol   0x3d
 
#define gs_g_texflush   0x3f
 
#define gs_g_scissor_1   0x40
 
#define gs_g_scissor_2   0x41
 
#define gs_g_alpha_1   0x42
 
#define gs_g_alpha_2   0x43
 
#define gs_g_dimx   0x44
 
#define gs_g_dthe   0x45
 
#define gs_g_colclamp   0x46
 
#define gs_g_test_1   0x47
 
#define gs_g_test_2   0x48
 
#define gs_g_pabe   0x49
 
#define gs_g_fba_1   0x4a
 
#define gs_g_fba_2   0x4b
 
#define gs_g_frame_1   0x4c
 
#define gs_g_frame_2   0x4d
 
#define gs_g_zbuf_1   0x4e
 
#define gs_g_zbuf_2   0x4f
 
#define gs_g_bitbltbuf   0x50
 
#define gs_g_trxpos   0x51
 
#define gs_g_trxreg   0x52
 
#define gs_g_trxdir   0x53
 
#define gs_g_hwreg   0x54
 
#define gs_g_signal   0x60
 
#define gs_g_finish   0x61
 
#define gs_g_label   0x62
 
#define gs_g_nop   0x7f
 
#define gif_rd_ad   0x0e
 
#define gif_rd_nop   0x0f
 
#define GS_SET_PMODE(enable_rc1, enable_rc2, mmod, amod, blend_style, blend_value)
 
#define GS_SET_SMODE1(rc, lc, t1248, slck, cmod, ex, prst, sint, xpck, pck2, spml, gcont, phs, pvs, pehs, pevs, clksel, nvck, slck2, vcksel, vhp)
 
#define GS_SET_SMODE2(interlace, field_frame, vesta_dpms)
 
#define GS_SET_DISPFB1(address, width, psm, x, y)
 
#define GS_SET_DISPFB2(address, width, psm, x, y)
 
#define GS_SET_DISPLAY1(display_x, display_y, magnify_h, magnify_v, display_w, display_h)
 
#define GS_SET_DISPLAY2(display_x, display_y, magnify_h, magnify_v, display_w, display_h)
 
#define GS_SET_EXTBUF(A, B, C, D, E, F, G, H)
 
#define GS_SET_EXTDATA(x, y, sample_r_h, sample_r_v, write_w, write_h)
 
#define GS_SET_EXTWRITE(write)
 
#define GS_SET_BGCOLOR(r, g, b)
 
#define GS_SET_CSR(signal_evnt, finish_evnt, hsync_intrupt, vsync_intrupt, write_terminate, flush, reset, nfield, current_field, fifo_status, gs_rev_number, gs_id)
 
#define GS_SET_IMR(signal_mask, finish_mask, hsync_mask, vsync_mask, write_mask, exhs_mask, exvs_mask)
 
#define GS_SET_BUSDIR(direction)
 
#define GS_SET_SIGLBLID(signal_id, label_id)
 
#define GS_SET_CSR_signal_evnt(val)    GS_SET_CSR(val,0,0,0,0,0,0,0,0,0,0,0)
 
#define GS_SET_CSR_finish_evnt(val)    GS_SET_CSR(0,val,0,0,0,0,0,0,0,0,0,0)
 
#define GS_SET_CSR_hsync_intrupt(val)    GS_SET_CSR(0,0,val,0,0,0,0,0,0,0,0,0)
 
#define GS_SET_CSR_vsync_intrupt(val)    GS_SET_CSR(0,0,0,val,0,0,0,0,0,0,0,0)
 
#define GS_SET_CSR_write_terminate(val)    GS_SET_CSR(0,0,0,0,val,0,0,0,0,0,0,0)
 
#define GS_SET_CSR_flush(val)    GS_SET_CSR(0,0,0,0,0,val,0,0,0,0,0,0)
 
#define GS_SET_CSR_reset(val)    GS_SET_CSR(0,0,0,0,0,0,val,0,0,0,0,0)
 
#define GS_GET_CSR_signal_evnt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 0))
 
#define GS_GET_CSR_finish_evnt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 1))
 
#define GS_GET_CSR_hsync_intrupt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 2))
 
#define GS_GET_CSR_vsync_intrupt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 3))
 
#define GS_GET_CSR_write_terminate    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 4))
 
#define GS_GET_CSR_write_nfield    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 12))
 
#define GS_GET_CSR_current_field    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 13))
 
#define GS_GET_CSR_fifo_status    (*((vu64 *)(gs_p_csr)) & (0x00000003 << 14))
 
#define GS_GET_CSR_gs_rev_number    (*((vu64 *)(gs_p_csr)) & (0x000000FF << 16))
 
#define GS_GET_CSR_gs_id    (*((vu64 *)(gs_p_csr)) & (0x000000FF << 24))
 
#define gs_setPRIM(p, _prim_type, _iip, _tme, _fge, _abe, _aa1, _fst, _ctxt, _fix)
 
#define gs_setRGBAQ(p, _r, _g, _b, _a, _q)
 
#define gs_setST(p, _s, _t)
 
#define gs_setUV(p, _u, _v)
 
#define gs_setXYZF2(p, _x, _y, _z, _f)
 
#define gs_setXYZF3(p, _x, _y, _z, _f)
 
#define gs_setXYZ2(p, _x, _y, _z)
 
#define gs_setXYZ3(p, _x, _y, _z)
 
#define gs_setTEX0_1(p, _tb_addr, _tb_width, _psm, _tex_width, _tex_height, _tex_cc, _tex_funtion, _cb_addr, _clut_pixmode, _clut_smode, _clut_offset, _clut_loadmode)
 
#define gs_setTEX0_2   gs_setTEX0_1
 
#define gs_setCLAMP_1(p, wms, wmt, minu, maxu, minv, maxv)
 
#define gs_setCLAMP_2   gs_setCLAMP_1
 
#define gs_setFOG(p, _f)    (p)->f = _f
 
#define gs_setTEX1_1(p, _lcm, _mxl, _mmag, _mmin, _mtba, _l, _k)
 
#define gs_setTEX1_2   gs_setTEX1_1
 
#define gs_setTEX2_1(p, _psm, _cbp, _cpsm, _csm, _csa, _cld)
 
#define gs_setTEX2_2   gs_setTEX2_1
 
#define gs_set_XYOFFSET_1(p, _offset_x, _offset_y)
 
#define gs_set_XYOFFSET_2   gs_set_XYOFFSET_1
 
#define gs_set_PRMODECONT(p, _control)    (p)->control = _control
 
#define gs_setPRMODE(p, _iip, _tme, _fge, _abe, _aa1, _fst, _ctxt, _fix)
 
#define gs_setTEXCLUT(p, _cbw, _cou, _cov)
 
#define gs_setSCANMSK(p, _msk)    (p)->msk = _msk
 
#define gs_setMIPTBP1_1(p, _tbp1, _tbw1, _tbp2, _tbw2, _tbp3, _tbw3)
 
#define gs_setMIPTBP1_2   gs_setMIPTBP1_1
 
#define gs_setMIPTBP2_1(p, _tbp4, _tbw4, _tbp5, _tbw5, _tbp6, _tbw6)
 
#define gs_setMIPTBP2_2   gs_setMIPTBP2_1
 
#define gs_setTEXA(p, _alpha_0, _alpha_method, _alpha_1)
 
#define gs_setFOGCOLOR(p, _r, _g, _b)
 
#define gs_setTEXFLUSH(p)
 
#define gs_setSCISSOR_1(p, _clip_x0, _clip_x1, _clip_y0, _clip_y1)
 
#define gs_setSCISSOR_2   gs_setSCISSOR_1
 
#define gs_setALPHA_1(p, _a, _b, _c, _d, _alpha)
 
#define gs_setALPHA_2   gs_setALPHA_1
 
#define gs_setDIMX(p, _dimx00, _dimx01, _dimx02, _dimx03, _dimx10, _dimx11, _dimx12, _dimx13, _dimx20, _dimx21, _dimx22, _dimx23, _dimx30, _dimx31, _dimx32, _dimx33)
 
#define gs_setDTHE(p, _enable)    (p)->enable = _enable
 
#define gs_setCOLCLAMP(p, _clamp)    (p)->clamp = _clamp
 
#define gs_setTEST_1(p, _atest_enable, _atest_method, _atest_reference, _atest_fail_method, _datest_enable, _datest_mode, _ztest_enable, _ztest_method)
 
#define gs_setTEST_2   gs_setTEST_1
 
#define gs_setPABE(p, _enable)    (p)->enable = _enable
 
#define gs_setFBA(p, _alpha)    (p)->alpha = _alpha
 
#define gs_setFRAME_1(p, _fb_addr, _fb_width, _psm, _draw_mask)
 
#define gs_setFRAME_2   gs_setFRAME_1
 
#define gs_setZBUF_1(p, _fb_addr, _psm, _update_mask)
 
#define gs_setZBUF_2   gs_setZBUF_1
 
#define gs_setBITBLTBUF(p, _src_addr, _src_width, _src_pixmode, _dest_addr, _dest_width, _dest_pixmode)
 
#define gs_setTRXPOS(p, _src_x, _src_y, _dest_x, _dest_y, _direction)
 
#define gs_setTRXREG(p, _trans_w, _trans_h)
 
#define gs_setTRXDIR(p, _trans_dir)    (p)->trans_dir = _trans_dir
 
#define gs_setHWREG(p, _data)    (p)->data = _data
 
#define gs_setSIGNAL(p, _signal_id, _update_mask)
 
#define gs_setFINISH(p)    (p)->pad0 = 0
 
#define gs_setLABEL(p, _label_id, _update_mask)
 
#define gs_setNOP(p)    (p)->pad0 = 0
 
#define gs_setR_PRIM(p, _prim_type, _iip, _tme, _fge, _abe, _aa1, _fst, _ctxt, _fix)
 
#define gs_setR_RGBAQ(p, _r, _g, _b, _a, _q)
 
#define gs_setR_ST(p, _s, _t)
 
#define gs_setR_UV(p, _u, _v)
 
#define gs_setR_XYZF2(p, _x, _y, _z, _f)
 
#define gs_setR_XYZF3(p, _x, _y, _z, _f)
 
#define gs_setR_XYZ2(p, _x, _y, _z)
 
#define gs_setR_XYZ3(p, _x, _y, _z)
 
#define gs_setR_TEX0_1(p, _fb_addr, _fb_width, _psm, _tex_width, _tex_height, _col_comp, _tex_cc, _clutb_addr, _clut_pixmode, _clut_smode, _clut_offset, _cld)
 
#define gs_setR_TEX0_2(p, _fb_addr, _fb_width, _psm, _tex_width, _tex_height, _col_comp, _tex_cc, _clutb_addr, _clut_pixmode, _clut_smode, _clut_offset, _cld)
 
#define gs_setR_CLAMP_1(p, wms, wmt, minu, maxu, minv, maxv)
 
#define gs_setR_CLAMP_2(p, wms, wmt, minu, maxu, minv, maxv)
 
#define gs_setR_FOG(p, _f)
 
#define gs_setR_TEX1_1(p, _lcm, _mxl, _mmag, _mmin, _mtba, _l, _k)
 
#define gs_setR_TEX1_2(p, _lcm, _mxl, _mmag, _mmin, _mtba, _l, _k)
 
#define gs_setR_TEX2_1(p, _psm, _cbp, _cpsm, _csm, _csa, _cld)
 
#define gs_setR_TEX2_2(p, _psm, _cbp, _cpsm, _csm, _csa, _cld)
 
#define gs_setR_XYOFFSET_1(p, _offset_x, _offset_y)
 
#define gs_setR_XYOFFSET_2(p, _offset_x, _offset_y)
 
#define gs_setR_PRMODECONT(p, _control)
 
#define gs_setR_PRMODE(p, _iip, _tme, _fge, _abe, _aa1, _fst, _ctxt, _fix)
 
#define gs_setR_TEXCLUT(p, _cbw, _cou, _cov)
 
#define gs_setR_SCANMSK(p, _msk)
 
#define gs_setR_MIPTBP1_1(p, _tbp1, _tbw1, _tbp2, _tbw2, _tbp3, _tbw3)
 
#define gs_setR_MIPTBP1_2(p, _tbp1, _tbw1, _tbp2, _tbw2, _tbp3, _tbw3)
 
#define gs_setR_MIPTBP2_1(p, _tbp4, _tbw4, _tbp5, _tbw5, _tbp6, _tbw6)
 
#define gs_setR_MIPTBP2_2(p, _tbp4, _tbw4, _tbp5, _tbw5, _tbp6, _tbw6)
 
#define gs_setR_TEXA(p, _ta0, _aem, _ta1)
 
#define gs_setR_FOGCOLOR(p, _r, _g, _b)
 
#define gs_setR_TEXFLUSH(p)    (p)->reg = gs_g_texflush
 
#define gs_setR_SCISSOR_1(p, _clip_x0, _clip_x1, _clip_y0, _clip_y1)
 
#define gs_setR_SCISSOR_2(p, _clip_x0, _clip_x1, _clip_y0, _clip_y1)
 
#define gs_setR_ALPHA_1(p, _a, _b, _c, _d, _fix)
 
#define gs_setR_ALPHA_2(p, _a, _b, _c, _d, _fix)
 
#define gs_setR_DIMX(p, _dimx00, _dimx01, _dimx02, _dimx03, _dimx10, _dimx11, _dimx12, _dimx13, _dimx20, _dimx21, _dimx22, _dimx23, _dimx30, _dimx31, _dimx32, _dimx33)
 
#define gs_setR_DTHE(p, _enable)
 
#define gs_setR_COLCLAMP(p, _clamp)
 
#define gs_setR_TEST_1(p, _ATE, _ATST, _AREF, _AFAIL, _DATE, _DATM, _ZTE, _ZTST)
 
#define gs_setR_TEST_2(p, _ATE, _ATST, _AREF, _AFAIL, _DATE, _DATM, _ZTE, _ZTST)
 
#define gs_setR_PABE(p, _enable)
 
#define gs_setR_FBA_1(p, _alpha)
 
#define gs_setR_FBA_2(p, _alpha)
 
#define gs_setR_FRAME_1(p, _fb_addr, _fb_width, _psm, _draw_mask)
 
#define gs_setR_FRAME_2(p, _fb_addr, _fb_width, _psm, _draw_mask)
 
#define gs_setR_ZBUF_1(p, _fb_addr, _psm, _update_mask)
 
#define gs_setR_ZBUF_2(p, _fb_addr, _psm, _update_mask)
 
#define gs_setR_BITBLTBUF(p, _src_addr, _src_width, _src_pixmode, _dest_addr, _dest_width, _dest_pixmode)
 
#define gs_setR_TRXPOS(p, _src_x, _src_y, _dest_x, _dest_y, _direction)
 
#define gs_setR_TRXREG(p, _trans_w, _trans_h)
 
#define gs_setR_TRXDIR(p, _trans_dir)
 
#define gs_setR_HWREG(p, _data)
 
#define gs_setR_SIGNAL(p, _signal_id, _update_mask)
 
#define gs_setR_FINISH(p)    (p)->reg = gs_g_finish
 
#define gs_setR_LABEL(p, _label_id, _update_mask)
 
#define gs_setR_NOP(p)
 
#define gs_setGIF_TAG(p, _nloop, _eop, _pre, _prim, _flg, _nreg, _reg)
 
#define CRTC_SETTINGS_DEFAULT1   CRTC_SETTINGS_EN1|CRTC_SETTINGS_BLENDVAL|CRTC_SETTINGS_OUTRC1|CRTC_SETTINGS_STYLERC1
 
#define CRTC_SETTINGS_DEFAULT2   CRTC_SETTINGS_EN2|CRTC_SETTINGS_BLENDVAL|CRTC_SETTINGS_OUTRC1|CRTC_SETTINGS_STYLERC1
 
#define CRTC_SETTINGS_EN1   ((u64)(1)<<0)
 
#define CRTC_SETTINGS_EN2   ((u64)(1)<<1)
 
#define CRTC_SETTINGS_ENBOTH   CRTC_SETTINGS_EN1|CRTC_SETTINGS_EN2
 
#define CRTC_SETTINGS_BLENDRC1   ((u64)(0)<<5)
 
#define CRTC_SETTINGS_BLENDVAL   ((u64)(1)<<5)
 
#define CRTC_SETTINGS_OUTRC1   ((u64)(0)<<6)
 
#define CRTC_SETTINGS_OUTRC2   ((u64)(1)<<6)
 
#define CRTC_SETTINGS_STYLERC1   ((u64)(0)<<7)
 
#define CRTC_SETTINGS_STYLEBG   ((u64)(1)<<7)
 
#define GS_PACKET_DATA_QWORD_MAX   32000
 

Enumerations

enum  GsVideoModes { GS_MODE_NTSC = 0x02 , GS_MODE_PAL , GS_MODE_DTV_480P = 0x50 }
 
enum  GsPrimitiveTypes {
  GS_PRIM_POINT =0 , GS_PRIM_LINE , GS_PRIM_LINE_STRIP , GS_PRIM_TRI ,
  GS_PRIM_TRI_STRIP , GS_PRIM_TRI_FAN , GS_PRIM_SPRITE
}
 
enum  GsATestMethods {
  GS_ALPHA_NEVER =0 , GS_ALPHA_ALWAYS , GS_ALPHA_LESS , GS_ALPHA_LEQUAL ,
  GS_ALPHA_EQUAL , GS_ALPHA_GEQUAL , GS_ALPHA_GREATER , GS_ALPHA_NOTEQUAL
}
 
enum  GsATestFailedUpdateMethods { GS_ALPHA_NO_UPDATE =0 , GS_ALPHA_FB_ONLY , GS_ALPHA_ZB_ONLY , GS_ALPHA_RGB_ONLY }
 
enum  GsZTestMethodTypes { GS_ZBUFF_NEVER =0 , GS_ZBUFF_ALWAYS , GS_ZBUFF_GEQUAL , GS_ZBUFF_GREATER }
 
enum  GsTexMipmaps {
  GS_TEX_MIPMAP0 =0 , GS_TEX_MIPMAP1 , GS_TEX_MIPMAP2 , GS_TEX_MIPMAP3 ,
  GS_TEX_MIPMAP4 , GS_TEX_MIPMAP5 , GS_TEX_MIPMAP6
}
 
enum  GsTexFilterMethods {
  GS_TEX_NEAREST =0 , GS_TEX_LINEAR , GS_TEX_NEAREST_MIPMAP_NEAREST , GS_TEX_NEAREST_MIPMAP_LINEAR ,
  GS_TEX_LINEAR_MIPMAP_NEAREST , GS_TEX_LINEAR_MIPMAP_LINEAR
}
 
enum  GsTexFunctions { GS_TEX_MODULATE =0 , GS_TEX_DECAL , GS_TEX_HIGHLIHGT1 , GS_TEX_HIGHLIHGT2 }
 
enum  GsGifDataFormat { GS_GIF_PACKED =0 , GS_GIF_REGLIST , GS_GIF_IMAGE , GS_GIF_DISABLE }
 

Functions

struct _GS_GIF_DMACHAIN_TAG __attribute__ ((aligned(16)))
 
int GsSetXYOffset1 (u16 x, u16 y)
 
int GsSetXYOffset2 (u16 x, u16 y)
 
int GsSetScissor1 (u16 upper_x, u16 upper_y, u16 lower_x, u16 lower_y)
 
int GsSetScissor2 (u16 upper_x, u16 upper_y, u16 lower_x, u16 lower_y)
 
int GsSetFrame1 (u16 framebuffer_addr, u8 framebuffer_width, u8 psm, u32 draw_mask)
 
int GsSetFrame2 (u16 framebuffer_addr, u8 framebuffer_width, u8 psm, u32 draw_mask)
 
int GsTextureFlush (void)
 
int GsSetPixelTest1 (u8 enable_alpha_test, u8 alpha_test_method, u8 alpha_reference, u8 alpha_fail_method, u8 enable_dest_alpha_test, u8 dest_alpha_test_mode, u8 enable_zbuff_test, u8 alpha_zbuff_method)
 
int GsSetPixelTest2 (u8 enable_alpha_test, u8 alpha_test_method, u8 alpha_reference, u8 alpha_fail_method, u8 enable_dest_alpha_test, u8 dest_alpha_test_mode, u8 enable_zbuff_test, u8 alpha_zbuff_method)
 
int GsSelectTexure1 (u16 tex_addr, u8 addr_width, u8 tex_pixmode, u16 tex_width, u16 tex_height, u16 clut_addr, u8 clut_pixmode, u8 clut_storagemode, u8 clut_offset)
 
int GsSelectTexure2 (u16 tex_addr, u8 addr_width, u8 tex_pixmode, u16 tex_width, u16 tex_height, u16 clut_addr, u8 clut_pixmode, u8 clut_storagemode, u8 clut_offset)
 
void GsSetFogColor (u8 r, u8 g, u8 b)
 
void GsEnableColorClamp (u16 enable)
 
GsGParam_tGsGetGParam (void)
 
void GsResetGraph (short int mode, short int interlace, short int omode, short int ffmode)
 
void GsResetPath (void)
 
void GsSetCRTCSettings (u64 settings, u8 alpha_value)
 
void GsSetDefaultDrawEnv (GS_DRAWENV *drawenv, u16 psm, u16 w, u16 h)
 
void GsSetDefaultDrawEnvAddress (GS_DRAWENV *drawenv, u16 vram_addr)
 
void GsSetDefaultDisplayEnv (GS_DISPENV *dispenv, u16 psm, u16 w, u16 h, u16 dx, u16 dy)
 
void GsSetDefaultDisplayEnvAddress (GS_DISPENV *dispenv, u16 vram_addr)
 
void GsSetDefaultZBufferEnv (GS_ZENV *zenv, u8 update_mask)
 
void GsSetDefaultZBufferEnvAddress (GS_ZENV *zenv, u16 vram_addr, u8 psm)
 
void GsPutDrawEnv1 (GS_DRAWENV *drawenv)
 
void GsPutDrawEnv2 (GS_DRAWENV *drawenv)
 
void GsPutDisplayEnv1 (GS_DISPENV *dispenv)
 
void GsPutDisplayEnv2 (GS_DISPENV *dispenv)
 
void GsPutZBufferEnv1 (GS_ZENV *zenv)
 
void GsPutZBufferEnv2 (GS_ZENV *zenv)
 
void GsClearDrawEnv1 (GS_DRAWENV *drawenv)
 
void GsClearDrawEnv2 (GS_DRAWENV *drawenv)
 
QWORDGsGifPacketsAlloc (GS_PACKET_TABLE *table, u32 num_qwords)
 
void GsGifPacketsClear (GS_PACKET_TABLE *table)
 
int GsGifPacketsExecute (GS_PACKET_TABLE *table, u16 wait)
 
int GsLoadImage (const void *source_addr, GS_IMAGE *dest)
 
void GsOverridePrimAttributes (s8 override, s8 iip, s8 tme, s8 fge, s8 abe, s8 aa1, s8 fst, s8 ctxt, s8 fix)
 
void GsEnableDithering (u8 enable, int mode)
 
void GsEnableAlphaTransparency1 (u16 enable, u16 method, u8 alpha_ref, u16 fail_method)
 
void GsEnableAlphaTransparency2 (u16 enable, u16 method, u8 alpha_ref, u16 fail_method)
 
void GsEnableZbuffer1 (u16 enable, u16 test_method)
 
void GsEnableZbuffer2 (u16 enable, u16 test_method)
 
void GsEnableAlphaBlending1 (u16 enable)
 
void GsEnableAlphaBlending2 (u16 enable)
 
void GsDrawSync (int mode)
 
void GsHSync (int mode)
 
void GsVSync (int mode)
 
int GsVramAllocFrameBuffer (s16 w, s16 h, s16 psm)
 
int GsVramAllocTextureBuffer (s16 w, s16 h, s16 psm)
 
void GsVramFreeAllTextureBuffer (void)
 
void GsVramFreeAll (void)
 
int GsDbGetDrawBuffer (void)
 
int GsDbGetDisplayBuffer (void)
 
void GsDbSwapBuffer (void)
 

Variables

typedef __attribute__
 
u64 qwc
 
u64 pad1
 
u64 pce
 
u64 id
 
u64 irq
 
u64 addr
 
u64 spr
 
u64 pad2
 

Detailed Description

GS library functions.

Definition in file libgs.h.


Data Structure Documentation

◆ GsGParam_t

struct GsGParam_t

Definition at line 21 of file libgs.h.

Data Fields
u8 interlace

Interlace/non-interlace mode.

u8 omode

Video mode.

u8 ffmode

FIELD/FRAME value.

u8 version

GS version.

◆ QWORD

struct QWORD

Definition at line 333 of file libgs.h.

Data Fields
u64 lo
u64 hi

◆ GS_PMODE

struct GS_PMODE

Definition at line 344 of file libgs.h.

Data Fields
u32 enable_rc1:1

Enable ReadCircuit 1

u32 enable_rc2:1

Enable ReadCircuit 2

u32 crt_out:3

CRT output switching(always 1)

u32 mmod:1

Value to use for alpha blend(0=value in 'RC1',1=value in 'blend_value')

u32 amod:1

ReadCircuit to output alpha to (0=RC1, 1=RC2)

u32 blend_style:1

Blend Method(0=blend with RC2, 0=blend with BG)

u32 blend_value:8

Alpha Blend Value (0-255)

u32 nfld:1

Output to NFIELD

u32 pad1:15

Pad with zeros

u32 exvwins:10

??

u32 exvwine:10

??

u32 exsyncmd:1

??

u32 pad2:11

Pad with zeros

◆ GS_SMODE1

struct GS_SMODE1

Definition at line 373 of file libgs.h.

Data Fields
u64 rc:3
u64 lc:7
u64 t1248:2
u64 slck:1
u64 cmod:2
u64 ex:1
u64 prst:1
u64 sint:1
u64 xpck:1
u64 pck2:2
u64 spml:4
u64 gcont:1
u64 phs:1
u64 pvs:1
u64 pehs:1
u64 pevs:1
u64 clksel:2
u64 nvck:1
u64 slck2:1
u64 vcksel:2
u64 vhp:2
u64 pad:26

◆ GS_SMODE2

struct GS_SMODE2

Definition at line 398 of file libgs.h.

Data Fields
u32 interlace:1
u32 field_frame:1
u32 vesta_dpms:2
u64 pad2:60

◆ GS_DISPFB

struct GS_DISPFB

Definition at line 405 of file libgs.h.

Data Fields
u32 address:9

Base pointer in VRam

u32 fbw:6

Buffer width in VRam

u32 psm:5

Pixel store mode

u32 pad1:12

Pad with zeros

u32 x:11

X Pos in in VRam

u32 y:11

Y Pos in VRam

u32 pad2:10

Pad with zeros

◆ GS_DISPLAY

struct GS_DISPLAY

Definition at line 422 of file libgs.h.

Data Fields
u32 display_x:12

Display area X pos

u32 display_y:11

Display area Y pos

u32 magnify_h:4

Horizontal magnification

u32 magnify_v:2

Vertical magnification

u32 pad1:3

Pad with zeros

u32 display_w:12

Display area width

u32 display_h:11

Display area height

u32 pad2:9

Pad with zeros

◆ GS_EXTBUF

struct GS_EXTBUF

Definition at line 441 of file libgs.h.

Data Fields
u64 exbp: 14
u64 exbw: 6
u64 fbin: 2
u64 wffmd: 1
u64 emoda: 2
u64 emodc: 2
u64 pad1: 5
u64 wdx: 11
u64 wdy: 11
u64 pad2: 10

◆ GS_EXTDATA

struct GS_EXTDATA

Definition at line 454 of file libgs.h.

Data Fields
u32 x:12

X coord where image is written to

u32 y:11

Y coord where image is written to

u32 sample_r_h:4

Horizontal Smaple Rate(VK units)

u32 sample_r_v:2

Vertical Smaple Rate

u32 pad1:3

Pad with zeros

u32 write_w:12

Width of area to write

u32 write_h:11

Height of area to write

u32 pad2:9

Pad with zeros

◆ GS_EXTWRITE

struct GS_EXTWRITE

Definition at line 473 of file libgs.h.

Data Fields
u32 write:1

Write Control(0=write done, 1=write start)

u32 pad1:31

Pad with zeros

u32 pad2

Pad with zeros

◆ GS_BGCOLOR

struct GS_BGCOLOR

Definition at line 482 of file libgs.h.

Data Fields
u8 r

Background Color Red

u8 g

Background Color Green

u8 b

Background Color Blue

u8 pada

0x0

float padq

0x0

◆ GS_CSR

struct GS_CSR

Definition at line 495 of file libgs.h.

Data Fields
u32 signal_evnt:1

Signal event control(write: 0=nothing,1=enable signal event, read: 0=signal not generated, 1=signal generated)

u32 finish_evnt:1

Finish event control(write: 0=nothing,1=enable finish event, read: 0=finish not generated, 1=finish generated)

u32 hsync_intrupt:1

HSync interrupt ,, ,, ,, ,,

u32 vsync_intrupt:1

VSync interrupt ,, ,, ,, ,,

u32 write_terminate:1

Write termination control ,, ,, ,, ,,

u32 exhsint:1

??

u32 exvsint:1

??

u32 pad1:1

Pad with zeros

u32 flush:1

Flush GS

u32 reset:1

Reset GS

u32 exverr:1

??

u32 exfield:1

??

u32 nfield:1

NFIELD output

u32 current_field:1

Currnet displayed field

u32 fifo_status:2

Host interface FIFO status

u32 gs_rev_number:8

Revision number of GS

u32 gs_id:8

id of GS

u32 pad2:32

Pad with zeros

◆ GS_IMR

struct GS_IMR

Definition at line 535 of file libgs.h.

Data Fields
u32 pad1:8

Pad with zeros

u32 signal_mask:1

Signal event interrupt mask

u32 finish_mask:1

Finish event interrupt mask

u32 hsync_mask:1

HSync interrupt mask

u32 vsync_mask:1

VSync interrupt mask

u32 write_mask:1

Write termination mask

u32 exhs_mask:1

??

u32 exvs_mask:1

??

u32 pad2:17

Pad with zeros

u32 pad3

Pad with zeros

◆ GS_BUSDIR

struct GS_BUSDIR

Definition at line 558 of file libgs.h.

Data Fields
u32 direction:1

Transmission direction(0=host->local, 1=host<-local)

u32 p0:31

Pad with zeros

u32 p1

Pad with more zeros

◆ GS_PRIM

struct GS_PRIM

Definition at line 581 of file libgs.h.

Data Fields
u64 prim_type:3
u64 iip:1
u64 tme:1
u64 fge:1
u64 abe:1
u64 aa1:1
u64 fst:1
u64 ctxt:1
u64 fix:1
u64 pad1:53

◆ GS_RGBAQ

struct GS_RGBAQ

Definition at line 594 of file libgs.h.

Data Fields
u8 r
u8 g
u8 b
u8 a
float q

◆ GS_ST

struct GS_ST

Definition at line 602 of file libgs.h.

Data Fields
float s
float t

◆ GS_UV

struct GS_UV

Definition at line 607 of file libgs.h.

Data Fields
u64 u:14
u64 pad1:2
u64 v:14
u64 pad2:34

◆ GS_XYZF

struct GS_XYZF

Definition at line 614 of file libgs.h.

Data Fields
u16 x
u16 y
u32 z:24
u8 f

◆ GS_XYZ

struct GS_XYZ

Definition at line 621 of file libgs.h.

Data Fields
u16 x
u16 y
u32 z

◆ GS_TEX0

struct GS_TEX0

Definition at line 627 of file libgs.h.

Data Fields
u64 tb_addr:14
u64 tb_width:6
u64 psm:6
u64 tex_width:4
u64 tex_height:4
u64 tex_cc:1
u64 tex_funtion:2
u64 cb_addr:14
u64 clut_pixmode:4
u64 clut_smode:1
u64 clut_offset:5
u64 clut_loadmode:3

◆ GS_CLAMP

struct GS_CLAMP

Definition at line 643 of file libgs.h.

Data Fields
u64 wrap_mode_s:2
u64 wrap_mode_t:2
u64 min_clamp_u:10
u64 max_clamp_u:10
u64 min_clamp_v:10
u64 max_clamp_v:10
u64 pad0:20

◆ GS_FOG

struct GS_FOG

Definition at line 653 of file libgs.h.

Data Fields
u64 pad1:56
u8 f

◆ GS_TEX1

struct GS_TEX1

Definition at line 658 of file libgs.h.

Data Fields
u64 lcm:1
u64 pad1:1
u64 mxl:3
u64 mmag:1
u64 mmin:3
u64 mtba:1
u64 pad2:9
u64 l:2
u64 pad3:11
u64 k:12
u64 pad4:20

◆ GS_TEX2

struct GS_TEX2

Definition at line 672 of file libgs.h.

Data Fields
u64 pad1:20
u64 psm:6
u64 pad2:11
u64 cb_addr:14
u64 clut_psm:4
u64 clut_smode:1
u64 clut_offset:5
u64 clut_loadmode:3

◆ GS_XYOFFSET

struct GS_XYOFFSET

Definition at line 683 of file libgs.h.

Data Fields
u64 offset_x:16
u16 pad1
u64 offset_y:16
u16 pad2

◆ GS_PRMODECONT

struct GS_PRMODECONT

Definition at line 690 of file libgs.h.

Data Fields
u64 control:1
u64 pad1:63

◆ GS_PRMODE

struct GS_PRMODE

Definition at line 695 of file libgs.h.

Data Fields
u64 pad1:3
u64 iip:1
u64 tme:1
u64 fge:1
u64 abe:1
u64 aa1:1
u64 fst:1
u64 ctxt:1
u64 fix:1
u64 pad2:53

◆ GS_TEXCLUT

struct GS_TEXCLUT

Definition at line 708 of file libgs.h.

Data Fields
u64 cb_width:6
u64 clut_uoffset:6
u64 clut_voffset:10
u64 pad0:42

◆ GS_SCANMSK

struct GS_SCANMSK

Definition at line 715 of file libgs.h.

Data Fields
u64 mask:2
u64 pad0:62

◆ GS_MIPTBP1

struct GS_MIPTBP1

Definition at line 720 of file libgs.h.

Data Fields
u64 tb_addr1:14
u64 tb_width1:6
u64 tb_addr2:14
u64 tb_width2:6
u64 tb_addr3:14
u64 tb_width3:6
u64 pad1:4

◆ GS_MIPTBP2

struct GS_MIPTBP2

Definition at line 730 of file libgs.h.

Data Fields
u64 tb_addr4:14
u64 tb_width4:6
u64 tb_addr5:14
u64 tb_width5:6
u64 tb_addr6:14
u64 tb_width6:6
u64 pad0:4

◆ GS_TEXA

struct GS_TEXA

Definition at line 740 of file libgs.h.

Data Fields
u64 alpha_0: 8
u64 pad1: 7
u64 alpha_method: 1
u64 pad2:16
u64 alpha_1: 8
u64 pad3:24

◆ GS_FOGCOLOR

struct GS_FOGCOLOR

Definition at line 749 of file libgs.h.

Data Fields
u64 r:8
u64 g:8
u64 b:8
u64 pad1:40

◆ GS_TEXFLUSH

struct GS_TEXFLUSH

Definition at line 756 of file libgs.h.

Data Fields
u64 pad1

Pad With Zeros

◆ GS_SCISSOR

struct GS_SCISSOR

Definition at line 761 of file libgs.h.

Data Fields
u64 clip_x0:11
u64 pad1:5
u64 clip_x1:11
u64 pad2:5
u64 clip_y0:11
u64 pad3:5
u64 clip_y1:11
u64 pad4:5

◆ GS_ALPHA

struct GS_ALPHA

Definition at line 772 of file libgs.h.

Data Fields
u64 a:2
u64 b:2
u64 c:2
u64 d:2
u64 pad0:24
u64 alpha:8
u64 pad1:24

◆ GS_DIMX

struct GS_DIMX

Definition at line 782 of file libgs.h.

Data Fields
u64 dimx00:3
u64 pad0:1
u64 dimx01:3
u64 pad1:1
u64 dimx02:3
u64 pad2:1
u64 dimx03:3
u64 pad3:1
u64 dimx10:3
u64 pad4:1
u64 dimx11:3
u64 pad5:1
u64 dimx12:3
u64 pad6:1
u64 dimx13:3
u64 pad7:1
u64 dimx20:3
u64 pad8:1
u64 dimx21:3
u64 pad9:1
u64 dimx22:3
u64 pad10:1
u64 dimx23:3
u64 pad11:1
u64 dimx30:3
u64 pad12:1
u64 dimx31:3
u64 pad13:1
u64 dimx32:3
u64 pad14:1
u64 dimx33:3
u64 pad15:1

◆ GS_DTHE

struct GS_DTHE

Definition at line 820 of file libgs.h.

Data Fields
u64 enable:1
u64 pad01:63

◆ GS_COLCLAMP

struct GS_COLCLAMP

Definition at line 825 of file libgs.h.

Data Fields
u64 clamp:1
u64 pad01:63

◆ GS_TEST

struct GS_TEST

Definition at line 830 of file libgs.h.

Data Fields
u64 atest_enable:1
u64 atest_method:3
u64 atest_reference:8
u64 atest_fail_method:2
u64 datest_enable:1
u64 datest_mode:1
u64 ztest_enable:1
u64 ztest_method:2
u64 pad1:45

◆ GS_PABE

struct GS_PABE

Definition at line 842 of file libgs.h.

Data Fields
u64 enable:1
u64 pad0:63

◆ GS_FBA

struct GS_FBA

Definition at line 847 of file libgs.h.

Data Fields
u64 alpha:1
u64 pad0:63

◆ GS_FRAME

struct GS_FRAME

Definition at line 852 of file libgs.h.

Data Fields
u64 fb_addr:9
u64 pad1:7
u64 fb_width:6
u64 pad2:2
u64 psm:6
u64 pad3:2
u64 draw_mask:32

◆ GS_ZBUF

struct GS_ZBUF

Definition at line 862 of file libgs.h.

Data Fields
u64 fb_addr:9
u64 pad1:15
u64 psm:4
u64 pad2:4
u64 update_mask:1
u64 pad3:31

◆ GS_BITBLTBUF

struct GS_BITBLTBUF

Definition at line 871 of file libgs.h.

Data Fields
u64 src_addr:14
u64 pad1:2
u64 src_width:6
u64 pad2:2
u64 src_pixmode:6
u64 pad3:2
u64 dest_addr:14
u64 pad4:2
u64 dest_width:6
u64 pad5:2
u64 dest_pixmode:6
u64 pad6:2

◆ GS_TRXPOS

struct GS_TRXPOS

Definition at line 886 of file libgs.h.

Data Fields
u64 src_x:11
u64 pad1:5
u64 src_y:11
u64 pad2:5
u64 dest_x:11
u64 pad3:5
u64 dest_y:11
u64 direction:2
u64 pad4:3

◆ GS_TRXREG

struct GS_TRXREG

Definition at line 898 of file libgs.h.

Data Fields
u64 trans_w:12
u64 pad1:20
u64 trans_h:12
u64 pad2:20

◆ GS_TRXDIR

struct GS_TRXDIR

Definition at line 906 of file libgs.h.

Data Fields
u64 trans_dir:2
u64 pad1:62

◆ GS_HWREG

struct GS_HWREG

Definition at line 911 of file libgs.h.

Data Fields
u64 data

◆ GS_SIGNAL

struct GS_SIGNAL

Definition at line 915 of file libgs.h.

Data Fields
u32 signal_id
u32 update_mask

◆ GS_FINISH

struct GS_FINISH

Definition at line 920 of file libgs.h.

Data Fields
u64 pad0

◆ GS_LABEL

struct GS_LABEL

Definition at line 925 of file libgs.h.

Data Fields
u32 label_id
u32 update_mask

◆ GS_NOP

struct GS_NOP

Definition at line 930 of file libgs.h.

Data Fields
u64 pad0

◆ GS_R_PRIM

struct GS_R_PRIM

Definition at line 940 of file libgs.h.

+ Collaboration diagram for GS_R_PRIM:
Data Fields
GS_PRIM data
u64 reg

◆ GS_R_RGBAQ

struct GS_R_RGBAQ

Definition at line 945 of file libgs.h.

+ Collaboration diagram for GS_R_RGBAQ:
Data Fields
GS_RGBAQ data
u64 reg

◆ GS_R_ST

struct GS_R_ST

Definition at line 950 of file libgs.h.

+ Collaboration diagram for GS_R_ST:
Data Fields
GS_ST data
u64 reg

◆ GS_R_UV

struct GS_R_UV

Definition at line 955 of file libgs.h.

+ Collaboration diagram for GS_R_UV:
Data Fields
GS_UV data
u64 reg

◆ GS_R_XYZF

struct GS_R_XYZF

Definition at line 960 of file libgs.h.

+ Collaboration diagram for GS_R_XYZF:
Data Fields
GS_XYZF data
u64 reg

◆ GS_R_XYZ

struct GS_R_XYZ

Definition at line 965 of file libgs.h.

+ Collaboration diagram for GS_R_XYZ:
Data Fields
GS_XYZ data
u64 reg

◆ GS_R_TEX0

struct GS_R_TEX0

Definition at line 970 of file libgs.h.

+ Collaboration diagram for GS_R_TEX0:
Data Fields
GS_TEX0 data
u64 reg

◆ GS_R_CLAMP

struct GS_R_CLAMP

Definition at line 975 of file libgs.h.

+ Collaboration diagram for GS_R_CLAMP:
Data Fields
GS_CLAMP data
u64 reg

◆ GS_R_FOG

struct GS_R_FOG

Definition at line 980 of file libgs.h.

+ Collaboration diagram for GS_R_FOG:
Data Fields
GS_FOG data
u64 reg

◆ GS_R_TEX1

struct GS_R_TEX1

Definition at line 985 of file libgs.h.

+ Collaboration diagram for GS_R_TEX1:
Data Fields
GS_TEX1 data
u64 reg

◆ GS_R_TEX2

struct GS_R_TEX2

Definition at line 990 of file libgs.h.

+ Collaboration diagram for GS_R_TEX2:
Data Fields
GS_TEX2 data
u64 reg

◆ GS_R_XYOFFSET

struct GS_R_XYOFFSET

Definition at line 995 of file libgs.h.

+ Collaboration diagram for GS_R_XYOFFSET:
Data Fields
GS_XYOFFSET data
u64 reg

◆ GS_R_PRMODECONT

struct GS_R_PRMODECONT

Definition at line 1000 of file libgs.h.

+ Collaboration diagram for GS_R_PRMODECONT:
Data Fields
GS_PRMODECONT data
u64 reg

◆ GS_R_PRMODE

struct GS_R_PRMODE

Definition at line 1005 of file libgs.h.

+ Collaboration diagram for GS_R_PRMODE:
Data Fields
GS_PRMODE data
u64 reg

◆ GS_R_TEXCLUT

struct GS_R_TEXCLUT

Definition at line 1010 of file libgs.h.

+ Collaboration diagram for GS_R_TEXCLUT:
Data Fields
GS_TEXCLUT data
u64 reg

◆ GS_R_SCANMSK

struct GS_R_SCANMSK

Definition at line 1015 of file libgs.h.

+ Collaboration diagram for GS_R_SCANMSK:
Data Fields
GS_SCANMSK data
u64 reg

◆ GS_R_MIPTBP1

struct GS_R_MIPTBP1

Definition at line 1020 of file libgs.h.

+ Collaboration diagram for GS_R_MIPTBP1:
Data Fields
GS_MIPTBP1 data
u64 reg

◆ GS_R_MIPTBP2

struct GS_R_MIPTBP2

Definition at line 1025 of file libgs.h.

+ Collaboration diagram for GS_R_MIPTBP2:
Data Fields
GS_MIPTBP2 data
u64 reg

◆ GS_R_TEXA

struct GS_R_TEXA

Definition at line 1030 of file libgs.h.

+ Collaboration diagram for GS_R_TEXA:
Data Fields
GS_TEXA data
u64 reg

◆ GS_R_FOGCOLOR

struct GS_R_FOGCOLOR

Definition at line 1035 of file libgs.h.

+ Collaboration diagram for GS_R_FOGCOLOR:
Data Fields
GS_FOGCOLOR data
u64 reg

◆ GS_R_TEXFLUSH

struct GS_R_TEXFLUSH

Definition at line 1040 of file libgs.h.

+ Collaboration diagram for GS_R_TEXFLUSH:
Data Fields
GS_TEXFLUSH data
u64 reg

◆ GS_R_SCISSOR

struct GS_R_SCISSOR

Definition at line 1045 of file libgs.h.

+ Collaboration diagram for GS_R_SCISSOR:
Data Fields
GS_SCISSOR data
u64 reg

◆ GS_R_ALPHA

struct GS_R_ALPHA

Definition at line 1050 of file libgs.h.

+ Collaboration diagram for GS_R_ALPHA:
Data Fields
GS_ALPHA data
u64 reg

◆ GS_R_DIMX

struct GS_R_DIMX

Definition at line 1055 of file libgs.h.

+ Collaboration diagram for GS_R_DIMX:
Data Fields
GS_DIMX data
u64 reg

◆ GS_R_DTHE

struct GS_R_DTHE

Definition at line 1060 of file libgs.h.

+ Collaboration diagram for GS_R_DTHE:
Data Fields
GS_DTHE data
u64 reg

◆ GS_R_COLCLAMP

struct GS_R_COLCLAMP

Definition at line 1065 of file libgs.h.

+ Collaboration diagram for GS_R_COLCLAMP:
Data Fields
GS_COLCLAMP data
u64 reg

◆ GS_R_TEST

struct GS_R_TEST

Definition at line 1070 of file libgs.h.

+ Collaboration diagram for GS_R_TEST:
Data Fields
GS_TEST data
u64 reg

◆ GS_R_PABE

struct GS_R_PABE

Definition at line 1075 of file libgs.h.

+ Collaboration diagram for GS_R_PABE:
Data Fields
GS_PABE data
u64 reg

◆ GS_R_FBA

struct GS_R_FBA

Definition at line 1080 of file libgs.h.

+ Collaboration diagram for GS_R_FBA:
Data Fields
GS_FBA data
u64 reg

◆ GS_R_FRAME

struct GS_R_FRAME

Definition at line 1085 of file libgs.h.

+ Collaboration diagram for GS_R_FRAME:
Data Fields
GS_FRAME data
u64 reg

◆ GS_R_ZBUF

struct GS_R_ZBUF

Definition at line 1090 of file libgs.h.

+ Collaboration diagram for GS_R_ZBUF:
Data Fields
GS_ZBUF data
u64 reg

◆ GS_R_BITBLTBUF

struct GS_R_BITBLTBUF

Definition at line 1095 of file libgs.h.

+ Collaboration diagram for GS_R_BITBLTBUF:
Data Fields
GS_BITBLTBUF data
u64 reg

◆ GS_R_TRXPOS

struct GS_R_TRXPOS

Definition at line 1100 of file libgs.h.

+ Collaboration diagram for GS_R_TRXPOS:
Data Fields
GS_TRXPOS data
u64 reg

◆ GS_R_TRXREG

struct GS_R_TRXREG

Definition at line 1105 of file libgs.h.

+ Collaboration diagram for GS_R_TRXREG:
Data Fields
GS_TRXREG data
u64 reg

◆ GS_R_TRXDIR

struct GS_R_TRXDIR

Definition at line 1110 of file libgs.h.

+ Collaboration diagram for GS_R_TRXDIR:
Data Fields
GS_TRXDIR data
u64 reg

◆ GS_R_HWREG

struct GS_R_HWREG

Definition at line 1115 of file libgs.h.

+ Collaboration diagram for GS_R_HWREG:
Data Fields
GS_HWREG data
u64 reg

◆ GS_R_SIGNAL

struct GS_R_SIGNAL

Definition at line 1120 of file libgs.h.

+ Collaboration diagram for GS_R_SIGNAL:
Data Fields
GS_SIGNAL data
u64 reg

◆ GS_R_FINISH

struct GS_R_FINISH

Definition at line 1125 of file libgs.h.

+ Collaboration diagram for GS_R_FINISH:
Data Fields
GS_FINISH data
u64 reg

◆ GS_R_LABEL

struct GS_R_LABEL

Definition at line 1130 of file libgs.h.

+ Collaboration diagram for GS_R_LABEL:
Data Fields
GS_LABEL data
u64 reg

◆ GS_R_NOP

struct GS_R_NOP

Definition at line 1135 of file libgs.h.

+ Collaboration diagram for GS_R_NOP:
Data Fields
GS_NOP data
u64 reg

◆ _GS_GIF_DMACHAIN_TAG

struct _GS_GIF_DMACHAIN_TAG

SOURCE CHAIN TAG for DMA CHAIN MODE

Definition at line 1848 of file libgs.h.

Data Fields
u64 qwc:16
u64 pad1:10
u64 pce:2
u64 id:3
u64 irq:1
u64 addr:31
u64 spr:1
u64 pad2:64

◆ GS_GIF_TAG

struct GS_GIF_TAG

Definition at line 1859 of file libgs.h.

Data Fields
u64 nloop:15
u64 eop:1
u64 pad1:30
u64 pre:1
u64 prim:11
u64 flg:2
u64 nreg:4
u64 reg:64

◆ GS_RECT

struct GS_RECT

Definition at line 1906 of file libgs.h.

Data Fields
short x
short y
short w
short h

◆ GS_URECT

struct GS_URECT

Definition at line 1913 of file libgs.h.

Data Fields
u16 x
u16 y
u16 w
u16 h

◆ GS_RECT32

struct GS_RECT32

Definition at line 1920 of file libgs.h.

Data Fields
int x
int y
int w
int h

◆ GS_POS

struct GS_POS

Definition at line 1927 of file libgs.h.

Data Fields
short x
short y

◆ GS_ZENV

struct GS_ZENV

Definition at line 1932 of file libgs.h.

Data Fields
u16 vram_addr
u8 psm
u8 update_mask

◆ GS_DRAWENV

struct GS_DRAWENV

Screen Draw Environment

Definition at line 1940 of file libgs.h.

+ Collaboration diagram for GS_DRAWENV:
Data Fields
u16 offset_x
u16 offset_y
GS_URECT clip
u16 vram_addr
u8 fbw
u8 psm
u16 vram_x
u16 vram_y
u32 draw_mask
u8 auto_clear
GS_RGBAQ bg_color

◆ GS_DISPENV

struct GS_DISPENV

Screen Display Environment

Definition at line 1967 of file libgs.h.

+ Collaboration diagram for GS_DISPENV:
Data Fields
GS_DISPLAY disp
GS_DISPFB dispfb

◆ GS_POINT_P

struct GS_POINT_P

a pixel

Definition at line 1973 of file libgs.h.

+ Collaboration diagram for GS_POINT_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

point Color

GS_R_XYZ xyz0

vertex coordinate

◆ GS_POINT

struct GS_POINT

Definition at line 1983 of file libgs.h.

+ Collaboration diagram for GS_POINT:
Data Fields
GS_R_RGBAQ rgbaq0

point color

GS_R_XYZ xyz0

Primative vertex coordinate

◆ GS_LINE_F1_P

struct GS_LINE_F1_P

A Flat Line

Definition at line 1992 of file libgs.h.

+ Collaboration diagram for GS_LINE_F1_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

line color

GS_R_XYZ xyz0

vertex coordinate

GS_R_XYZ xyz1

vertex coordinate

◆ GS_LINE_F1

struct GS_LINE_F1

Definition at line 2004 of file libgs.h.

+ Collaboration diagram for GS_LINE_F1:
Data Fields
GS_R_RGBAQ rgbaq0

line color

GS_R_XYZ xyz0

vertex coordinate

GS_R_XYZ xyz1

vertex coordinate

◆ GS_LINE_G1_P

struct GS_LINE_G1_P

A Gouraud Line

Definition at line 2015 of file libgs.h.

+ Collaboration diagram for GS_LINE_G1_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

vertex 0 color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

vertex 1 color

GS_R_XYZ xyz1

vertex 1 coordinate

◆ GS_LINE_G1

struct GS_LINE_G1

Definition at line 2029 of file libgs.h.

+ Collaboration diagram for GS_LINE_G1:
Data Fields
GS_R_RGBAQ rgbaq0

vertex 0 color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

vertex 1 color

GS_R_XYZ xyz1

vertex 1 coordinate

◆ GS_TRIANGLE_F3_P

struct GS_TRIANGLE_F3_P

A Flat Triangle / Triangle Strip / Triangle Fan

Definition at line 2042 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_F3_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

tringle color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_F3

struct GS_TRIANGLE_F3

Definition at line 2056 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_F3:
Data Fields
GS_R_RGBAQ rgbaq0

triangle color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_FT3_P

struct GS_TRIANGLE_FT3_P

Definition at line 2068 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_FT3_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

triangle color

GS_R_UV uv0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_UV uv1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_UV uv2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_FT3

struct GS_TRIANGLE_FT3

Definition at line 2088 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_FT3:
Data Fields
GS_R_RGBAQ rgbaq0

triangle color

GS_R_UV uv0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_UV uv1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_UV uv2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_FT3ST_P

struct GS_TRIANGLE_FT3ST_P

Definition at line 2106 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_FT3ST_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

triangle color

GS_R_ST st0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_ST st1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_ST st2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_FT3ST

struct GS_TRIANGLE_FT3ST

Definition at line 2126 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_FT3ST:
Data Fields
GS_R_RGBAQ rgbaq0

triangle color

GS_R_ST st0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_ST st1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_ST st2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_G3_P

struct GS_TRIANGLE_G3_P

A Gouraud Triangle / Tri-Strip / Tri-Fan

Definition at line 2145 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_G3_P:
Data Fields
GS_R_PRIM prim

primitive attributes

GS_R_RGBAQ rgbaq0

vertex 0 color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

vertex 1 color

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_RGBAQ rgbaq2

vertex 2 color

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_G3

struct GS_TRIANGLE_G3

Definition at line 2163 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_G3:
Data Fields
GS_R_RGBAQ rgbaq0

vertex 0 color

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

vertex 1 color

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_RGBAQ rgbaq2

vertex 2 color

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_GT3ST_P

struct GS_TRIANGLE_GT3ST_P

Definition at line 2179 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_GT3ST_P:
Data Fields
GS_R_PRIM prim

Primitive Attributes

GS_R_RGBAQ rgbaq0

Vertex 0 Color

GS_R_ST st0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

Vertex 1 Color

GS_R_ST st1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_RGBAQ rgbaq2

Vertex 2 Color

GS_R_ST st2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_TRIANGLE_GT3ST

struct GS_TRIANGLE_GT3ST

Definition at line 2203 of file libgs.h.

+ Collaboration diagram for GS_TRIANGLE_GT3ST:
Data Fields
GS_R_RGBAQ rgbaq0

Vertex 0 Color

GS_R_ST st0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate

GS_R_RGBAQ rgbaq1

Vertex 1 Color

GS_R_ST st1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate

GS_R_RGBAQ rgbaq2

Vertex 2 Color

GS_R_ST st2

vertex 2 texture coordinate

GS_R_XYZ xyz2

vertex 2 coordinate

◆ GS_SPRITE_F4_P

struct GS_SPRITE_F4_P

A Untextured Sprite

Definition at line 2226 of file libgs.h.

+ Collaboration diagram for GS_SPRITE_F4_P:
Data Fields
GS_R_PRIM prim

Primitive Attributes

GS_R_RGBAQ rgbaq0

sprite Color

GS_R_XYZ xyz0

vertex 1 coordinate(upper left)

GS_R_XYZ xyz1

vertex 2 coordinate(lower right)

◆ GS_SPRITE_F4

struct GS_SPRITE_F4

Definition at line 2238 of file libgs.h.

+ Collaboration diagram for GS_SPRITE_F4:
Data Fields
GS_R_RGBAQ rgbaq0

Vertex 1 Color

GS_R_XYZ xyz0

vertex 1 coordinate(upper left)

GS_R_XYZ xyz1

vertex 2 coordinate(lower right)

◆ GS_SPRITE_FT4_P

struct GS_SPRITE_FT4_P

Definition at line 2249 of file libgs.h.

+ Collaboration diagram for GS_SPRITE_FT4_P:
Data Fields
GS_R_PRIM prim

Primitive Attributes

GS_R_RGBAQ rgbaq0

sprite Color

GS_R_UV uv0

vertex 0 Texture Coordinate(upper left)

GS_R_XYZ xyz0

vertex 0 coordinate(upper left)

GS_R_UV uv1

vertex 1 Texture Coordinate(lower right)

GS_R_XYZ xyz1

vertex 1 coordinate(lower right)

◆ GS_SPRITE_FT4

struct GS_SPRITE_FT4

Definition at line 2265 of file libgs.h.

+ Collaboration diagram for GS_SPRITE_FT4:
Data Fields
GS_R_RGBAQ rgbaq0

sprite Color

GS_R_UV uv0

vertex 0 texture coordinate

GS_R_XYZ xyz0

vertex 0 coordinate(upper left)

GS_R_UV uv1

vertex 1 texture coordinate

GS_R_XYZ xyz1

vertex 1 coordinate(lower right)

◆ GS_GIF_PACKET

struct GS_GIF_PACKET

Definition at line 2281 of file libgs.h.

+ Collaboration diagram for GS_GIF_PACKET:
Data Fields
GS_GIF_DMACHAIN_TAG tag
QWORD data[GS_PACKET_DATA_QWORD_MAX]

◆ GS_PACKET_TABLE

struct GS_PACKET_TABLE

Definition at line 2287 of file libgs.h.

+ Collaboration diagram for GS_PACKET_TABLE:
Data Fields
u32 packet_count
u32 packet_offset
u32 qword_offset
GS_GIF_PACKET * packets

◆ GS_IMAGE

struct GS_IMAGE

Definition at line 2295 of file libgs.h.

Data Fields
u16 x

X Offset in Vram Address

u16 y

X Offset in Vram Address

u16 width

Height of image

u16 height

Width of image

u16 vram_addr

Address in frame buffer

u8 vram_width

Width of vram (1=64)

u8 psm

Pixel Mode / PSM

Macro Definition Documentation

◆ GS_INIT_RESET

#define GS_INIT_RESET   0

Resets the GS and GIF.

Definition at line 33 of file libgs.h.

◆ GS_INIT_DRAW_RESET

#define GS_INIT_DRAW_RESET   1

Drawing operations are cancelled and primitive data will be discarded.

Definition at line 35 of file libgs.h.

◆ GS_NONINTERLACED

#define GS_NONINTERLACED   0x00

Definition at line 37 of file libgs.h.

◆ GS_INTERLACED

#define GS_INTERLACED   0x01

Definition at line 38 of file libgs.h.

◆ GS_FFMD_FIELD

#define GS_FFMD_FIELD   0x00

Read every other line from the beginning with the start of FIELD.

Definition at line 41 of file libgs.h.

◆ GS_FFMD_FRAME

#define GS_FFMD_FRAME   0x01

Read every line from the beginning with the start of FRAME.

Definition at line 43 of file libgs.h.

◆ GS_DISABLE

#define GS_DISABLE   0

Definition at line 62 of file libgs.h.

◆ GS_ENABLE

#define GS_ENABLE   1

Definition at line 63 of file libgs.h.

◆ GS_PIXMODE_32

#define GS_PIXMODE_32   0

regular Pixel Storage Modes (PSM)

Definition at line 77 of file libgs.h.

◆ GS_PIXMODE_24

#define GS_PIXMODE_24   1

Definition at line 78 of file libgs.h.

◆ GS_PIXMODE_16

#define GS_PIXMODE_16   2

Definition at line 79 of file libgs.h.

◆ GS_PIXMODE_16S

#define GS_PIXMODE_16S   10

Definition at line 80 of file libgs.h.

◆ GS_CLUT_32

#define GS_CLUT_32   0

clut Pixel Storage Modes (PSM)

Definition at line 83 of file libgs.h.

◆ GS_CLUT_16

#define GS_CLUT_16   2

Definition at line 84 of file libgs.h.

◆ GS_CLUT_16S

#define GS_CLUT_16S   10

Definition at line 85 of file libgs.h.

◆ GS_TEX_32

#define GS_TEX_32   0

texture/image Pixel Storage Modes (PSM)

Definition at line 88 of file libgs.h.

◆ GS_TEX_24

#define GS_TEX_24   1

Definition at line 89 of file libgs.h.

◆ GS_TEX_16

#define GS_TEX_16   2

Definition at line 90 of file libgs.h.

◆ GS_TEX_16S

#define GS_TEX_16S   10

Definition at line 91 of file libgs.h.

◆ GS_TEX_8

#define GS_TEX_8   19

Definition at line 92 of file libgs.h.

◆ GS_TEX_4

#define GS_TEX_4   20

Definition at line 93 of file libgs.h.

◆ GS_TEX_8H

#define GS_TEX_8H   27

Definition at line 94 of file libgs.h.

◆ GS_TEX_4HL

#define GS_TEX_4HL   36

Definition at line 95 of file libgs.h.

◆ GS_TEX_4HH

#define GS_TEX_4HH   44

Definition at line 96 of file libgs.h.

◆ GS_ZBUFF_32

#define GS_ZBUFF_32   48

Z-Buffer Pixel Storage Modes (PSM)

Definition at line 99 of file libgs.h.

◆ GS_ZBUFF_24

#define GS_ZBUFF_24   49

Definition at line 100 of file libgs.h.

◆ GS_ZBUFF_16

#define GS_ZBUFF_16   50

Definition at line 101 of file libgs.h.

◆ GS_ZBUFF_16S

#define GS_ZBUFF_16S   58

Definition at line 102 of file libgs.h.

◆ GS_TEX_CALC

#define GS_TEX_CALC   0

use near/far formula

Definition at line 135 of file libgs.h.

◆ GS_TEX_FIXED

#define GS_TEX_FIXED   1

fixed value (use K value)

Definition at line 137 of file libgs.h.

◆ GS_TEX_MIPMAP_DEFINE

#define GS_TEX_MIPMAP_DEFINE   0

use values in MIPTBP1

Definition at line 168 of file libgs.h.

◆ GS_TEX_MIPMAP_AUTO

#define GS_TEX_MIPMAP_AUTO   1

auto calculate mipmap address

Definition at line 170 of file libgs.h.

◆ gs_p_pmode

#define gs_p_pmode   0x12000000

Setup CRT Controller

Definition at line 190 of file libgs.h.

◆ gs_p_smode1

#define gs_p_smode1   0x12000010

Video signal settings, undocumented (don't set!)

Definition at line 192 of file libgs.h.

◆ gs_p_smode2

#define gs_p_smode2   0x12000020

CRTC Video Settings: PAL/NTCS, Interlace, etc.

Definition at line 194 of file libgs.h.

◆ gs_p_dispfb1

#define gs_p_dispfb1   0x12000070

Setup the CRTC's Read Circuit 1 data source settings

Definition at line 196 of file libgs.h.

◆ gs_p_display1

#define gs_p_display1   0x12000080

RC1 display output settings

Definition at line 198 of file libgs.h.

◆ gs_p_dispfb2

#define gs_p_dispfb2   0x12000090

Setup the CRTC's Read Circuit 2 data source settings

Definition at line 200 of file libgs.h.

◆ gs_p_display2

#define gs_p_display2   0x120000a0

RC2 display output settings

Definition at line 202 of file libgs.h.

◆ gs_p_extbuf

#define gs_p_extbuf   0x120000b0

Definition at line 203 of file libgs.h.

◆ gs_p_extdata

#define gs_p_extdata   0x120000c0

Definition at line 204 of file libgs.h.

◆ gs_p_extwrite

#define gs_p_extwrite   0x120000d0

Definition at line 205 of file libgs.h.

◆ gs_p_bgcolor

#define gs_p_bgcolor   0x120000e0

Set CRTC background color

Definition at line 207 of file libgs.h.

◆ gs_p_csr

#define gs_p_csr   0x12001000

System status and reset

Definition at line 209 of file libgs.h.

◆ gs_p_imr

#define gs_p_imr   0x12001010

Interrupt Mask Register

Definition at line 211 of file libgs.h.

◆ gs_p_busdir

#define gs_p_busdir   0x12001040

Set direction of data transmission FIFO

Definition at line 213 of file libgs.h.

◆ gs_p_siglblid

#define gs_p_siglblid   0x12001080

Signal\label value

Definition at line 215 of file libgs.h.

◆ gs_g_prim

#define gs_g_prim   0x00

Select and configure current drawing primitive

Definition at line 220 of file libgs.h.

◆ gs_g_rgbaq

#define gs_g_rgbaq   0x01

Setup current vertex color

Definition at line 222 of file libgs.h.

◆ gs_g_st

#define gs_g_st   0x02

ST map

Definition at line 224 of file libgs.h.

◆ gs_g_uv

#define gs_g_uv   0x03

UV map

Definition at line 226 of file libgs.h.

◆ gs_g_xyzf2

#define gs_g_xyzf2   0x04

Set vertex position and fog coefflcient (with draw kick)

Definition at line 228 of file libgs.h.

◆ gs_g_xyz2

#define gs_g_xyz2   0x05

Set vertex coordinate (with draw kick)

Definition at line 230 of file libgs.h.

◆ gs_g_tex0_1

#define gs_g_tex0_1   0x06

Select current texture in context 1

Definition at line 232 of file libgs.h.

◆ gs_g_tex0_2

#define gs_g_tex0_2   0x07

Select current texture in context 2

Definition at line 234 of file libgs.h.

◆ gs_g_clamp_1

#define gs_g_clamp_1   0x08

Set texture wrap mode in context 1

Definition at line 236 of file libgs.h.

◆ gs_g_clamp_2

#define gs_g_clamp_2   0x09

Set texture wrap mode in context 2

Definition at line 238 of file libgs.h.

◆ gs_g_fog

#define gs_g_fog   0x0a

Set fog attributes

Definition at line 240 of file libgs.h.

◆ gs_g_xyzf3

#define gs_g_xyzf3   0x0c

Set vertex position and fog coefflcient (no draw kick)

Definition at line 242 of file libgs.h.

◆ gs_g_xyz3

#define gs_g_xyz3   0x0d

Set vertex position (no draw kick)

Definition at line 244 of file libgs.h.

◆ gs_g_tex1_1

#define gs_g_tex1_1   0x14

Definition at line 245 of file libgs.h.

◆ gs_g_tex1_2

#define gs_g_tex1_2   0x15

Definition at line 246 of file libgs.h.

◆ gs_g_tex2_1

#define gs_g_tex2_1   0x16

Set texture filtering\sampling style in context 1

Definition at line 248 of file libgs.h.

◆ gs_g_tex2_2

#define gs_g_tex2_2   0x17

Set texture filtering\sampling style in context 2

Definition at line 250 of file libgs.h.

◆ gs_g_xyoffset_1

#define gs_g_xyoffset_1   0x18

Mapping from Primitive to Window coordinate system (Context 1)

Definition at line 252 of file libgs.h.

◆ gs_g_xyoffset_2

#define gs_g_xyoffset_2   0x19

Mapping from Primitive to Window coordinate system (Context 2)

Definition at line 254 of file libgs.h.

◆ gs_g_prmodecont

#define gs_g_prmodecont   0x1a

gs_g_prim or gs_g_prmode selector

Definition at line 256 of file libgs.h.

◆ gs_g_prmode

#define gs_g_prmode   0x1b

attributes of current drawing primitive

Definition at line 258 of file libgs.h.

◆ gs_g_texclut

#define gs_g_texclut   0x1c

Definition at line 259 of file libgs.h.

◆ gs_g_scanmsk

#define gs_g_scanmsk   0x22

Raster odd\even line drawing setting

Definition at line 261 of file libgs.h.

◆ gs_g_miptbp1_1

#define gs_g_miptbp1_1   0x34

Set mipmap address in context 1(mip level 1-3)

Definition at line 263 of file libgs.h.

◆ gs_g_miptbp1_2

#define gs_g_miptbp1_2   0x35

Set mipmap address in context 1(mip level 1-3)

Definition at line 265 of file libgs.h.

◆ gs_g_miptbp2_1

#define gs_g_miptbp2_1   0x36

Set mipmap address in context 2(mip level 4-6)

Definition at line 267 of file libgs.h.

◆ gs_g_miptbp2_2

#define gs_g_miptbp2_2   0x37

Set mipmap address in context 2(mip level 4-6)

Definition at line 269 of file libgs.h.

◆ gs_g_texa

#define gs_g_texa   0x3b

Texture alpha setting

Definition at line 271 of file libgs.h.

◆ gs_g_fogcol

#define gs_g_fogcol   0x3d

Set fog far color

Definition at line 273 of file libgs.h.

◆ gs_g_texflush

#define gs_g_texflush   0x3f

Flush texture buffer/cache

Definition at line 275 of file libgs.h.

◆ gs_g_scissor_1

#define gs_g_scissor_1   0x40

Setup clipping rectangle (Context 1)

Definition at line 277 of file libgs.h.

◆ gs_g_scissor_2

#define gs_g_scissor_2   0x41

Setup clipping rectangle (Context 2)

Definition at line 279 of file libgs.h.

◆ gs_g_alpha_1

#define gs_g_alpha_1   0x42

Alpha blending setting (Context 1)

Definition at line 281 of file libgs.h.

◆ gs_g_alpha_2

#define gs_g_alpha_2   0x43

Alpha blending setting (Context 2)

Definition at line 283 of file libgs.h.

◆ gs_g_dimx

#define gs_g_dimx   0x44

Dither matrix values

Definition at line 285 of file libgs.h.

◆ gs_g_dthe

#define gs_g_dthe   0x45

Enabel dither matrix

Definition at line 287 of file libgs.h.

◆ gs_g_colclamp

#define gs_g_colclamp   0x46

Color clamp control

Definition at line 289 of file libgs.h.

◆ gs_g_test_1

#define gs_g_test_1   0x47

FrameBuffer\ZBuffer Pixel test contol (Context 1)

Definition at line 291 of file libgs.h.

◆ gs_g_test_2

#define gs_g_test_2   0x48

FrameBuffer\ZBuffer Pixel test contol (Context 2)

Definition at line 293 of file libgs.h.

◆ gs_g_pabe

#define gs_g_pabe   0x49

Enable alpha blending

Definition at line 295 of file libgs.h.

◆ gs_g_fba_1

#define gs_g_fba_1   0x4a

Alpha correction value (Context 1)

Definition at line 297 of file libgs.h.

◆ gs_g_fba_2

#define gs_g_fba_2   0x4b

Alpha correction value (Context 2)

Definition at line 299 of file libgs.h.

◆ gs_g_frame_1

#define gs_g_frame_1   0x4c

Frame buffer settings (Context 1)

Definition at line 301 of file libgs.h.

◆ gs_g_frame_2

#define gs_g_frame_2   0x4d

Frame buffer settings (Context 2)

Definition at line 303 of file libgs.h.

◆ gs_g_zbuf_1

#define gs_g_zbuf_1   0x4e

Zbuffer configuration (Context 1)

Definition at line 305 of file libgs.h.

◆ gs_g_zbuf_2

#define gs_g_zbuf_2   0x4f

Zbuffer configuration (Context 2)

Definition at line 307 of file libgs.h.

◆ gs_g_bitbltbuf

#define gs_g_bitbltbuf   0x50

Texture transmission address & format

Definition at line 309 of file libgs.h.

◆ gs_g_trxpos

#define gs_g_trxpos   0x51

Texture transmission coordinates

Definition at line 311 of file libgs.h.

◆ gs_g_trxreg

#define gs_g_trxreg   0x52

Texture transmission width & height

Definition at line 313 of file libgs.h.

◆ gs_g_trxdir

#define gs_g_trxdir   0x53

Texture transmission direction

Definition at line 315 of file libgs.h.

◆ gs_g_hwreg

#define gs_g_hwreg   0x54

Definition at line 316 of file libgs.h.

◆ gs_g_signal

#define gs_g_signal   0x60

Definition at line 317 of file libgs.h.

◆ gs_g_finish

#define gs_g_finish   0x61

Definition at line 318 of file libgs.h.

◆ gs_g_label

#define gs_g_label   0x62

Definition at line 319 of file libgs.h.

◆ gs_g_nop

#define gs_g_nop   0x7f

no operation\does nothing\can be used as padding

Definition at line 321 of file libgs.h.

◆ gif_rd_ad

#define gif_rd_ad   0x0e

A+D

Definition at line 326 of file libgs.h.

◆ gif_rd_nop

#define gif_rd_nop   0x0f

NOP (Not OutPut)

Definition at line 328 of file libgs.h.

◆ GS_SET_PMODE

#define GS_SET_PMODE (   enable_rc1,
  enable_rc2,
  mmod,
  amod,
  blend_style,
  blend_value 
)
Value:
*(vu64 *)gs_p_pmode = \
(u64)((enable_rc1 ) & 0x00000001) << 0 | \
(u64)((enable_rc2 ) & 0x00000001) << 1 | \
(u64)((1 ) & 0x00000007) << 2 | \
(u64)((mmod ) & 0x00000001) << 5 | \
(u64)((amod ) & 0x00000001) << 6 | \
(u64)((blend_style) & 0x00000001) << 7 | \
(u64)((blend_value) & 0x000000FF) << 8
#define gs_p_pmode
Definition libgs.h:190

Definition at line 1142 of file libgs.h.

◆ GS_SET_SMODE1

#define GS_SET_SMODE1 (   rc,
  lc,
  t1248,
  slck,
  cmod,
  ex,
  prst,
  sint,
  xpck,
  pck2,
  spml,
  gcont,
  phs,
  pvs,
  pehs,
  pevs,
  clksel,
  nvck,
  slck2,
  vcksel,
  vhp 
)
Value:
*(vu64 *)gs_p_smode1 = \
(u64)((rc ) & 0x00000007) << 0 | \
(u64)((lc ) & 0x0000007F) << 3 | \
(u64)((t1248 ) & 0x00000003) << 10 | \
(u64)((slck ) & 0x00000001) << 12 | \
(u64)((cmod ) & 0x00000003) << 13 | \
(u64)((ex ) & 0x00000001) << 15 | \
(u64)((prst ) & 0x00000001) << 16 | \
(u64)((sint ) & 0x00000001) << 17 | \
(u64)((xpck ) & 0x00000001) << 18 | \
(u64)((pck2 ) & 0x00000003) << 19 | \
(u64)((spml ) & 0x0000000F) << 21 | \
(u64)((gcont ) & 0x00000001) << 25 | \
(u64)((phs ) & 0x00000001) << 26 | \
(u64)((pvs ) & 0x00000001) << 27 | \
(u64)((pehs ) & 0x00000001) << 28 | \
(u64)((pevs ) & 0x00000001) << 29 | \
(u64)((clksel ) & 0x00000003) << 30 | \
(u64)((nvck ) & 0x00000001) << 32 | \
(u64)((slck2 ) & 0x00000001) << 33 | \
(u64)((vcksel ) & 0x00000003) << 34 | \
(u64)((vhp ) & 0x00000003) << 36
#define gs_p_smode1
Definition libgs.h:192

Set by SetGsCrt(). DO NOT SET MANUALLY!!

Definition at line 1153 of file libgs.h.

◆ GS_SET_SMODE2

#define GS_SET_SMODE2 (   interlace,
  field_frame,
  vesta_dpms 
)
Value:
*(vu64 *)gs_p_smode2 = \
(u64)((interlace ) & 0x00000001) << 0 | \
(u64)((field_frame ) & 0x00000001) << 1 | \
(u64)((vesta_dpms ) & 0x00000003) << 2
#define gs_p_smode2
Definition libgs.h:194

Definition at line 1179 of file libgs.h.

◆ GS_SET_DISPFB1

#define GS_SET_DISPFB1 (   address,
  width,
  psm,
  x,
 
)
Value:
*(vu64 *)gs_p_dispfb1=\
(u64)((address ) & 0x000001FF) << 0 | \
(u64)((width ) & 0x0000003F) << 9 | \
(u64)((psm ) & 0x0000001F) << 15 | \
(u64)((x ) & 0x000007FF) << 32 | \
(u64)((y ) & 0x000007FF) << 43
#define gs_p_dispfb1
Definition libgs.h:196

Definition at line 1185 of file libgs.h.

◆ GS_SET_DISPFB2

#define GS_SET_DISPFB2 (   address,
  width,
  psm,
  x,
 
)
Value:
*(vu64 *)gs_p_dispfb2=\
(u64)((address ) & 0x000001FF) << 0 | \
(u64)((width ) & 0x0000003F) << 9 | \
(u64)((psm ) & 0x0000001F) << 15 | \
(u64)((x ) & 0x000007FF) << 32 | \
(u64)((y ) & 0x000007FF) << 43
#define gs_p_dispfb2
Definition libgs.h:200

Definition at line 1193 of file libgs.h.

◆ GS_SET_DISPLAY1

#define GS_SET_DISPLAY1 (   display_x,
  display_y,
  magnify_h,
  magnify_v,
  display_w,
  display_h 
)
Value:
*(vu64 *)gs_p_display1 = \
(u64)((display_x) & 0x00000FFF) << 0 | \
(u64)((display_y) & 0x000007FF) << 12 | \
(u64)((magnify_h) & 0x0000000F) << 23 | \
(u64)((magnify_v) & 0x00000003) << 27 | \
(u64)((display_w) & 0x00000FFF) << 32 | \
(u64)((display_h) & 0x000007FF) << 44
#define gs_p_display1
Definition libgs.h:198

Definition at line 1201 of file libgs.h.

◆ GS_SET_DISPLAY2

#define GS_SET_DISPLAY2 (   display_x,
  display_y,
  magnify_h,
  magnify_v,
  display_w,
  display_h 
)
Value:
*(vu64 *)gs_p_display2 = \
(u64)((display_x) & 0x00000FFF) << 0 | \
(u64)((display_y) & 0x000007FF) << 12 | \
(u64)((magnify_h) & 0x0000000F) << 23 | \
(u64)((magnify_v) & 0x00000003) << 27 | \
(u64)((display_w) & 0x00000FFF) << 32 | \
(u64)((display_h) & 0x000007FF) << 44
#define gs_p_display2
Definition libgs.h:202

Definition at line 1210 of file libgs.h.

◆ GS_SET_EXTBUF

#define GS_SET_EXTBUF (   A,
  B,
  C,
  D,
  E,
  F,
  G,
 
)
Value:
*(vu64 *)gs_p_extbuf = \
(u64)((A) & 0x00003FFF) << 0 | \
(u64)((B) & 0x0000003F) << 14 | \
(u64)((C) & 0x00000003) << 20 | \
(u64)((D) & 0x00000001) << 22 | \
(u64)((E) & 0x00000003) << 23 | \
(u64)((F) & 0x00000003) << 25 | \
(u64)((G) & 0x000007FF) << 32 | \
(u64)((H) & 0x000007FF) << 43

Definition at line 1219 of file libgs.h.

◆ GS_SET_EXTDATA

#define GS_SET_EXTDATA (   x,
  y,
  sample_r_h,
  sample_r_v,
  write_w,
  write_h 
)
Value:
*(vu64 *)gs_p_extdata = \
(u64)((x ) & 0x00000FFF) << 0 | \
(u64)((y ) & 0x000007FF) << 12 | \
(u64)((sample_r_h ) & 0x0000000F) << 23 | \
(u64)((sample_r_v ) & 0x00000003) << 27 | \
(u64)((write_w ) & 0x00000FFF) << 32 | \
(u64)((write_h ) & 0x000007FF) << 44

Definition at line 1230 of file libgs.h.

◆ GS_SET_EXTWRITE

#define GS_SET_EXTWRITE (   write)
Value:
*(vu64 *)gs_p_extwrite = \
(u64)((write) & 0x00000001)

Definition at line 1239 of file libgs.h.

◆ GS_SET_BGCOLOR

#define GS_SET_BGCOLOR (   r,
  g,
 
)
Value:
*(vu64 *)gs_p_bgcolor = \
(u64)((r) & 0x000000FF) << 0 | \
(u64)((g) & 0x000000FF) << 8 | \
(u64)((b) & 0x000000FF) << 16
#define gs_p_bgcolor
Definition libgs.h:207

Definition at line 1243 of file libgs.h.

◆ GS_SET_CSR

#define GS_SET_CSR (   signal_evnt,
  finish_evnt,
  hsync_intrupt,
  vsync_intrupt,
  write_terminate,
  flush,
  reset,
  nfield,
  current_field,
  fifo_status,
  gs_rev_number,
  gs_id 
)
Value:
*(vu64 *)gs_p_csr = \
(u64)((signal_evnt ) & 0x00000001) << 0 | \
(u64)((finish_evnt ) & 0x00000001) << 1 | \
(u64)((hsync_intrupt ) & 0x00000001) << 2 | \
(u64)((vsync_intrupt ) & 0x00000001) << 3 | \
(u64)((write_terminate) & 0x00000001) << 4 | \
(u64)((flush ) & 0x00000001) << 8 | \
(u64)((reset ) & 0x00000001) << 9 | \
(u64)((nfield ) & 0x00000001) << 12 | \
(u64)((current_field ) & 0x00000001) << 13 | \
(u64)((fifo_status ) & 0x00000003) << 14 | \
(u64)((gs_rev_number ) & 0x000000FF) << 16 | \
(u64)((gs_id ) & 0x000000FF) << 24
#define gs_p_csr
Definition libgs.h:209

Definition at line 1249 of file libgs.h.

◆ GS_SET_IMR

#define GS_SET_IMR (   signal_mask,
  finish_mask,
  hsync_mask,
  vsync_mask,
  write_mask,
  exhs_mask,
  exvs_mask 
)
Value:
*(vu64 *)gs_p_imr = \
(u64)((signal_mask) & 0x00000001) << 8 | \
(u64)((finish_mask) & 0x00000001) << 9 | \
(u64)((hsync_mask ) & 0x00000001) << 10 | \
(u64)((vsync_mask ) & 0x00000001) << 11 | \
(u64)((write_mask ) & 0x00000001) << 12 | \
(u64)((exhs_mask ) & 0x00000001) << 13 | \
(u64)((exvs_mask ) & 0x00000001) << 14
#define gs_p_imr
Definition libgs.h:211

Definition at line 1264 of file libgs.h.

◆ GS_SET_BUSDIR

#define GS_SET_BUSDIR (   direction)
Value:
*(vu64 *)gs_p_busdir = \
(u64)((direction) & 0x00000001)
#define gs_p_busdir
Definition libgs.h:213

Definition at line 1274 of file libgs.h.

◆ GS_SET_SIGLBLID

#define GS_SET_SIGLBLID (   signal_id,
  label_id 
)
Value:
*(vu64 *)gs_p_siglblid = \
(u64)((signal_id ) & 0xFFFFFFFF) << 0 | \
(u64)((label_id ) & 0xFFFFFFFF) << 32
#define gs_p_siglblid
Definition libgs.h:215

Definition at line 1278 of file libgs.h.

◆ GS_SET_CSR_signal_evnt

#define GS_SET_CSR_signal_evnt (   val)     GS_SET_CSR(val,0,0,0,0,0,0,0,0,0,0,0)

Definition at line 1288 of file libgs.h.

◆ GS_SET_CSR_finish_evnt

#define GS_SET_CSR_finish_evnt (   val)     GS_SET_CSR(0,val,0,0,0,0,0,0,0,0,0,0)

Definition at line 1291 of file libgs.h.

◆ GS_SET_CSR_hsync_intrupt

#define GS_SET_CSR_hsync_intrupt (   val)     GS_SET_CSR(0,0,val,0,0,0,0,0,0,0,0,0)

Definition at line 1294 of file libgs.h.

◆ GS_SET_CSR_vsync_intrupt

#define GS_SET_CSR_vsync_intrupt (   val)     GS_SET_CSR(0,0,0,val,0,0,0,0,0,0,0,0)

Definition at line 1297 of file libgs.h.

◆ GS_SET_CSR_write_terminate

#define GS_SET_CSR_write_terminate (   val)     GS_SET_CSR(0,0,0,0,val,0,0,0,0,0,0,0)

Definition at line 1300 of file libgs.h.

◆ GS_SET_CSR_flush

#define GS_SET_CSR_flush (   val)     GS_SET_CSR(0,0,0,0,0,val,0,0,0,0,0,0)

Definition at line 1303 of file libgs.h.

◆ GS_SET_CSR_reset

#define GS_SET_CSR_reset (   val)     GS_SET_CSR(0,0,0,0,0,0,val,0,0,0,0,0)

Definition at line 1306 of file libgs.h.

◆ GS_GET_CSR_signal_evnt

#define GS_GET_CSR_signal_evnt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 0))

Definition at line 1320 of file libgs.h.

◆ GS_GET_CSR_finish_evnt

#define GS_GET_CSR_finish_evnt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 1))

Definition at line 1323 of file libgs.h.

◆ GS_GET_CSR_hsync_intrupt

#define GS_GET_CSR_hsync_intrupt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 2))

Definition at line 1326 of file libgs.h.

◆ GS_GET_CSR_vsync_intrupt

#define GS_GET_CSR_vsync_intrupt    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 3))

Definition at line 1329 of file libgs.h.

◆ GS_GET_CSR_write_terminate

#define GS_GET_CSR_write_terminate    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 4))

Definition at line 1332 of file libgs.h.

◆ GS_GET_CSR_write_nfield

#define GS_GET_CSR_write_nfield    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 12))

Definition at line 1338 of file libgs.h.

◆ GS_GET_CSR_current_field

#define GS_GET_CSR_current_field    (*((vu64 *)(gs_p_csr)) & (0x00000001 << 13))

Definition at line 1341 of file libgs.h.

◆ GS_GET_CSR_fifo_status

#define GS_GET_CSR_fifo_status    (*((vu64 *)(gs_p_csr)) & (0x00000003 << 14))

Definition at line 1344 of file libgs.h.

◆ GS_GET_CSR_gs_rev_number

#define GS_GET_CSR_gs_rev_number    (*((vu64 *)(gs_p_csr)) & (0x000000FF << 16))

Definition at line 1347 of file libgs.h.

◆ GS_GET_CSR_gs_id

#define GS_GET_CSR_gs_id    (*((vu64 *)(gs_p_csr)) & (0x000000FF << 24))

Definition at line 1350 of file libgs.h.

◆ gs_setPRIM

#define gs_setPRIM (   p,
  _prim_type,
  _iip,
  _tme,
  _fge,
  _abe,
  _aa1,
  _fst,
  _ctxt,
  _fix 
)
Value:
(p)->prim_type = _prim_type, \
(p)->iip = _iip, \
(p)->tme = _tme, \
(p)->fge = _fge, \
(p)->abe = _abe, \
(p)->aa1 = _aa1, \
(p)->fst = _fst, \
(p)->ctxt = _ctxt, \
(p)->fix = _fix

Definition at line 1355 of file libgs.h.

◆ gs_setRGBAQ

#define gs_setRGBAQ (   p,
  _r,
  _g,
  _b,
  _a,
  _q 
)
Value:
(p)->r = _r, \
(p)->g = _g, \
(p)->b = _b, \
(p)->a = _a, \
(p)->q = _q

Definition at line 1366 of file libgs.h.

◆ gs_setST

#define gs_setST (   p,
  _s,
  _t 
)
Value:
(p)->s = _s, \
(p)->t = _t

Definition at line 1373 of file libgs.h.

◆ gs_setUV

#define gs_setUV (   p,
  _u,
  _v 
)
Value:
(p)->u = _u, \
(p)->v = _v

Definition at line 1377 of file libgs.h.

◆ gs_setXYZF2

#define gs_setXYZF2 (   p,
  _x,
  _y,
  _z,
  _f 
)
Value:
(p)->x = _x, \
(p)->y = _y, \
(p)->z = _z, \
(p)->f = _f

Definition at line 1381 of file libgs.h.

◆ gs_setXYZF3

#define gs_setXYZF3 (   p,
  _x,
  _y,
  _z,
  _f 
)
Value:
(p)->x = _x, \
(p)->y = _y, \
(p)->z = _z, \
(p)->f = _f

Definition at line 1387 of file libgs.h.

◆ gs_setXYZ2

#define gs_setXYZ2 (   p,
  _x,
  _y,
  _z 
)
Value:
(p)->x = _x, \
(p)->y = _y, \
(p)->z = _z

Definition at line 1393 of file libgs.h.

◆ gs_setXYZ3

#define gs_setXYZ3 (   p,
  _x,
  _y,
  _z 
)
Value:
(p)->x = _x, \
(p)->y = _y, \
(p)->z = _z

Definition at line 1398 of file libgs.h.

◆ gs_setTEX0_1

#define gs_setTEX0_1 (   p,
  _tb_addr,
  _tb_width,
  _psm,
  _tex_width,
  _tex_height,
  _tex_cc,
  _tex_funtion,
  _cb_addr,
  _clut_pixmode,
  _clut_smode,
  _clut_offset,
  _clut_loadmode 
)
Value:
(p)->tb_addr = _tb_addr, \
(p)->tb_width = _tb_width, \
(p)->psm = _psm, \
(p)->tex_width = _tex_width, \
(p)->tex_height = _tex_height, \
(p)->tex_cc = _tex_cc, \
(p)->tex_funtion = _tex_funtion, \
(p)->cb_addr = _cb_addr, \
(p)->clut_pixmode = _clut_pixmode, \
(p)->clut_smode = _clut_smode, \
(p)->clut_offset = _clut_offset, \
(p)->clut_loadmode = _clut_loadmode

Definition at line 1403 of file libgs.h.

◆ gs_setTEX0_2

#define gs_setTEX0_2   gs_setTEX0_1

Definition at line 1417 of file libgs.h.

◆ gs_setCLAMP_1

#define gs_setCLAMP_1 (   p,
  wms,
  wmt,
  minu,
  maxu,
  minv,
  maxv 
)
Value:
(p)->wms = wms, \
(p)->wmt = wmt, \
(p)->minu = minu, \
(p)->maxu = maxu, \
(p)->minv = minv, \
(p)->maxv = maxv

Definition at line 1419 of file libgs.h.

◆ gs_setCLAMP_2

#define gs_setCLAMP_2   gs_setCLAMP_1

Definition at line 1427 of file libgs.h.

◆ gs_setFOG

#define gs_setFOG (   p,
  _f 
)     (p)->f = _f

Definition at line 1429 of file libgs.h.

◆ gs_setTEX1_1

#define gs_setTEX1_1 (   p,
  _lcm,
  _mxl,
  _mmag,
  _mmin,
  _mtba,
  _l,
  _k 
)
Value:
(p)->lcm = _lcm, \
(p)->mxl = _mxl, \
(p)->mmag = _mmag, \
(p)->mmin = _mmin, \
(p)->mtba = _mtba, \
(p)->l = _l, \
(p)->k = _k

Definition at line 1432 of file libgs.h.

◆ gs_setTEX1_2

#define gs_setTEX1_2   gs_setTEX1_1

Definition at line 1441 of file libgs.h.

◆ gs_setTEX2_1

#define gs_setTEX2_1 (   p,
  _psm,
  _cbp,
  _cpsm,
  _csm,
  _csa,
  _cld 
)
Value:
(p)->psm = _psm, \
(p)->cbp = _cbp, \
(p)->cpsm = _cpsm, \
(p)->csm = _csm, \
(p)->csa = _csa, \
(p)->cld = _cld

Definition at line 1443 of file libgs.h.

◆ gs_setTEX2_2

#define gs_setTEX2_2   gs_setTEX2_1

Definition at line 1451 of file libgs.h.

◆ gs_set_XYOFFSET_1

#define gs_set_XYOFFSET_1 (   p,
  _offset_x,
  _offset_y 
)
Value:
(p)->offset_x = _offset_x, \
(p)->offset_y = _offset_y

Definition at line 1453 of file libgs.h.

◆ gs_set_XYOFFSET_2

#define gs_set_XYOFFSET_2   gs_set_XYOFFSET_1

Definition at line 1457 of file libgs.h.

◆ gs_set_PRMODECONT

#define gs_set_PRMODECONT (   p,
  _control 
)     (p)->control = _control

Definition at line 1459 of file libgs.h.

◆ gs_setPRMODE

#define gs_setPRMODE (   p,
  _iip,
  _tme,
  _fge,
  _abe,
  _aa1,
  _fst,
  _ctxt,
  _fix 
)
Value:
(p)->iip = _iip, \
(p)->tme = _tme, \
(p)->fge = _fge, \
(p)->abe = _abe, \
(p)->aa1 = _aa1, \
(p)->fst = _fst, \
(p)->ctxt = _ctxt, \
(p)->fix = _fix

Definition at line 1462 of file libgs.h.

◆ gs_setTEXCLUT

#define gs_setTEXCLUT (   p,
  _cbw,
  _cou,
  _cov 
)
Value:
(p)->cbw = _cbw, \
(p)->cou = _cou, \
(p)->cov = _cov

Definition at line 1472 of file libgs.h.

◆ gs_setSCANMSK

#define gs_setSCANMSK (   p,
  _msk 
)     (p)->msk = _msk

Definition at line 1477 of file libgs.h.

◆ gs_setMIPTBP1_1

#define gs_setMIPTBP1_1 (   p,
  _tbp1,
  _tbw1,
  _tbp2,
  _tbw2,
  _tbp3,
  _tbw3 
)
Value:
(p)->tbp1 = _tbp1, \
(p)->tbw1 = _tbw1, \
(p)->tbp2 = _tbp2, \
(p)->tbw2 = _tbw2, \
(p)->tbp3 = _tbp3, \
(p)->tbw3 = _tbw3

Definition at line 1480 of file libgs.h.

◆ gs_setMIPTBP1_2

#define gs_setMIPTBP1_2   gs_setMIPTBP1_1

Definition at line 1488 of file libgs.h.

◆ gs_setMIPTBP2_1

#define gs_setMIPTBP2_1 (   p,
  _tbp4,
  _tbw4,
  _tbp5,
  _tbw5,
  _tbp6,
  _tbw6 
)
Value:
(p)->tbp4 = _tbp4, \
(p)->tbw4 = _tbw4, \
(p)->tbp5 = _tbp5, \
(p)->tbw5 = _tbw5, \
(p)->tbp6 = _tbp6, \
(p)->tbw6 = _tbw6

Definition at line 1490 of file libgs.h.

◆ gs_setMIPTBP2_2

#define gs_setMIPTBP2_2   gs_setMIPTBP2_1

Definition at line 1498 of file libgs.h.

◆ gs_setTEXA

#define gs_setTEXA (   p,
  _alpha_0,
  _alpha_method,
  _alpha_1 
)
Value:
(p)->alpha_0 = _alpha_0, \
(p)->alpha_method = _alpha_method, \
(p)->alpha_1 = _alpha_1

Definition at line 1500 of file libgs.h.

◆ gs_setFOGCOLOR

#define gs_setFOGCOLOR (   p,
  _r,
  _g,
  _b 
)
Value:
(p)->r = _r, \
(p)->g = _g, \
(p)->b = _b

Definition at line 1505 of file libgs.h.

◆ gs_setTEXFLUSH

#define gs_setTEXFLUSH (   p)

Definition at line 1510 of file libgs.h.

◆ gs_setSCISSOR_1

#define gs_setSCISSOR_1 (   p,
  _clip_x0,
  _clip_x1,
  _clip_y0,
  _clip_y1 
)
Value:
(p)->clip_x0 = _clip_x0, \
(p)->clip_x1 = _clip_x1, \
(p)->clip_y0 = _clip_y0, \
(p)->clip_y1 = _clip_y1

Definition at line 1512 of file libgs.h.

◆ gs_setSCISSOR_2

#define gs_setSCISSOR_2   gs_setSCISSOR_1

Definition at line 1518 of file libgs.h.

◆ gs_setALPHA_1

#define gs_setALPHA_1 (   p,
  _a,
  _b,
  _c,
  _d,
  _alpha 
)
Value:
(p)->a = _a, \
(p)->b = _b, \
(p)->c = _c, \
(p)->d = _d, \
(p)->alpha = _alpha

Definition at line 1520 of file libgs.h.

◆ gs_setALPHA_2

#define gs_setALPHA_2   gs_setALPHA_1

Definition at line 1527 of file libgs.h.

◆ gs_setDIMX

#define gs_setDIMX (   p,
  _dimx00,
  _dimx01,
  _dimx02,
  _dimx03,
  _dimx10,
  _dimx11,
  _dimx12,
  _dimx13,
  _dimx20,
  _dimx21,
  _dimx22,
  _dimx23,
  _dimx30,
  _dimx31,
  _dimx32,
  _dimx33 
)
Value:
(p)->dimx00 = _dimx00, \
(p)->dimx01 = _dimx01, \
(p)->dimx02 = _dimx02, \
(p)->dimx03 = _dimx03, \
(p)->dimx10 = _dimx10, \
(p)->dimx11 = _dimx11, \
(p)->dimx12 = _dimx12, \
(p)->dimx13 = _dimx13, \
(p)->dimx20 = _dimx20, \
(p)->dimx21 = _dimx21, \
(p)->dimx22 = _dimx22, \
(p)->dimx23 = _dimx23, \
(p)->dimx30 = _dimx30, \
(p)->dimx31 = _dimx31, \
(p)->dimx32 = _dimx32, \
(p)->dimx33 = _dimx33

Definition at line 1529 of file libgs.h.

◆ gs_setDTHE

#define gs_setDTHE (   p,
  _enable 
)     (p)->enable = _enable

Definition at line 1547 of file libgs.h.

◆ gs_setCOLCLAMP

#define gs_setCOLCLAMP (   p,
  _clamp 
)     (p)->clamp = _clamp

Definition at line 1550 of file libgs.h.

◆ gs_setTEST_1

#define gs_setTEST_1 (   p,
  _atest_enable,
  _atest_method,
  _atest_reference,
  _atest_fail_method,
  _datest_enable,
  _datest_mode,
  _ztest_enable,
  _ztest_method 
)
Value:
(p)->atest_enable = _atest_enable, \
(p)->atest_method = _atest_method, \
(p)->atest_reference = _atest_reference, \
(p)->atest_fail_method = _atest_fail_method, \
(p)->datest_enable = _datest_enable, \
(p)->datest_mode = _datest_mode, \
(p)->ztest_enable = _ztest_enable, \
(p)->ztest_method = _ztest_method

Definition at line 1553 of file libgs.h.

◆ gs_setTEST_2

#define gs_setTEST_2   gs_setTEST_1

Definition at line 1563 of file libgs.h.

◆ gs_setPABE

#define gs_setPABE (   p,
  _enable 
)     (p)->enable = _enable

Definition at line 1565 of file libgs.h.

◆ gs_setFBA

#define gs_setFBA (   p,
  _alpha 
)     (p)->alpha = _alpha

Definition at line 1568 of file libgs.h.

◆ gs_setFRAME_1

#define gs_setFRAME_1 (   p,
  _fb_addr,
  _fb_width,
  _psm,
  _draw_mask 
)
Value:
(p)->fb_addr = _fb_addr, \
(p)->fb_width = _fb_width, \
(p)->psm = _psm, \
(p)->draw_mask = _draw_mask

Definition at line 1571 of file libgs.h.

◆ gs_setFRAME_2

#define gs_setFRAME_2   gs_setFRAME_1

Definition at line 1577 of file libgs.h.

◆ gs_setZBUF_1

#define gs_setZBUF_1 (   p,
  _fb_addr,
  _psm,
  _update_mask 
)
Value:
(p)->fb_addr = _fb_addr, \
(p)->psm = _psm, \
(p)->update_mask = _update_mask

Definition at line 1579 of file libgs.h.

◆ gs_setZBUF_2

#define gs_setZBUF_2   gs_setZBUF_1

Definition at line 1584 of file libgs.h.

◆ gs_setBITBLTBUF

#define gs_setBITBLTBUF (   p,
  _src_addr,
  _src_width,
  _src_pixmode,
  _dest_addr,
  _dest_width,
  _dest_pixmode 
)
Value:
(p)->src_addr = _src_addr, \
(p)->src_width = _src_width, \
(p)->src_pixmode = _src_pixmode, \
(p)->dest_addr = _dest_addr, \
(p)->dest_width = _dest_width, \
(p)->dest_pixmode = _dest_pixmode

Definition at line 1586 of file libgs.h.

◆ gs_setTRXPOS

#define gs_setTRXPOS (   p,
  _src_x,
  _src_y,
  _dest_x,
  _dest_y,
  _direction 
)
Value:
(p)->src_x = _src_x, \
(p)->src_y = _src_y, \
(p)->dest_x = _dest_x, \
(p)->dest_y = _dest_y, \
(p)->direction = _direction

Definition at line 1594 of file libgs.h.

◆ gs_setTRXREG

#define gs_setTRXREG (   p,
  _trans_w,
  _trans_h 
)
Value:
(p)->trans_w = _trans_w, \
(p)->trans_h = _trans_h

Definition at line 1601 of file libgs.h.

◆ gs_setTRXDIR

#define gs_setTRXDIR (   p,
  _trans_dir 
)     (p)->trans_dir = _trans_dir

Definition at line 1605 of file libgs.h.

◆ gs_setHWREG

#define gs_setHWREG (   p,
  _data 
)     (p)->data = _data

Definition at line 1608 of file libgs.h.

◆ gs_setSIGNAL

#define gs_setSIGNAL (   p,
  _signal_id,
  _update_mask 
)
Value:
(p)->signal_id = _signal_id, \
(p)->update_mask= _update_mask

Definition at line 1611 of file libgs.h.

◆ gs_setFINISH

#define gs_setFINISH (   p)     (p)->pad0 = 0

Definition at line 1615 of file libgs.h.

◆ gs_setLABEL

#define gs_setLABEL (   p,
  _label_id,
  _update_mask 
)
Value:
(p)->label_id = _label_id, \
(p)->update_mask= _update_mask

Definition at line 1618 of file libgs.h.

◆ gs_setNOP

#define gs_setNOP (   p)     (p)->pad0 = 0

Definition at line 1622 of file libgs.h.

◆ gs_setR_PRIM

#define gs_setR_PRIM (   p,
  _prim_type,
  _iip,
  _tme,
  _fge,
  _abe,
  _aa1,
  _fst,
  _ctxt,
  _fix 
)
Value:
gs_setPRIM(&p->data, _prim_type,_iip,_tme,_fge,_abe,_aa1,_fst,_ctxt,_fix),\
p->reg = gs_g_prim
#define gs_g_prim
Definition libgs.h:220

Definition at line 1627 of file libgs.h.

◆ gs_setR_RGBAQ

#define gs_setR_RGBAQ (   p,
  _r,
  _g,
  _b,
  _a,
  _q 
)
Value:
gs_setRGBAQ(&p->data, _r,_g,_b,_a,_q),\
(p)->reg = gs_g_rgbaq
#define gs_g_rgbaq
Definition libgs.h:222

Definition at line 1631 of file libgs.h.

◆ gs_setR_ST

#define gs_setR_ST (   p,
  _s,
  _t 
)
Value:
gs_setST(&p->data, _s,_t),\
(p)->reg = gs_g_st
#define gs_g_st
Definition libgs.h:224

Definition at line 1635 of file libgs.h.

◆ gs_setR_UV

#define gs_setR_UV (   p,
  _u,
  _v 
)
Value:
gs_setUV(&p->data, _u,_v),\
(p)->reg = gs_g_uv
#define gs_g_uv
Definition libgs.h:226

Definition at line 1639 of file libgs.h.

◆ gs_setR_XYZF2

#define gs_setR_XYZF2 (   p,
  _x,
  _y,
  _z,
  _f 
)
Value:
gs_setXYZF2(&p->data, _x,_y,_z,_f),\
(p)->reg = gs_g_xyzf2
#define gs_g_xyzf2
Definition libgs.h:228

Definition at line 1643 of file libgs.h.

◆ gs_setR_XYZF3

#define gs_setR_XYZF3 (   p,
  _x,
  _y,
  _z,
  _f 
)
Value:
gs_setR_XYZF3(&p->data, _x,_y,_z,_f),\
(p)->reg = gs_g_xyzf3
#define gs_g_xyzf3
Definition libgs.h:242

Definition at line 1647 of file libgs.h.

◆ gs_setR_XYZ2

#define gs_setR_XYZ2 (   p,
  _x,
  _y,
  _z 
)
Value:
gs_setXYZ2(&p->data, _x,_y,_z),\
(p)->reg = gs_g_xyz2
#define gs_g_xyz2
Definition libgs.h:230

Definition at line 1651 of file libgs.h.

◆ gs_setR_XYZ3

#define gs_setR_XYZ3 (   p,
  _x,
  _y,
  _z 
)
Value:
gs_setXYZ3(&p->data, _x,_y,_z),\
(p)->reg = gs_g_xyz3
#define gs_g_xyz3
Definition libgs.h:244

Definition at line 1655 of file libgs.h.

◆ gs_setR_TEX0_1

#define gs_setR_TEX0_1 (   p,
  _fb_addr,
  _fb_width,
  _psm,
  _tex_width,
  _tex_height,
  _col_comp,
  _tex_cc,
  _clutb_addr,
  _clut_pixmode,
  _clut_smode,
  _clut_offset,
  _cld 
)
Value:
gs_setTEX0_1(&p->data, _fb_addr,_fb_width,_psm,_tex_width,_tex_height,_col_comp,_tex_cc,_clutb_addr,_clut_pixmode,_clut_smode,_clut_offset,_cld),\
(p)->reg = gs_g_tex0_1
#define gs_g_tex0_1
Definition libgs.h:232

Definition at line 1659 of file libgs.h.

◆ gs_setR_TEX0_2

#define gs_setR_TEX0_2 (   p,
  _fb_addr,
  _fb_width,
  _psm,
  _tex_width,
  _tex_height,
  _col_comp,
  _tex_cc,
  _clutb_addr,
  _clut_pixmode,
  _clut_smode,
  _clut_offset,
  _cld 
)
Value:
gs_setTEX0_2(&p->data, _fb_addr,_fb_width,_psm,_tex_width,_tex_height,_col_comp,_tex_cc,_clutb_addr,_clut_pixmode,_clut_smode,_clut_offset,_cld),\
(p)->reg = gs_g_tex0_2
#define gs_g_tex0_2
Definition libgs.h:234

Definition at line 1663 of file libgs.h.

◆ gs_setR_CLAMP_1

#define gs_setR_CLAMP_1 (   p,
  wms,
  wmt,
  minu,
  maxu,
  minv,
  maxv 
)
Value:
gs_setCLAMP_1(&p->data, wms,wmt,minu,maxu,minv,maxv),\
(p)->reg = gs_g_clamp_1
#define gs_g_clamp_1
Definition libgs.h:236

Definition at line 1667 of file libgs.h.

◆ gs_setR_CLAMP_2

#define gs_setR_CLAMP_2 (   p,
  wms,
  wmt,
  minu,
  maxu,
  minv,
  maxv 
)
Value:
gs_setCLAMP_2(&p->data, wms,wmt,minu,maxu,minv,maxv),\
(p)->reg = gs_g_clamp_2
#define gs_g_clamp_2
Definition libgs.h:238

Definition at line 1671 of file libgs.h.

◆ gs_setR_FOG

#define gs_setR_FOG (   p,
  _f 
)
Value:
gs_setFOG(&p->data, _f),\
(p)->reg = gs_g_fog
#define gs_g_fog
Definition libgs.h:240

Definition at line 1675 of file libgs.h.

◆ gs_setR_TEX1_1

#define gs_setR_TEX1_1 (   p,
  _lcm,
  _mxl,
  _mmag,
  _mmin,
  _mtba,
  _l,
  _k 
)
Value:
gs_setTEX1_1(&p->data, _lcm,_mxl,_mmag,_mmin,_mtba,_l,_k),\
(p)->reg = gs_g_tex1_1

Definition at line 1679 of file libgs.h.

◆ gs_setR_TEX1_2

#define gs_setR_TEX1_2 (   p,
  _lcm,
  _mxl,
  _mmag,
  _mmin,
  _mtba,
  _l,
  _k 
)
Value:
gs_setTEX1_2(&p->data, _lcm,_mxl,_mmag,_mmin,_mtba,_l,_k),\
(p)->reg = gs_g_tex1_2

Definition at line 1683 of file libgs.h.

◆ gs_setR_TEX2_1

#define gs_setR_TEX2_1 (   p,
  _psm,
  _cbp,
  _cpsm,
  _csm,
  _csa,
  _cld 
)
Value:
gs_setTEX2_1(&p->data, _psm,_cbp,_cpsm,_csm,_csa,_cld),\
(p)->reg = gs_g_tex2_1
#define gs_g_tex2_1
Definition libgs.h:248

Definition at line 1687 of file libgs.h.

◆ gs_setR_TEX2_2

#define gs_setR_TEX2_2 (   p,
  _psm,
  _cbp,
  _cpsm,
  _csm,
  _csa,
  _cld 
)
Value:
gs_setTEX2_2(&p->data, _psm,_cbp,_cpsm,_csm,_csa,_cld),\
(p)->reg = gs_g_tex2_2
#define gs_g_tex2_2
Definition libgs.h:250

Definition at line 1691 of file libgs.h.

◆ gs_setR_XYOFFSET_1

#define gs_setR_XYOFFSET_1 (   p,
  _offset_x,
  _offset_y 
)
Value:
gs_set_XYOFFSET_1(&p->data, _offset_x,_offset_y),\
(p)->reg = gs_g_xyoffset_1
#define gs_g_xyoffset_1
Definition libgs.h:252

Definition at line 1695 of file libgs.h.

◆ gs_setR_XYOFFSET_2

#define gs_setR_XYOFFSET_2 (   p,
  _offset_x,
  _offset_y 
)
Value:
gs_set_XYOFFSET_2(&p->data, _offset_x,_offset_y),\
(p)->reg = gs_g_xyoffset_2
#define gs_g_xyoffset_2
Definition libgs.h:254

Definition at line 1699 of file libgs.h.

◆ gs_setR_PRMODECONT

#define gs_setR_PRMODECONT (   p,
  _control 
)
Value:
gs_set_PRMODECONT(&p->data, _control),\
(p)->reg = gs_g_prmodecont
#define gs_g_prmodecont
Definition libgs.h:256

Definition at line 1703 of file libgs.h.

◆ gs_setR_PRMODE

#define gs_setR_PRMODE (   p,
  _iip,
  _tme,
  _fge,
  _abe,
  _aa1,
  _fst,
  _ctxt,
  _fix 
)
Value:
gs_setPRMODE(&p->data, _iip,_tme,_fge,_abe,_aa1,_fst,_ctxt,_fix),\
(p)->reg = gs_g_prmode
#define gs_g_prmode
Definition libgs.h:258

Definition at line 1707 of file libgs.h.

◆ gs_setR_TEXCLUT

#define gs_setR_TEXCLUT (   p,
  _cbw,
  _cou,
  _cov 
)
Value:
gs_setTEXCLUT(&p->data, _cbw,_cou,_cov),\
(p)->reg = gs_g_texclut

Definition at line 1711 of file libgs.h.

◆ gs_setR_SCANMSK

#define gs_setR_SCANMSK (   p,
  _msk 
)
Value:
gs_setSCANMSK(&p->data, _msk),\
(p)->reg = gs_g_scanmsk
#define gs_g_scanmsk
Definition libgs.h:261

Definition at line 1715 of file libgs.h.

◆ gs_setR_MIPTBP1_1

#define gs_setR_MIPTBP1_1 (   p,
  _tbp1,
  _tbw1,
  _tbp2,
  _tbw2,
  _tbp3,
  _tbw3 
)
Value:
gs_setMIPTBP1_1(&p->data, _tbp1,_tbw1,_tbp2,_tbw2,_tbp3,_tbw3),\
(p)->reg = gs_g_miptbp1_1
#define gs_g_miptbp1_1
Definition libgs.h:263

Definition at line 1719 of file libgs.h.

◆ gs_setR_MIPTBP1_2

#define gs_setR_MIPTBP1_2 (   p,
  _tbp1,
  _tbw1,
  _tbp2,
  _tbw2,
  _tbp3,
  _tbw3 
)
Value:
gs_setMIPTBP1_2(&p->data, _tbp1,_tbw1,_tbp2,_tbw2,_tbp3,_tbw3),\
(p)->reg = gs_g_miptbp1_2
#define gs_g_miptbp1_2
Definition libgs.h:265

Definition at line 1723 of file libgs.h.

◆ gs_setR_MIPTBP2_1

#define gs_setR_MIPTBP2_1 (   p,
  _tbp4,
  _tbw4,
  _tbp5,
  _tbw5,
  _tbp6,
  _tbw6 
)
Value:
gs_setR_MIPTBP2_1(&p->data, _tbp4,_tbw4,_tbp5,_tbw5,_tbp6,_tbw6),\
(p)->reg = gs_g_miptbp2_1
#define gs_g_miptbp2_1
Definition libgs.h:267

Definition at line 1727 of file libgs.h.

◆ gs_setR_MIPTBP2_2

#define gs_setR_MIPTBP2_2 (   p,
  _tbp4,
  _tbw4,
  _tbp5,
  _tbw5,
  _tbp6,
  _tbw6 
)
Value:
gs_setMIPTBP2_2(&p->data, _tbp4,_tbw4,_tbp5,_tbw5,_tbp6,_tbw6),\
(p)->reg = gs_g_miptbp2_2
#define gs_g_miptbp2_2
Definition libgs.h:269

Definition at line 1731 of file libgs.h.

◆ gs_setR_TEXA

#define gs_setR_TEXA (   p,
  _ta0,
  _aem,
  _ta1 
)
Value:
gs_setTEXA(&p->data, _ta0,_aem,_ta1),\
(p)->reg = gs_g_texa
#define gs_g_texa
Definition libgs.h:271

Definition at line 1735 of file libgs.h.

◆ gs_setR_FOGCOLOR

#define gs_setR_FOGCOLOR (   p,
  _r,
  _g,
  _b 
)
Value:
gs_setFOGCOLOR(&p->data, _r,_g,_b),\
(p)->reg = gs_g_fogcol
#define gs_g_fogcol
Definition libgs.h:273

Definition at line 1739 of file libgs.h.

◆ gs_setR_TEXFLUSH

#define gs_setR_TEXFLUSH (   p)     (p)->reg = gs_g_texflush

Definition at line 1743 of file libgs.h.

◆ gs_setR_SCISSOR_1

#define gs_setR_SCISSOR_1 (   p,
  _clip_x0,
  _clip_x1,
  _clip_y0,
  _clip_y1 
)
Value:
gs_setSCISSOR_1(&p->data, _clip_x0,_clip_x1,_clip_y0,_clip_y1),\
(p)->reg = gs_g_scissor_1
#define gs_g_scissor_1
Definition libgs.h:277

Definition at line 1746 of file libgs.h.

◆ gs_setR_SCISSOR_2

#define gs_setR_SCISSOR_2 (   p,
  _clip_x0,
  _clip_x1,
  _clip_y0,
  _clip_y1 
)
Value:
gs_setSCISSOR_2(&p->data, _clip_x0,_clip_x1,_clip_y0,_clip_y1),\
(p)->reg = gs_g_scissor_2
#define gs_g_scissor_2
Definition libgs.h:279

Definition at line 1750 of file libgs.h.

◆ gs_setR_ALPHA_1

#define gs_setR_ALPHA_1 (   p,
  _a,
  _b,
  _c,
  _d,
  _fix 
)
Value:
gs_setALPHA_1(&p->data, _a,_b,_c,_d,_fix),\
(p)->reg = gs_g_alpha_1
#define gs_g_alpha_1
Definition libgs.h:281

Definition at line 1754 of file libgs.h.

◆ gs_setR_ALPHA_2

#define gs_setR_ALPHA_2 (   p,
  _a,
  _b,
  _c,
  _d,
  _fix 
)
Value:
gs_setALPHA_2(&p->data, _a,_b,_c,_d,_fix),\
(p)->reg = gs_g_alpha_2
#define gs_g_alpha_2
Definition libgs.h:283

Definition at line 1758 of file libgs.h.

◆ gs_setR_DIMX

#define gs_setR_DIMX (   p,
  _dimx00,
  _dimx01,
  _dimx02,
  _dimx03,
  _dimx10,
  _dimx11,
  _dimx12,
  _dimx13,
  _dimx20,
  _dimx21,
  _dimx22,
  _dimx23,
  _dimx30,
  _dimx31,
  _dimx32,
  _dimx33 
)
Value:
gs_setDIMX(&p->data, _dimx00,_dimx01,_dimx02,_dimx03,_dimx10,_dimx11,_dimx12,_dimx13,_dimx20,_dimx21,_dimx22,_dimx23,_dimx30,_dimx31,_dimx32,_dimx33),\
(p)->reg = gs_g_dimx
#define gs_g_dimx
Definition libgs.h:285

Definition at line 1762 of file libgs.h.

◆ gs_setR_DTHE

#define gs_setR_DTHE (   p,
  _enable 
)
Value:
gs_setDTHE(&p->data, _enable),\
(p)->reg = gs_g_dthe
#define gs_g_dthe
Definition libgs.h:287

Definition at line 1766 of file libgs.h.

◆ gs_setR_COLCLAMP

#define gs_setR_COLCLAMP (   p,
  _clamp 
)
Value:
gs_setCOLCLAMP(&p->data, _clamp),\
(p)->reg = gs_g_colclamp
#define gs_g_colclamp
Definition libgs.h:289

Definition at line 1770 of file libgs.h.

◆ gs_setR_TEST_1

#define gs_setR_TEST_1 (   p,
  _ATE,
  _ATST,
  _AREF,
  _AFAIL,
  _DATE,
  _DATM,
  _ZTE,
  _ZTST 
)
Value:
gs_setTEST_1(&p->data, _ATE,_ATST,_AREF,_AFAIL,_DATE,_DATM,_ZTE,_ZTST),\
(p)->reg = gs_g_test_1
#define gs_g_test_1
Definition libgs.h:291

Definition at line 1774 of file libgs.h.

◆ gs_setR_TEST_2

#define gs_setR_TEST_2 (   p,
  _ATE,
  _ATST,
  _AREF,
  _AFAIL,
  _DATE,
  _DATM,
  _ZTE,
  _ZTST 
)
Value:
gs_setTEST_2(&p->data, _ATE,_ATST,_AREF,_AFAIL,_DATE,_DATM,_ZTE,_ZTST),\
(p)->reg = gs_g_test_2
#define gs_g_test_2
Definition libgs.h:293

Definition at line 1778 of file libgs.h.

◆ gs_setR_PABE

#define gs_setR_PABE (   p,
  _enable 
)
Value:
gs_setPABE(&p->data, _enable),\
(p)->reg = gs_g_pabe
#define gs_g_pabe
Definition libgs.h:295

Definition at line 1782 of file libgs.h.

◆ gs_setR_FBA_1

#define gs_setR_FBA_1 (   p,
  _alpha 
)
Value:
gs_setFBA(&p->data, _alpha),\
(p)->reg = gs_g_fba_1
#define gs_g_fba_1
Definition libgs.h:297

Definition at line 1786 of file libgs.h.

◆ gs_setR_FBA_2

#define gs_setR_FBA_2 (   p,
  _alpha 
)
Value:
gs_setFBA(&p->data, _alpha),\
(p)->reg = gs_g_fba_2
#define gs_g_fba_2
Definition libgs.h:299

Definition at line 1790 of file libgs.h.

◆ gs_setR_FRAME_1

#define gs_setR_FRAME_1 (   p,
  _fb_addr,
  _fb_width,
  _psm,
  _draw_mask 
)
Value:
gs_setFRAME_1(&p->data, _fb_addr,_fb_width,_psm,_draw_mask),\
(p)->reg = gs_g_frame_1
#define gs_g_frame_1
Definition libgs.h:301

Definition at line 1794 of file libgs.h.

◆ gs_setR_FRAME_2

#define gs_setR_FRAME_2 (   p,
  _fb_addr,
  _fb_width,
  _psm,
  _draw_mask 
)
Value:
gs_setFRAME_2(&p->data, _fb_addr,_fb_width,_psm,_draw_mask),\
(p)->reg = gs_g_frame_2
#define gs_g_frame_2
Definition libgs.h:303

Definition at line 1798 of file libgs.h.

◆ gs_setR_ZBUF_1

#define gs_setR_ZBUF_1 (   p,
  _fb_addr,
  _psm,
  _update_mask 
)
Value:
gs_setZBUF_1(&p->data, _fb_addr,_psm,_update_mask),\
(p)->reg = gs_g_zbuf_1
#define gs_g_zbuf_1
Definition libgs.h:305

Definition at line 1802 of file libgs.h.

◆ gs_setR_ZBUF_2

#define gs_setR_ZBUF_2 (   p,
  _fb_addr,
  _psm,
  _update_mask 
)
Value:
gs_setZBUF_2(&p->data, _fb_addr,_psm,_update_mask),\
(p)->reg = gs_g_zbuf_2
#define gs_g_zbuf_2
Definition libgs.h:307

Definition at line 1806 of file libgs.h.

◆ gs_setR_BITBLTBUF

#define gs_setR_BITBLTBUF (   p,
  _src_addr,
  _src_width,
  _src_pixmode,
  _dest_addr,
  _dest_width,
  _dest_pixmode 
)
Value:
gs_setBITBLTBUF(&p->data, _src_addr,_src_width,_src_pixmode,_dest_addr,_dest_width,_dest_pixmode),\
(p)->reg = gs_g_bitbltbuf
#define gs_g_bitbltbuf
Definition libgs.h:309

Definition at line 1810 of file libgs.h.

◆ gs_setR_TRXPOS

#define gs_setR_TRXPOS (   p,
  _src_x,
  _src_y,
  _dest_x,
  _dest_y,
  _direction 
)
Value:
gs_setTRXPOS(&p->data, _src_x,_src_y,_dest_x,_dest_y,_direction),\
(p)->reg = gs_g_trxpos
#define gs_g_trxpos
Definition libgs.h:311

Definition at line 1814 of file libgs.h.

◆ gs_setR_TRXREG

#define gs_setR_TRXREG (   p,
  _trans_w,
  _trans_h 
)
Value:
gs_setTRXREG(&p->data, _trans_w,_trans_h),\
(p)->reg = gs_g_trxreg
#define gs_g_trxreg
Definition libgs.h:313

Definition at line 1818 of file libgs.h.

◆ gs_setR_TRXDIR

#define gs_setR_TRXDIR (   p,
  _trans_dir 
)
Value:
gs_setTRXDIR(&p->data, _trans_dir),\
(p)->reg = gs_g_trxdir
#define gs_g_trxdir
Definition libgs.h:315

Definition at line 1822 of file libgs.h.

◆ gs_setR_HWREG

#define gs_setR_HWREG (   p,
  _data 
)
Value:
gs_setHWREG(&p->data, _data),\
(p)->reg = gs_g_hwreg

Definition at line 1826 of file libgs.h.

◆ gs_setR_SIGNAL

#define gs_setR_SIGNAL (   p,
  _signal_id,
  _update_mask 
)
Value:
gs_setSIGNAL(&p->data, _signal_id,_update_mask),\
(p)->reg = gs_g_signal

Definition at line 1830 of file libgs.h.

◆ gs_setR_FINISH

#define gs_setR_FINISH (   p)     (p)->reg = gs_g_finish

Definition at line 1834 of file libgs.h.

◆ gs_setR_LABEL

#define gs_setR_LABEL (   p,
  _label_id,
  _update_mask 
)
Value:
gs_setLABEL(&p->data, _label_id,_update_mask),\
(p)->reg = gs_g_label

Definition at line 1837 of file libgs.h.

◆ gs_setR_NOP

#define gs_setR_NOP (   p)
Value:
gs_setNOP(&p->data),\
(p)->reg = gs_g_label

Definition at line 1841 of file libgs.h.

◆ gs_setGIF_TAG

#define gs_setGIF_TAG (   p,
  _nloop,
  _eop,
  _pre,
  _prim,
  _flg,
  _nreg,
  _reg 
)
Value:
(p)->nloop = _nloop, \
(p)->eop = _eop, \
(p)->pre = _pre, \
(p)->prim = _prim, \
(p)->flg = _flg, \
(p)->nreg = _nreg, \
(p)->reg = _reg

Definition at line 1870 of file libgs.h.

◆ CRTC_SETTINGS_DEFAULT1

Definition at line 1884 of file libgs.h.

◆ CRTC_SETTINGS_DEFAULT2

Definition at line 1885 of file libgs.h.

◆ CRTC_SETTINGS_EN1

#define CRTC_SETTINGS_EN1   ((u64)(1)<<0)

Enable RC1(ReadCircuit 1)

Definition at line 1888 of file libgs.h.

◆ CRTC_SETTINGS_EN2

#define CRTC_SETTINGS_EN2   ((u64)(1)<<1)

Enable RC2(ReadCircuit 1)

Definition at line 1890 of file libgs.h.

◆ CRTC_SETTINGS_ENBOTH

#define CRTC_SETTINGS_ENBOTH   CRTC_SETTINGS_EN1|CRTC_SETTINGS_EN2

Enable RC1 & R2

Definition at line 1892 of file libgs.h.

◆ CRTC_SETTINGS_BLENDRC1

#define CRTC_SETTINGS_BLENDRC1   ((u64)(0)<<5)

Use Alpha value from rc1 for blending

Definition at line 1894 of file libgs.h.

◆ CRTC_SETTINGS_BLENDVAL

#define CRTC_SETTINGS_BLENDVAL   ((u64)(1)<<5)

Use Alpha value from alpha_value of GsSetCRTCSettings() for blending

Definition at line 1896 of file libgs.h.

◆ CRTC_SETTINGS_OUTRC1

#define CRTC_SETTINGS_OUTRC1   ((u64)(0)<<6)

Output Final image to RC1

Definition at line 1898 of file libgs.h.

◆ CRTC_SETTINGS_OUTRC2

#define CRTC_SETTINGS_OUTRC2   ((u64)(1)<<6)

Output Final image to RC2

Definition at line 1900 of file libgs.h.

◆ CRTC_SETTINGS_STYLERC1

#define CRTC_SETTINGS_STYLERC1   ((u64)(0)<<7)

Blend With The Out Put of RC1

Definition at line 1902 of file libgs.h.

◆ CRTC_SETTINGS_STYLEBG

#define CRTC_SETTINGS_STYLEBG   ((u64)(1)<<7)

Blend With The Out Put of BG(background)

Definition at line 1904 of file libgs.h.

◆ GS_PACKET_DATA_QWORD_MAX

#define GS_PACKET_DATA_QWORD_MAX   32000

Definition at line 2279 of file libgs.h.

Enumeration Type Documentation

◆ GsVideoModes

enum GsVideoModes

Definition at line 55 of file libgs.h.

◆ GsPrimitiveTypes

types of primitives

Definition at line 66 of file libgs.h.

◆ GsATestMethods

Alpha test Methods

Definition at line 105 of file libgs.h.

◆ GsATestFailedUpdateMethods

Alpha test failed update Methods

Enumerator
GS_ALPHA_NO_UPDATE 

standard

Definition at line 117 of file libgs.h.

◆ GsZTestMethodTypes

Zbuffer test Methods

Definition at line 126 of file libgs.h.

◆ GsTexMipmaps

Enumerator
GS_TEX_MIPMAP0 

no mipmap

GS_TEX_MIPMAP1 

1 mipmap

GS_TEX_MIPMAP2 

2 mipmaps

GS_TEX_MIPMAP3 

3 mipmaps

GS_TEX_MIPMAP4 

4 mipmaps

GS_TEX_MIPMAP5 

5 mipmaps

GS_TEX_MIPMAP6 

6 mipmaps

Definition at line 139 of file libgs.h.

◆ GsTexFilterMethods

Enumerator
GS_TEX_NEAREST 

UnFiltered

GS_TEX_LINEAR 

Filtered

Definition at line 156 of file libgs.h.

◆ GsTexFunctions

Texture Function (used in TEX0->tex_cc)

Enumerator
GS_TEX_DECAL 

brighten texture based on Pixel's Alpha

GS_TEX_HIGHLIHGT1 

keep texture as is

GS_TEX_HIGHLIHGT2 

used when highlighting translucent polygons used when highlighting opaque polygons

Definition at line 173 of file libgs.h.

◆ GsGifDataFormat

Enumerator
GS_GIF_DISABLE 

Same operation with the IMAGE mode

Definition at line 180 of file libgs.h.

Function Documentation

◆ __attribute__()

SOURCE CHAIN TAG for DMA CHAIN MODE

◆ GsSetXYOffset1()

int GsSetXYOffset1 ( u16  x,
u16  y 
)

Definition at line 36 of file lowlevel.c.

◆ GsSetXYOffset2()

int GsSetXYOffset2 ( u16  x,
u16  y 
)

Definition at line 49 of file lowlevel.c.

◆ GsSetScissor1()

int GsSetScissor1 ( u16  upper_x,
u16  upper_y,
u16  lower_x,
u16  lower_y 
)

Definition at line 62 of file lowlevel.c.

◆ GsSetScissor2()

int GsSetScissor2 ( u16  upper_x,
u16  upper_y,
u16  lower_x,
u16  lower_y 
)

Definition at line 75 of file lowlevel.c.

◆ GsSetFrame1()

int GsSetFrame1 ( u16  framebuffer_addr,
u8  framebuffer_width,
u8  psm,
u32  draw_mask 
)

Definition at line 88 of file lowlevel.c.

◆ GsSetFrame2()

int GsSetFrame2 ( u16  framebuffer_addr,
u8  framebuffer_width,
u8  psm,
u32  draw_mask 
)

Definition at line 101 of file lowlevel.c.

◆ GsTextureFlush()

int GsTextureFlush ( void  )

Definition at line 114 of file lowlevel.c.

◆ GsSetPixelTest1()

int GsSetPixelTest1 ( u8  enable_alpha_test,
u8  alpha_test_method,
u8  alpha_reference,
u8  alpha_fail_method,
u8  enable_dest_alpha_test,
u8  dest_alpha_test_mode,
u8  enable_zbuff_test,
u8  alpha_zbuff_method 
)

Definition at line 127 of file lowlevel.c.

◆ GsSetPixelTest2()

int GsSetPixelTest2 ( u8  enable_alpha_test,
u8  alpha_test_method,
u8  alpha_reference,
u8  alpha_fail_method,
u8  enable_dest_alpha_test,
u8  dest_alpha_test_mode,
u8  enable_zbuff_test,
u8  alpha_zbuff_method 
)

Definition at line 140 of file lowlevel.c.

◆ GsSelectTexure1()

int GsSelectTexure1 ( u16  tex_addr,
u8  addr_width,
u8  tex_pixmode,
u16  tex_width,
u16  tex_height,
u16  clut_addr,
u8  clut_pixmode,
u8  clut_storagemode,
u8  clut_offset 
)

Definition at line 153 of file lowlevel.c.

◆ GsSelectTexure2()

int GsSelectTexure2 ( u16  tex_addr,
u8  addr_width,
u8  tex_pixmode,
u16  tex_width,
u16  tex_height,
u16  clut_addr,
u8  clut_pixmode,
u8  clut_storagemode,
u8  clut_offset 
)

Definition at line 166 of file lowlevel.c.

◆ GsSetFogColor()

void GsSetFogColor ( u8  r,
u8  g,
u8  b 
)

Definition at line 179 of file lowlevel.c.

◆ GsEnableColorClamp()

void GsEnableColorClamp ( u16  enable)

Definition at line 190 of file lowlevel.c.

◆ GsGetGParam()

GsGParam_t * GsGetGParam ( void  )

Definition at line 24 of file libgs.c.

◆ GsSetCRTCSettings()

void GsSetCRTCSettings ( u64  settings,
u8  alpha_value 
)

Definition at line 56 of file libgs.c.

◆ GsSetDefaultDrawEnv()

void GsSetDefaultDrawEnv ( GS_DRAWENV drawenv,
u16  psm,
u16  w,
u16  h 
)

Definition at line 23 of file draw.c.

◆ GsSetDefaultDrawEnvAddress()

void GsSetDefaultDrawEnvAddress ( GS_DRAWENV drawenv,
u16  vram_addr 
)

Definition at line 47 of file draw.c.

◆ GsSetDefaultDisplayEnv()

void GsSetDefaultDisplayEnv ( GS_DISPENV dispenv,
u16  psm,
u16  w,
u16  h,
u16  dx,
u16  dy 
)

Definition at line 76 of file draw.c.

◆ GsSetDefaultDisplayEnvAddress()

void GsSetDefaultDisplayEnvAddress ( GS_DISPENV dispenv,
u16  vram_addr 
)

Definition at line 166 of file draw.c.

◆ GsSetDefaultZBufferEnv()

void GsSetDefaultZBufferEnv ( GS_ZENV zenv,
u8  update_mask 
)

Definition at line 20 of file Zbuffer.c.

◆ GsSetDefaultZBufferEnvAddress()

void GsSetDefaultZBufferEnvAddress ( GS_ZENV zenv,
u16  vram_addr,
u8  psm 
)

Definition at line 25 of file Zbuffer.c.

◆ GsPutDrawEnv1()

void GsPutDrawEnv1 ( GS_DRAWENV drawenv)

Definition at line 171 of file draw.c.

◆ GsPutDrawEnv2()

void GsPutDrawEnv2 ( GS_DRAWENV drawenv)

Definition at line 209 of file draw.c.

◆ GsPutDisplayEnv1()

void GsPutDisplayEnv1 ( GS_DISPENV dispenv)

Definition at line 203 of file draw.c.

◆ GsPutDisplayEnv2()

void GsPutDisplayEnv2 ( GS_DISPENV dispenv)

Definition at line 240 of file draw.c.

◆ GsPutZBufferEnv1()

void GsPutZBufferEnv1 ( GS_ZENV zenv)

Definition at line 31 of file Zbuffer.c.

◆ GsPutZBufferEnv2()

void GsPutZBufferEnv2 ( GS_ZENV zenv)

Definition at line 42 of file Zbuffer.c.

◆ GsClearDrawEnv1()

void GsClearDrawEnv1 ( GS_DRAWENV drawenv)

clear draw buffer with GS_DRAWENV->bg_color color (contex 1)

Definition at line 184 of file draw.c.

References gif_rd_ad, GS_PRIM_SPRITE, and GsClearDrawEnv1().

Referenced by GsClearDrawEnv1().

◆ GsClearDrawEnv2()

void GsClearDrawEnv2 ( GS_DRAWENV drawenv)

clear draw buffer with GS_DRAWENV->bg_color color (contex 2)

Definition at line 221 of file draw.c.

References gif_rd_ad, GS_PRIM_SPRITE, and GsClearDrawEnv2().

Referenced by GsClearDrawEnv2().

◆ GsGifPacketsAlloc()

QWORD * GsGifPacketsAlloc ( GS_PACKET_TABLE table,
u32  num_qwords 
)

Definition at line 20 of file packets.c.

◆ GsGifPacketsClear()

void GsGifPacketsClear ( GS_PACKET_TABLE table)

Definition at line 70 of file packets.c.

◆ GsGifPacketsExecute()

int GsGifPacketsExecute ( GS_PACKET_TABLE table,
u16  wait 
)

Definition at line 76 of file packets.c.

◆ GsLoadImage()

int GsLoadImage ( const void *  source_addr,
GS_IMAGE dest 
)

Definition at line 20 of file texture.c.

◆ GsOverridePrimAttributes()

void GsOverridePrimAttributes ( s8  override,
s8  iip,
s8  tme,
s8  fge,
s8  abe,
s8  aa1,
s8  fst,
s8  ctxt,
s8  fix 
)

Definition at line 23 of file primitives.c.

◆ GsEnableDithering()

void GsEnableDithering ( u8  enable,
int  mode 
)

Definition at line 46 of file primitives.c.

◆ GsEnableAlphaTransparency1()

void GsEnableAlphaTransparency1 ( u16  enable,
u16  method,
u8  alpha_ref,
u16  fail_method 
)

Definition at line 74 of file primitives.c.

◆ GsEnableAlphaTransparency2()

void GsEnableAlphaTransparency2 ( u16  enable,
u16  method,
u8  alpha_ref,
u16  fail_method 
)

Definition at line 96 of file primitives.c.

◆ GsEnableZbuffer1()

void GsEnableZbuffer1 ( u16  enable,
u16  test_method 
)

Definition at line 118 of file primitives.c.

◆ GsEnableZbuffer2()

void GsEnableZbuffer2 ( u16  enable,
u16  test_method 
)

Definition at line 128 of file primitives.c.

◆ GsEnableAlphaBlending1()

void GsEnableAlphaBlending1 ( u16  enable)

Definition at line 139 of file primitives.c.

◆ GsEnableAlphaBlending2()

void GsEnableAlphaBlending2 ( u16  enable)

Definition at line 162 of file primitives.c.

◆ GsDrawSync()

void GsDrawSync ( int  mode)

Definition at line 18 of file sync.c.

◆ GsHSync()

void GsHSync ( int  mode)

Definition at line 28 of file sync.c.

◆ GsVSync()

void GsVSync ( int  mode)

Definition at line 50 of file sync.c.

◆ GsVramAllocFrameBuffer()

int GsVramAllocFrameBuffer ( s16  w,
s16  h,
s16  psm 
)

Definition at line 105 of file texture.c.

◆ GsVramAllocTextureBuffer()

int GsVramAllocTextureBuffer ( s16  w,
s16  h,
s16  psm 
)

Definition at line 156 of file texture.c.

◆ GsVramFreeAllTextureBuffer()

void GsVramFreeAllTextureBuffer ( void  )

free texture buffer without freeing frame buffer

Definition at line 206 of file texture.c.

References GsVramFreeAllTextureBuffer().

Referenced by GsVramFreeAllTextureBuffer().

◆ GsVramFreeAll()

void GsVramFreeAll ( void  )

Definition at line 222 of file texture.c.

◆ GsDbGetDrawBuffer()

int GsDbGetDrawBuffer ( void  )

Definition at line 20 of file DoubleBuff.c.

◆ GsDbGetDisplayBuffer()

int GsDbGetDisplayBuffer ( void  )

Definition at line 25 of file DoubleBuff.c.

◆ GsDbSwapBuffer()

void GsDbSwapBuffer ( void  )

Definition at line 30 of file DoubleBuff.c.

Variable Documentation

◆ __attribute__

static SifRpcServerData_t ps2mouse_server __attribute__

Stop the profiler. If the profiler is not running, this function does nothing.

Parameters
filenameThe name of the file to write the profiling data to.
should_dumpIf 1, the profiling data will be written to the file. If 0, the profiling data will be discarded.

Initializes pg library

After calculating the text size, __gprof_init() allocates enough memory to allow fastest access to arc structures, and some more for sampling statistics. Note that this also installs a timer that runs at 1000 hert.

Writes gmon.out dump file and stops profiling Called from _libcglue_deinit() function; will dump out a gmon.out file at cwd with all collected information.

Internal C handler for _mcount()

Parameters
frompcpc address of caller
selfpcpc address of current function

Called from mcount.S to make life a bit easier. __mcount is called right before a function starts. GCC generates a tiny stub at the very beginning of each compiled routine, which eventually brings the control to here.

file descriptor related mc command used by: mcInit, mcClose, mcSeek, mcRead, mcWrite, mcGetinfo, mcFormat, mcFlush, mcUnformat, mcChangeThreadPriority

rpc client data

Definition at line 60 of file tlbfunc.c.

◆ qwc

u64 qwc

Definition at line 0 of file libgs.h.

◆ pad1

u64 pad1

Definition at line 1 of file libgs.h.

◆ pce

u64 pce

Definition at line 2 of file libgs.h.

◆ id

u64 id

Definition at line 3 of file libgs.h.

◆ irq

u64 irq

Definition at line 4 of file libgs.h.

◆ addr

u64 addr

Definition at line 5 of file libgs.h.

◆ spr

u64 spr

Definition at line 6 of file libgs.h.

◆ pad2

u64 pad2

Definition at line 7 of file libgs.h.