Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 108:565de331ccec
prev103:9b9cfc5855e0
next127:4ba79389bb6d
author nkeynes
date Thu Mar 16 12:41:59 2006 +0000 (18 years ago)
permissions -rw-r--r--
last change Handle driver-unable-to-init case
file annotate diff log raw
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.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -84,7 +84,7 @@
1.11 #define PVR2_TEX_FORMAT_MASK 0x38000000
1.12 #define PVR2_TEX_UNTWIDDLED 0x04000000
1.13
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.21
1.22 /**
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.26 */
1.27 void texcache_init( void );
1.28
1.29 +/**
1.30 + * Initialize the GL side of the texture cache (texture ids and such).
1.31 + */
1.32 +void texcache_gl_init( void );
1.33
1.34 /**
1.35 * Flush all textures and delete. The cache will be non-functional until
.