init.c 26.9 KB
/**************************************************************************
 *                                                                        *
 *               Copyright (C) 1994, Silicon Graphics, Inc.               *
 *                                                                        *
 *  These coded instructions, statements, and computer programs  contain  *
 *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
 *  are protected by Federal copyright  law.  They  may not be disclosed  *
 *  to  third  parties  or copied or duplicated in any form, in whole or  *
 *  in part, without the prior written consent of Silicon Graphics, Inc.  *
 *                                                                        *
 *************************************************************************/

#include <ultra64.h>
#include "tron.h"

/*
 * Remember, viewport structures have 2 bits of fraction in them.
 */
static Vp vp = {
	SCREEN_WD*2, SCREEN_HT*2, G_MAXZ/2, 0,	/* scale */
	SCREEN_WD*2, SCREEN_HT*2, G_MAXZ/2, 0,	/* translate */
};

Gfx setup_rdpstate[MAX_STATIC_GFX_SIZE] = {

	/*
	 * Image pointers are translated via RSP segment registers.
	 * Preset segment register 0 with 0.
	 */

	gsSPSegment(0, 0),

	/*
	 * This RDP initialization sequence will setup the following modes
	 *
	 * 1 cycle mode, point sampled, zbuffer, smooth shaded opaque polygons
	 */

	gsDPPipeSync(),

	/*
	 * scissor must be larger than background clear rectangle
	 */

	/* dp */	gsDPSetScissor(G_SC_NON_INTERLACE, 0, 0, SCREEN_WD,
			 SCREEN_HT),
	/* dp */	gsDPSetCycleType(G_CYC_1CYCLE),
	/* dp */	gsDPPipelineMode(G_PM_1PRIMITIVE),

	/*
	 * Set texture image pointer to z so no undefines during ASIC
	 * verification
	 */

	/* tx */	gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WD, OS_K0_TO_PHYSICAL(zbuffer)),
	/* tx */	gsDPSetTextureLOD(G_TL_TILE),
	/* tx */	gsDPSetTextureLUT(G_TT_NONE),
	/* tx */	gsDPSetTextureDetail(G_TD_CLAMP),
	/* tx */	gsDPSetTexturePersp(G_TP_NONE),
	/* tx */	gsDPSetTileSize(0, 0, 0, 0, 0), /* needed for verilog simulation */
	/* tx */	gsDPSetTileSize(1, 0, 0, 0, 0), /* needed for verilog simulation */
	/* tx */	gsDPSetTile(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), /* needed for verilog simulation */
	/* tx */	gsDPSetTile(0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0), /* needed for verilog simulation */
	/* tf */	gsDPSetTextureFilter(G_TF_BILERP),
	/* tf */	gsDPSetTextureConvert(G_TC_FILT),
	/* cc */	gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
	/* cc */	gsDPSetCombineKey(G_CK_NONE),
	/* bl */	gsDPSetAlphaCompare(G_AC_NONE),
	/* bl */	gsDPSetDepthSource(G_ZS_PIXEL),
	/* bl */	gsDPSetRenderMode(G_RM_OPA_SURF, G_RM_OPA_SURF2),
	/* bl */	gsDPSetBlendMask(0xff),

	/* mi */	gsDPSetColorDither(G_CD_DISABLE),
	/* mi */	gsDPSetDepthImage(OS_K0_TO_PHYSICAL(zbuffer)),
			gsSPEndDisplayList(),
};

Gfx setup_rspstate[MAX_STATIC_GFX_SIZE] = {
/* XXX Initialize the matrix stack after we change host init DMEM */
	gsSPViewport(&vp),
	gsSPClearGeometryMode(0xffffffff),
	gsSPEndDisplayList(),
};

Gfx clear_fb[MAX_STATIC_GFX_SIZE] = {

	gsDPPipeSync(),
	gsDPSetCycleType(G_CYC_FILL),

	/*
	 * clear color, cvg = FULL or 1
	 */

	gsDPSetFillColor(GPACK_RGBA5551(20,20,88,1) << 16 | GPACK_RGBA5551(20,20,88,1)),
#ifdef REALCLEAR
	gsDPFillRectangle(0, 0, SCREEN_WD-1, SCREEN_HT-1),
	gsDPNoOp(), 
#else
	gsDPSetColorImage(5, G_IM_SIZ_16b, SCREEN_WD, OS_K0_TO_PHYSICAL(cfb_16_a)),
	gsDPSetColorImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WD,  OS_K0_TO_PHYSICAL(cfb_16_a)),
#endif

	/*
	 * clear z, z = max z, dz = 0
	 */

	gsDPPipeSync(),
	gsDPSetColorImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WD, OS_K0_TO_PHYSICAL(zbuffer)),
	gsDPSetFillColor(GPACK_ZDZ(G_MAXFBZ, 0) << 16 | GPACK_ZDZ(G_MAXFBZ, 0)),
#ifdef REALCLEAR
	gsDPFillRectangle(0, 0, SCREEN_WD-1, SCREEN_HT-1),
	gsDPNoOp(), 
#else
	gsDPSetColorImage(5, G_IM_SIZ_16b, SCREEN_WD, zbuffer),
	gsDPSetColorImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, SCREEN_WD, OS_K0_TO_PHYSICAL(zbuffer)),
#endif

	gsDPPipeSync(),
	gsDPSetCycleType(G_CYC_1CYCLE),
	gsSPEndDisplayList(),
};

static Gfx mmtex_6_dummy_aligner[] = { gsSPEndDisplayList() };

	/* user_data/demo/mg_tex/B_Y_stripes_U64 */
	/* width=32 height=32 */
unsigned short mmtex_6[] = 
{
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,0x843,0x843,0x843,0x843,0xffc1,0xffc1,0xffc1,0xffc1,
	0x843,0x843,0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,
	0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,0x843,0x843,
	0x843,0x843,0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,
	0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,0x843,0x843,
	0x843,0x843,0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,
	0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,0x843,0x843,
	0x843,0x843,0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,
	0xffc1,0xffc1,0x843,0x843,0xffc1,0xffc1,0x843,0x843,
	0x843,0xffc1,0x843,0xffc1,
	0x843,0xffc1,0x843,0xffc1,
	0x843,0xffc1,0x843,0xffc1,
	0x843,0xffc1,0x843,0xffc1,
	0x8403,0x8403,0x0,0x0,
	0x0,0x0,0x8403,0x8403,
	0x8403,0x0,0x0,0x0,
};

static Gfx mmtex_13_dummy_aligner[] = { gsSPEndDisplayList() };

	/* user_data/demo/mg_tex/swoosh_final_U64 */
	/* width=32 height=32 */
unsigned short mmtex_13[] = 
{
	0x1909,0x3213,0x42d9,0x3a97,0x4b1b,0x42d9,0x3257,0x42d9,0x3a99,0x4b1b,0x3a97,0x42d9,0x3a57,0x42d9,0x3a99,0x4b1b,0x4b1b,0x42d9,0x4b1b,0x42d9,0x42d9,0x5b5d,0x531b,0x42d9,0x531d,0x3a97,0x5b5d,0x4b1b,0x6be1,0x535d,0x4adb,0x3a97,
	0x42d9,0x42d9,0x1909,0x3213,0x42db,0x531d,0x535d,0x5b5d,0x42db,0x4adb,0x3a99,0x531d,0x42db,0x531d,0x3a99,0x4adb,0x4b1b,0x42d9,0x5b5d,0x4adb,0x531b,0x42d9,0x42d9,0x639f,0x4b1b,0x4b1b,0x531d,0x3a97,0x4b1b,0x3a97,0x7423,0x535d,
	0x1909,0x3213,0x42d9,0x4adb,0x531d,0x5b5d,0x531d,0x639f,0x42d9,0x5b9f,0x4b1b,0x4b1b,0x42d9,0x531b,0x531b,0x5b5d,0x5b5d,0x4b1b,0x4b1b,0x4299,0x42db,0x639f,0x535d,0x42d9,0x535d,0x42d9,0x4b1b,0x4b1b,0x7c65,0x5b5d,0x4b1b,0x4297,
	0x42d9,0x4b1b,0x1909,0x3213,0x531b,0x5b5d,0x535d,0x639f,0x535d,0x5b9f,0x42d9,0x5b9f,0x535d,0x63e1,0x4b1b,0x5b5d,0x535d,0x4adb,0x639f,0x531d,0x5b5d,0x4b1b,0x4b1b,0x639f,0x535d,0x4b1b,0x535d,0x4299,0x531d,0x4297,0x7423,0x5b5d,
	0x190b,0x3213,0x4ad9,0x4adb,0x5b5d,0x639f,0x535d,0x639f,0x4b1b,0x639f,0x4b1b,0x7423,0x4adb,0x5b5f,0x5b5d,0x6be1,0x639f,0x5b5d,0x5b5d,0x531b,0x4b1b,0x639f,0x535d,0x531b,0x5b5f,0x4299,0x42db,0x531b,0x7423,0x5b5f,0x531d,0x4297,
	0x4adb,0x531d,0x190b,0x3a53,0x531d,0x5b5f,0x6be1,0x5b5f,0x4b1d,0x5b5f,0x4adb,0x639f,0x5b5d,0x7c65,0x4b1b,0x5b5d,0x5b5d,0x531d,0x6be1,0x639f,0x531d,0x42db,0x4b1b,0x639f,0x4adb,0x531b,0x5b5d,0x3a99,0x535d,0x4ad9,0x639f,0x5b5f,
	0x190b,0x3a55,0x4b1b,0x4b1b,0x639f,0x5b9f,0x5b5d,0x639f,0x42db,0x5b5d,0x535d,0x5b9f,0x5b5f,0x5b5d,0x5b5d,0x7423,0x63df,0x535d,0x5b5d,0x4b1b,0x4b1b,0x639f,0x531d,0x42db,0x5b5d,0x42d9,0x42db,0x535d,0x639f,0x5b9f,0x535d,0x4ad9,
	0x4b1b,0x531b,0x190b,0x3a55,0x639f,0x6be1,0x6be1,0x6be3,0x5b5d,0x639f,0x4b1b,0x6c23,0x535d,0x6c23,0x531d,0x639f,0x639f,0x535d,0x639f,0x5b5d,0x531d,0x4b1b,0x531b,0x639f,0x4b1d,0x4b1b,0x5b5d,0x42d9,0x5b5d,0x4ad9,0x5b9f,0x5b9f,
	0x210b,0x3a55,0x531b,0x5b5d,0x6be1,0x6be1,0x639f,0x7423,0x531d,0x6c23,0x639f,0x5b5d,0x535d,0x639f,0x5b9f,0x6c23,0x6be1,0x531b,0x639f,0x4b1b,0x5b5f,0x6be1,0x5b9f,0x5b5d,0x6be1,0x42db,0x4b1b,0x535d,0x639f,0x639f,0x5b5f,0x4ad9,
	0x531b,0x6be1,0x214b,0x4255,0x535d,0x6be1,0x63e1,0x63a1,0x63e1,0x5b9f,0x4b1b,0x6be1,0x5b5d,0x7423,0x639f,0x639f,0x639f,0x531d,0x7423,0x5b9f,0x5b5d,0x531d,0x639f,0x6be1,0x535d,0x5b9f,0x6be1,0x4b1b,0x5b9f,0x4ad9,0x63e1,0x639f,
	0x214b,0x4295,0x531b,0x6be1,0x63a1,0x6be1,0x5b9f,0x7423,0x531d,0x6c23,0x63e1,0x531b,0x63e1,0x5b9f,0x639f,0x7423,0x7423,0x639f,0x639f,0x5b5d,0x5b5f,0x6be1,0x535d,0x531b,0x6be1,0x531b,0x5b5f,0x63a1,0x84a7,0x639f,0x5b9f,0x4ad9,
	0x531b,0x639f,0x214b,0x4295,0x639f,0x63e1,0x639f,0x6be1,0x639f,0x5b5d,0x535d,0x6be3,0x5b5d,0x7423,0x6be1,0x639f,0x5b5d,0x535d,0x6be1,0x5b5d,0x5b5d,0x535d,0x5b5d,0x639f,0x531d,0x5b5d,0x6be1,0x531d,0x5b9f,0x52d9,0x7423,0x63a1,
	0x214b,0x4295,0x531b,0x639f,0x6be1,0x6be1,0x639f,0x6be1,0x5b5f,0x6be1,0x639f,0x639f,0x6be1,0x5b5d,0x6be1,0x7425,0x7423,0x5b5d,0x6be1,0x5b9f,0x6be1,0x6be1,0x5b5d,0x5b5d,0x7423,0x531b,0x5b5d,0x63e1,0x7c65,0x63e1,0x639f,0x5319,
	0x531d,0x535d,0x214b,0x4297,0x535d,0x6be1,0x639f,0x63e1,0x5b9f,0x5b5d,0x5b5d,0x7465,0x639f,0x7c65,0x639f,0x5b5f,0x6be1,0x5b9f,0x7423,0x5b9f,0x5b5f,0x535d,0x63e1,0x6c23,0x5b5f,0x639f,0x7423,0x531d,0x639f,0x531b,0x7c65,0x63e1,
	0x214b,0x4297,0x4ad9,0x31d1,0x3211,0x31d1,0x29cf,0x3a11,0x31d1,0x3a53,0x31d1,0x31d1,0x31d1,0x31d1,0x3a11,0x3a53,0x3a13,0x3211,0x3a11,0x31d1,0x3211,0x3a11,0x31d1,0x31d1,0x31d1,0x298f,0x29cf,0x31d1,0x3a13,0x639f,0x5b9f,0x531b,
	0x531b,0x4ad9,0x214b,0x4297,0x5319,0x52d9,0x52d9,0x52d9,0x4ad9,0x4297,0x4ad9,0x4ad9,0x4ad9,0x531b,0x4ad9,0x4ad9,0x531b,0x4297,0x4ad9,0x5319,0x4297,0x4297,0x4297,0x4a97,0x3a57,0x4297,0x4297,0x3a55,0x5b9f,0x5319,0x4297,0x639f,
	0x214b,0x4297,0x63e1,0x9d6d,0xa5af,0x9d6d,0x9d6d,0x9d6d,0x9daf,0xa5af,0x9d6d,0x9d6d,0x9daf,0x9dad,0xa5af,0xadf1,0xadef,0x9d6d,0xa5ad,0x9d6d,0x9d6d,0x9d6d,0x952d,0x952b,0x9d6d,0x8d2b,0x952b,0x9d6d,0xadf1,0x6be1,0x5b9f,0x5319,
	0x7423,0xceb7,0x214b,0x4297,0xcef7,0xcef7,0xceb7,0xceb7,0xceb7,0xc6b5,0xc6b5,0xcef7,0xceb7,0xd6f9,0xceb7,0xc6b7,0xcef7,0xc6b7,0xcef7,0xceb7,0xc675,0xc675,0xc6b7,0xceb7,0xc675,0xceb7,0xc6b5,0xc675,0x5b5f,0x52d9,0xc6b5,0x6be1,
	0x214b,0x4297,0x535d,0x531d,0x639f,0x639f,0x63a1,0x6be1,0x5b5d,0x6be1,0x639f,0x531b,0x5b9f,0x5b5d,0x639f,0x7423,0x6be1,0x639f,0x84a7,0x535d,0x531d,0x639f,0x535d,0x5b5d,0x6be1,0x4b1b,0x531b,0x63a1,0x4b1b,0x5b9f,0x5b5f,0x4ad9,
	0x535d,0x531d,0x214b,0x4297,0x5b9f,0x639f,0x6be1,0x6be1,0x6be1,0x5b5d,0x5b5d,0x639f,0x6be1,0x63e1,0x639f,0x5b9f,0x6be1,0x535d,0x639f,0x531b,0x531d,0x531d,0x535d,0x639f,0x4b1b,0x5b5d,0x5b5d,0x4b1b,0x5b5d,0x4ad9,0x5b5d,0x5b9f,
	0x214b,0x4297,0x535d,0x535d,0x6be1,0x63e1,0x5b5f,0x6be1,0x5b5d,0x7423,0x63e1,0x5b5d,0x639f,0x5b9f,0x639f,0x7423,0x7423,0x5b5f,0x6be1,0x5b5d,0x5b9f,0x6be1,0x639f,0x535d,0x535d,0x4b1b,0x531b,0x5b5d,0x5b9f,0x5b9f,0x5b5d,0x4ad9,
	0x535d,0x5b5f,0x214b,0x4297,0x5b5f,0x6be1,0x5b9f,0x639f,0x63a1,0x639f,0x5b5d,0x7425,0x639f,0x7423,0x63e1,0x5b5f,0x639f,0x5b9f,0x7423,0x639f,0x5b9f,0x5b5d,0x63a1,0x7423,0x535d,0x5b5d,0x5b5f,0x4b1b,0x5b5d,0x4ad9,0x5b9f,0x639f,
	0x214b,0x4297,0x531d,0x5b9f,0x5b9f,0x5b9f,0x535d,0x63a1,0x5b9f,0x7423,0x639f,0x5b5d,0x63e1,0x63e1,0x639f,0x7423,0x7423,0x5b9f,0x639f,0x5b5f,0x6be1,0x639f,0x5b5d,0x531d,0x5b5d,0x4b1b,0x535d,0x535d,0x639f,0x5b9f,0x5b5d,0x4ad9,
	0x531b,0x4b1b,0x214b,0x4297,0x535d,0x639f,0x6be1,0x639f,0x4b1d,0x535d,0x535d,0x63a1,0x5b5d,0x6be1,0x5b9f,0x5b9f,0x5b9f,0x5b5d,0x6be1,0x531d,0x5b5f,0x531d,0x5b5d,0x639f,0x4b1b,0x4adb,0x531d,0x3a97,0x535d,0x4ad9,0x5b5f,0x5b5f,
	0x214b,0x4295,0x531b,0x42db,0x5b5f,0x4adb,0x4b1b,0x5b9f,0x42d9,0x6be1,0x4b1b,0x531d,0x535d,0x535d,0x5b5f,0x5b9f,0x639f,0x4b1b,0x4b1b,0x42d9,0x4adb,0x535d,0x535d,0x4b1b,0x531d,0x3257,0x4adb,0x4b1b,0x4b1b,0x535d,0x531d,0x4ad9,
	0x531b,0x4b1b,0x210b,0x4255,0x42db,0x5b5d,0x5b5d,0x3a99,0x4b1b,0x4b1b,0x3a99,0x63e1,0x531d,0x6be1,0x5b5d,0x531b,0x535d,0x42d9,0x535d,0x531b,0x4b1b,0x42db,0x42d9,0x5b5d,0x4adb,0x535d,0x4b1b,0x3257,0x531b,0x4297,0x531d,0x535d,
	0x210b,0x3a55,0x4b1b,0x4b1b,0x5b9f,0x4b1b,0x4b1b,0x535d,0x42d9,0x639f,0x4b1d,0x4b1b,0x531d,0x42db,0x531b,0x5b9f,0x639f,0x531b,0x639f,0x4b1b,0x4b1b,0x5b5f,0x531d,0x535d,0x5b5d,0x3257,0x531d,0x535d,0x535d,0x535d,0x4b1b,0x4297,
	0x4b1b,0x4ad9,0x190b,0x3a55,0x4b1b,0x535d,0x535d,0x535d,0x4b1b,0x4b1b,0x42db,0x6be1,0x535d,0x6be1,0x535d,0x535d,0x5b5d,0x4adb,0x5b9f,0x4b1b,0x531d,0x4b1b,0x4b1b,0x5b9f,0x535d,0x531b,0x4b1b,0x3a97,0x4b1b,0x4297,0x531d,0x535d,
	0x190b,0x3a55,0x531b,0x4b1b,0x5b5f,0x4b1b,0x4adb,0x5b5d,0x42d9,0x6be1,0x42d9,0x42db,0x4adb,0x531b,0x4adb,0x5b9f,0x5b5f,0x535d,0x535d,0x531d,0x42db,0x531b,0x531b,0x42d9,0x4adb,0x3a97,0x531b,0x4adb,0x4b1b,0x535d,0x4adb,0x3a97,
	0x4b1b,0x4adb,0x190b,0x3a55,0x3a99,0x4b1b,0x5b5d,0x4b1b,0x3a99,0x42db,0x4b1b,0x7423,0x4b1b,0x5b9f,0x42d9,0x535d,0x4b1b,0x531b,0x535d,0x531d,0x4adb,0x42db,0x4adb,0x639f,0x4b1b,0x4b1b,0x42db,0x3a57,0x4adb,0x3a97,0x535d,0x535d,
	0x1909,0x3213,0x4b1b,0x42d9,0x4b1b,0x42db,0x3a99,0x42db,0x42d9,0x531d,0x42d9,0x42d9,0x3a97,0x3a99,0x42d9,0x531d,0x531d,0x4adb,0x4b1b,0x42d9,0x4b1b,0x535d,0x4b1b,0x3a99,0x42db,0x3a57,0x531b,0x42d9,0x4b1b,0x531d,0x42d9,0x3a57,
	0x42d9,0x4299,0x1909,0x3213,0x3a99,0x42db,0x4adb,0x42d9,0x3a97,0x3ad9,0x4299,0x4b1b,0x42d9,0x4b1b,0x3a97,0x42d9,0x4b1b,0x4adb,0x4b1b,0x4299,0x531b,0x42db,0x4adb,0x5b5d,0x531d,0x42d9,0x4adb,0x3257,0x42d9,0x3a57,0x4b1b,0x4b1b,
	0x218f,0x42d9,0x531b,0x42d9,0x42db,0x42d9,0x4299,0x4adb,0x4b1b,0x4adb,0x531b,0x4b1b,0x42d9,0x531b,0x639f,0x4299,
	0x5b5d,0x5b5d,0x218f,0x4ad9,0x4b1b,0x5b5d,0x4b1d,0x535d,0x535d,0x531b,0x5b5d,0x4adb,0x63e1,0x4ad9,0x4b1b,0x4b1b,
	0x298f,0x4b1b,0x639f,0x5b5d,0x535d,0x5b5f,0x531b,0x639f,0x639f,0x535d,0x5b5d,0x531b,0x4b1b,0x4b1b,0x639f,0x4b1b,
	0x639f,0x639f,0x29cf,0x4b1b,0x5b5d,0x63a1,0x535d,0x5b5d,0x535d,0x4b1b,0x5b9f,0x5b5d,0x639f,0x531b,0x531b,0x4b1b,
	0x29d1,0x5b5d,0x6be1,0x639f,0x5b9f,0x639f,0x5b5f,0x63e1,0x639f,0x5b5d,0x639f,0x5b5d,0x5b5d,0x535d,0x639f,0x531b,
	0x63e1,0x63e1,0x31d1,0x5b5f,0x639f,0x6be1,0x639f,0x5b5f,0x639f,0x535d,0x6be1,0x5b5d,0x6c23,0x535d,0x5b9f,0x5b5f,
	0x31d1,0x5b5d,0x6be1,0x639f,0x63e1,0x639f,0x639f,0x6c23,0x6be1,0x639f,0x6be1,0x5b5d,0x639f,0x5b9f,0x7423,0x5b5d,
	0x4255,0x4255,0x31d1,0x4297,0x4255,0x4297,0x4255,0x3a55,0x3a55,0x3a13,0x4295,0x4255,0x52d9,0x5b5d,0x3a13,0x3a13,
	0x31d1,0x8ce9,0xb633,0xb633,0xb633,0xb5f1,0xb633,0xbe73,0xb633,0xb633,0xb631,0xadf1,0xadf1,0xadf1,0x952b,0x535d,
	0x63a1,0x639f,0x31d1,0x535d,0x5b9f,0x6be1,0x639f,0x5b9f,0x5b5d,0x535d,0x639f,0x63e1,0x5b5d,0x531d,0x535d,0x535d,
	0x31d1,0x535d,0x639f,0x639f,0x6be1,0x639f,0x639f,0x6be1,0x6be1,0x639f,0x63e1,0x5b5d,0x531d,0x535d,0x5b9f,0x531b,
	0x639f,0x5b5f,0x31d1,0x531d,0x639f,0x63e1,0x639f,0x5b5d,0x639f,0x535d,0x639f,0x5b9f,0x5b9f,0x531b,0x4b1b,0x531d,
	0x31d1,0x4b1b,0x4b1b,0x531d,0x535d,0x4b1b,0x535d,0x5b9f,0x535d,0x4b1b,0x4b1b,0x4b1b,0x42d9,0x4b1b,0x531d,0x4adb,
	0x535d,0x531b,0x29cf,0x4b1b,0x531b,0x5b5f,0x535d,0x4b1b,0x535d,0x531d,0x535d,0x535d,0x535d,0x4ad9,0x42d9,0x535d,
	0x298f,0x4b1b,0x535d,0x4b1b,0x5b5f,0x42d9,0x4b1b,0x535d,0x535d,0x531d,0x531b,0x4adb,0x42d9,0x4b1b,0x531d,0x42d9,
	0x4adb,0x42d9,0x298f,0x42d9,0x3a97,0x4adb,0x4adb,0x3a99,0x531d,0x4adb,0x4b1b,0x4adb,0x4b1b,0x4299,0x4299,0x4b1b,
	0x3213,0x531d,0x4b1b,0x4b1b,0x4b1b,0x531b,0x4b1b,0x535d,
	0x5b5d,0x5b9f,0x3a55,0x639f,0x4b1b,0x5b5d,0x5b5f,0x531d,
	0x4297,0x63e1,0x5b9f,0x639f,0x639f,0x5b9f,0x5b5d,0x5b9f,
	0x531b,0x531b,0x4255,0x531b,0x4ad9,0x5b5d,0x531b,0x4ad9,
	0x5319,0x8ce9,0x8ce9,0x8ce9,0x8ce9,0x84a7,0x84a7,0x63a1,
	0x639f,0x63a1,0x4297,0x639f,0x531d,0x5b5d,0x639f,0x639f,
	0x3a55,0x531d,0x531d,0x535d,0x531d,0x531b,0x4adb,0x4b1b,
	0x4b1b,0x4adb,0x3a55,0x4b1b,0x42d9,0x4adb,0x4b1b,0x4b1b,
	0x4ad9,0x535d,0x531d,0x531b,
	0x5b5d,0x5b5d,0x5319,0x5b5d,
	0x639f,0x7465,0x7423,0x63a1,
	0x531b,0x4adb,0x4299,0x4b1b,
	0x531b,0x535d,0x0,0x0,
	0x0,0x0,0x5b5d,0x5b9f,
	0x5b5d,0x0,0x0,0x0,
};

static Vtx vlist[] = 
{
	{-1574,0,-845,0,0,0,64,64,64,255},		/* 1712 */
	{-1574,394,-845,0,7188,-15,64,64,64,255},		/* 1713 */
	{-1574,394,-412,0,7188,7140,64,64,64,255},		/* 1714 */
	{-1574,0,-412,0,0,7156,64,64,64,255},		/* 1719 */
	{-1574,315,-412,0,1344,9407,64,64,64,242},		/* 2552 */
	{-1574,315,-845,0,-2351,9407,64,64,64,242},		/* 2553 */
	{-1574,354,-845,0,-2687,10751,64,64,64,242},		/* 2554 */
	{-1574,354,-412,0,1008,10751,64,64,64,242},		/* 2555 */
	{-1574,39,-845,0,0,0,64,64,64,242},		/* 2565 */
	{-1574,59,-845,0,-167,672,64,64,64,242},		/* 2566 */
	{-1574,59,-412,0,3528,672,64,64,64,242},		/* 2567 */
	{-1574,39,-412,0,3696,0,64,64,64,242},		/* 2572 */
	{-1574,276,-412,0,1680,8063,64,64,64,242},		/* 2573 */
	{-1574,276,-845,0,-2015,8063,64,64,64,242},		/* 2574 */
	{-1574,295,-845,0,-2183,8735,64,64,64,242},		/* 2575 */
	{-1574,295,-412,0,1512,8735,64,64,64,242},		/* 2576 */
	{-1574,118,-412,0,3024,2688,64,64,64,242},		/* 2577 */
	{-1574,118,-845,0,-671,2688,64,64,64,242},		/* 2578 */
	{-1574,79,-845,0,-335,1344,64,64,64,242},		/* 2579 */
	{-1574,79,-412,0,3360,1344,64,64,64,242},		/* 2580 */
};

Gfx objlist[] = 
{
	gsDPPipeSync(),
	gsDPSetRenderMode(G_RM_PASS,G_RM_AA_ZB_OPA_SURF2),
	gsSPSetGeometryMode(G_CULL_BACK),
#ifdef JUNK
	gsSPTexture(0xFFFF,0xFFFF,5,G_TX_RENDERTILE,G_ON),
#endif
	gsSPTextureL(0xFFFF,0xFFFF,5,0x2,G_TX_RENDERTILE,G_ON),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_TRILERP,G_CC_MODULATERGBA2),
	gsDPSetTextureLOD(G_TL_LOD),
	gsDPSetTextureImage(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,mmtex_13),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,0,0,G_TX_LOADTILE,0,0,0,0,0,0,0),
	gsDPLoadSync(),
	gsDPLoadBlock(G_TX_LOADTILE,0,0,1371,0),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,0,0,0,G_TX_WRAP|G_TX_NOMIRROR,5,0,G_TX_WRAP|G_TX_NOMIRROR,5,0),
	gsDPSetTileSize(0,0,0,124,124),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,4,256,1,0,G_TX_WRAP|G_TX_NOMIRROR,4,1,G_TX_WRAP|G_TX_NOMIRROR,4,1),
	gsDPSetTileSize(1,0,0,60,60),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,2,320,2,0,G_TX_WRAP|G_TX_NOMIRROR,3,2,G_TX_WRAP|G_TX_NOMIRROR,3,2),
	gsDPSetTileSize(2,0,0,28,28),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,336,3,0,G_TX_WRAP|G_TX_NOMIRROR,2,3,G_TX_WRAP|G_TX_NOMIRROR,2,3),
	gsDPSetTileSize(3,0,0,12,12),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,340,4,0,G_TX_WRAP|G_TX_NOMIRROR,1,4,G_TX_WRAP|G_TX_NOMIRROR,1,4),
	gsDPSetTileSize(4,0,0,4,4),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,342,5,0,G_TX_WRAP|G_TX_NOMIRROR,0,5,G_TX_WRAP|G_TX_NOMIRROR,0,5),
	gsDPSetTileSize(5,0,0,0,0),
	gsSPVertex(vlist+0,4,0),
	gsSP1Triangle(3,0,1,0),		/* p901 */
	gsSP1Triangle(3,1,2,0),		/* p901 */
	gsSPEndDisplayList()
};

Gfx objlist1[] = 
{
	gsDPPipeSync(),
	gsDPSetRenderMode(G_RM_PASS,G_RM_AA_ZB_XLU_DECAL2),

#ifdef JUNK
	/* to work around decal bug, vvvv set this parameter */
	gsSPTextureL(0xFFFF,0xFFFF,5,0x2,G_TX_RENDERTILE,G_ON),
#endif

	gsDPSetCombineMode(G_CC_TRILERP,G_CC_MODULATERGBA2),
	gsDPSetTextureLOD(G_TL_LOD),
	gsDPSetTextureImage(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,mmtex_6),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,0,0,G_TX_LOADTILE,0,0,0,0,0,0,0),
	gsDPLoadSync(),
	gsDPLoadBlock(G_TX_LOADTILE,0,0,1371,0),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,0,0,0,G_TX_WRAP|G_TX_NOMIRROR,5,0,G_TX_WRAP|G_TX_NOMIRROR,5,0),
	gsDPSetTileSize(0,0,0,124,124),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,4,256,1,0,G_TX_WRAP|G_TX_NOMIRROR,4,1,G_TX_WRAP|G_TX_NOMIRROR,4,1),
	gsDPSetTileSize(1,0,0,60,60),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,2,320,2,0,G_TX_WRAP|G_TX_NOMIRROR,3,2,G_TX_WRAP|G_TX_NOMIRROR,3,2),
	gsDPSetTileSize(2,0,0,28,28),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,336,3,0,G_TX_WRAP|G_TX_NOMIRROR,2,3,G_TX_WRAP|G_TX_NOMIRROR,2,3),
	gsDPSetTileSize(3,0,0,12,12),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,340,4,0,G_TX_WRAP|G_TX_NOMIRROR,1,4,G_TX_WRAP|G_TX_NOMIRROR,1,4),
	gsDPSetTileSize(4,0,0,4,4),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b,1,342,5,0,G_TX_WRAP|G_TX_NOMIRROR,0,5,G_TX_WRAP|G_TX_NOMIRROR,0,5),
	gsDPSetTileSize(5,0,0,0,0),
	gsDPPipeSync(),
	gsDPSetRenderMode(G_RM_PASS,G_RM_AA_ZB_XLU_DECAL2),
	gsSPVertex(vlist+4,16,0),
	gsSP1Triangle(0,1,2,0),		/* p897 */
	gsSP1Triangle(0,2,3,0),		/* p897 */
	gsSP1Triangle(8,9,10,0),		/* p898 */
	gsSP1Triangle(8,10,11,0),		/* p898 */
	gsSP1Triangle(15,14,13,0),		/* p899 */
	gsSP1Triangle(15,13,12,0),		/* p899 */
	gsSP1Triangle(7,4,5,0),		/* p900 */
	gsSP1Triangle(7,5,6,0),		/* p900 */
	gsSPEndDisplayList()
};