Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 348:15b2de02558d
prev338:8c68d9097846
next352:f0df7a6d4703
author nkeynes
date Mon Feb 05 08:52:59 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Fix compressed mipmap textures (byte count was wrong)
Change internal gl format to the simple versions - let the implementation
use whatever's most efficient
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Mon Jan 29 11:24:44 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Feb 05 08:52:59 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.33 2007-01-29 11:24:44 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.34 2007-02-05 08:51:34 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -107,7 +107,7 @@
1.11
1.12
1.13 #define PVR2_TEX_ADDR(x) ( ((x)&0x01FFFFF)<<3 );
1.14 -#define PVR2_TEX_IS_MIPMAPPED(x) ( (x) & PVR2_TEX_MIPMAP )
1.15 +#define PVR2_TEX_IS_MIPMAPPED(x) ( ((x) & 0x84000000) == 0x80000000 )
1.16 #define PVR2_TEX_IS_COMPRESSED(x) ( (x) & PVR2_TEX_COMPRESSED )
1.17 #define PVR2_TEX_IS_TWIDDLED(x) (((x) & PVR2_TEX_UNTWIDDLED) == 0)
1.18 #define PVR2_TEX_IS_STRIDE(x) (((x) & 0x06000000) == 0x06000000)
.