Search
lxdream.org :: lxdream :: r1165:13406c35849b
lxdream 0.9.1
released Jun 29
Download Now
changeset1165:13406c35849b
parent1164:01b45ca393c6
child1166:f405d42a9786
authornkeynes
dateFri Jan 28 15:58:34 2011 +1000 (8 years ago)
Include texture residency information in texcache_dump() output
src/pvr2/texcache.c
1.1 --- a/src/pvr2/texcache.c Sat Jan 22 06:07:17 2011 +1000
1.2 +++ b/src/pvr2/texcache.c Fri Jan 28 15:58:34 2011 +1000
1.3 @@ -885,15 +885,17 @@
1.4 void texcache_dump()
1.5 {
1.6 unsigned i;
1.7 + GLboolean boolresult;
1.8 for( i=0; i< PVR2_RAM_PAGES; i++ ) {
1.9 int slot = texcache_page_lookup[i];
1.10 while( slot != EMPTY_ENTRY ) {
1.11 - fprintf( stderr, "%-3d: %08X %dx%d (%08X %08X)\n", slot,
1.12 + fprintf( stderr, "%-3d: %08X %dx%d (%08X %08X) %s\n", slot,
1.13 texcache_active_list[slot].texture_addr,
1.14 POLY2_TEX_WIDTH(texcache_active_list[slot].poly2_mode),
1.15 POLY2_TEX_HEIGHT(texcache_active_list[slot].poly2_mode),
1.16 texcache_active_list[slot].poly2_mode,
1.17 - texcache_active_list[slot].tex_mode );
1.18 + texcache_active_list[slot].tex_mode,
1.19 + (glAreTexturesResident(1, &texcache_active_list[slot].texture_id, &boolresult) ? "[RESIDENT]" : "[NOT RESIDENT]") );
1.20 slot = texcache_active_list[slot].next;
1.21 }
1.22 }
.