Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 1165:13406c35849b
prev1142:fd82bfba61c4
next1210:79bbd30363f4
author nkeynes
date Fri Jan 28 15:58:34 2011 +1000 (12 years ago)
permissions -rw-r--r--
last change Include texture residency information in texcache_dump() output
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Tue Oct 26 18:41:01 2010 +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 }
.