18extern QWORD GsPrimWorkArea[];
20void GsSetDefaultZBufferEnv(
GS_ZENV *zenv, u8 update_mask)
22 zenv->update_mask = update_mask;
25void GsSetDefaultZBufferEnvAddress(
GS_ZENV *zenv,
unsigned short vram_addr,
unsigned char psm)
27 zenv->vram_addr=vram_addr;
31void GsPutZBufferEnv1(
GS_ZENV *zenv)
34 p=UNCACHED_SEG(GsPrimWorkArea);
36 gs_setR_ZBUF_1(((
GS_R_ZBUF *)&p[1]), zenv->vram_addr, zenv->psm, zenv->update_mask);
38 GsDmaSend(GsPrimWorkArea, 2);
42void GsPutZBufferEnv2(
GS_ZENV *zenv)
45 p=UNCACHED_SEG(GsPrimWorkArea);
47 gs_setR_ZBUF_2(((
GS_R_ZBUF *)&p[1]), zenv->vram_addr, zenv->psm, zenv->update_mask);
49 GsDmaSend(GsPrimWorkArea, 2);