1.1 --- a/src/pvr2/pvr2.h Mon Mar 13 12:39:07 2006 +0000
1.2 +++ b/src/pvr2/pvr2.h Thu Mar 16 12:41:59 2006 +0000
1.5 - * $Id: pvr2.h,v 1.9 2006-03-13 12:39:07 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.10 2006-03-15 13:16:50 nkeynes Exp $
1.8 * PVR2 (video chip) functions and macros.
1.11 #define PVR2_TEX_FORMAT_MASK 0x38000000
1.12 #define PVR2_TEX_UNTWIDDLED 0x04000000
1.14 -#define PVR2_TEX_ADDR(x) ( ((x)&0x1FFFFF)<<3 );
1.15 +#define PVR2_TEX_ADDR(x) ( ((x)&0x01FFFFF)<<3 );
1.16 #define PVR2_TEX_IS_MIPMAPPED(x) ( (x) & PVR2_TEX_MIPMAP )
1.17 #define PVR2_TEX_IS_COMPRESSED(x) ( (x) & PVR2_TEX_COMPRESSED )
1.18 #define PVR2_TEX_IS_TWIDDLED(x) (((x) & PVR2_TEX_UNTWIDDLED) == 0)
1.19 @@ -140,11 +140,14 @@
1.20 /****************************** Texture Cache ****************************/
1.23 - * Initialize the texture cache. Note that the GL context must have been
1.24 - * initialized before calling this function.
1.25 + * Initialize the texture cache.
1.27 void texcache_init( void );
1.30 + * Initialize the GL side of the texture cache (texture ids and such).
1.32 +void texcache_gl_init( void );
1.35 * Flush all textures and delete. The cache will be non-functional until