filename | src/pvr2/glrender.c |
changeset | 886:2bc6d2329cce |
prev | 865:e10c081f4b81 |
next | 934:3acd3b3ee6d1 |
author | nkeynes |
date | Wed Oct 29 23:51:58 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Use regparam calling conventions for all functions called from translated code, along with a few other high-use functions. Can probably extend this to all functions, but as it is this is a nice performance boost |
file | annotate | diff | log | raw |
1.1 --- a/src/pvr2/glrender.c Mon Sep 29 06:34:25 2008 +00001.2 +++ b/src/pvr2/glrender.c Wed Oct 29 23:51:58 2008 +00001.3 @@ -60,6 +60,10 @@1.4 void pvr2_scene_load_textures()1.5 {1.6 int i;1.7 +1.8 + texcache_set_config( MMIO_READ( PVR2, RENDER_PALETTE ) & 0x03,1.9 + (MMIO_READ( PVR2, RENDER_TEXSIZE ) & 0x003F) << 5 );1.10 +1.11 for( i=0; i < pvr2_scene.poly_count; i++ ) {1.12 struct polygon_struct *poly = &pvr2_scene.poly_array[i];1.13 if( POLY1_TEXTURED(poly->context[0]) ) {
.