filename | src/pvr2/glrender.c |
changeset | 886:2bc6d2329cce |
prev | 865:e10c081f4b81 |
next | 934:3acd3b3ee6d1 |
author | nkeynes |
date | Mon Oct 20 05:08:31 2008 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Fix texcache_init failing to clear texture_addr to -1 Replace direct references to PVR2 registers with a texcache_set_config() function called from glrender.c. This also now actually does invalidation when palette mode or stride changes as well. |
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 Mon Oct 20 05:08:31 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]) ) {
.