<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src/pvr2</tt></b></td></tr>
<tr><td><tt><a href="#file1">texcache.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+4</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-2</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">01b45ca393c6 -> 13406c35849b</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Include texture residency information in texcache_dump() output
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src/pvr2</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>texcache.c</b></big> <small id="info" style="color: #888888;" >01b45ca393c6 -> 13406c35849b</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/pvr2/texcache.c
+++ lxdream/src/pvr2/texcache.c
@@ -885,15 +885,17 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > void texcache_dump()
 {
     unsigned i;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    GLboolean boolresult;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     for( i=0; i< PVR2_RAM_PAGES; i++ ) {
         int slot = texcache_page_lookup[i];
         while( slot != EMPTY_ENTRY ) {
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-            fprintf( stderr, "%-3d: %08X %dx%d (%08X %08X)\n", slot,
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+            fprintf( stderr, "%-3d: %08X %dx%d (%08X %08X)<span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" > %s</span>\n", slot,
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >                     texcache_active_list[slot].texture_addr,
                     POLY2_TEX_WIDTH(texcache_active_list[slot].poly2_mode),
                     POLY2_TEX_HEIGHT(texcache_active_list[slot].poly2_mode),
                     texcache_active_list[slot].poly2_mode,
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-                    texcache_active_list[slot].tex_mode<span id="removedchars" style="background-color:#ff9999;font-weight:bolder;" > );</span>
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+                    texcache_active_list[slot].tex_mode<span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" >,</span>
+                    (glAreTexturesResident(1, &texcache_active_list[slot].texture_id, &boolresult) ? "[RESIDENT]" : "[NOT RESIDENT]") );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >             slot = texcache_active_list[slot].next;
         }
     }
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>