Search
lxdream.org :: lxdream :: r348:15b2de02558d
lxdream 0.9.1
released Jun 29
Download Now
changeset348:15b2de02558d
parent347:e686be8b10df
child349:05c9b25c361d
authornkeynes
dateMon Feb 05 08:51:34 2007 +0000 (17 years ago)
Mipmapped flag is only valid for twiddled textures
src/pvr2/pvr2.h
1.1 --- a/src/pvr2/pvr2.h Sun Feb 04 11:30:41 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Feb 05 08:51:34 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)
.