softpipe: some improvements to texture tile cache
authorBrian Paul <brianp@vmware.com>
Tue, 17 Feb 2009 01:45:58 +0000 (18:45 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 17 Feb 2009 01:53:45 +0000 (18:53 -0700)
commit07855a1d766e21e4a017a5f9f19936ce5511e088
treee8b176ee64df4d5875e9bfe927213673bbecba0d
parentb9de2089b1ffafd7d072d78f716c9e39bab06627
softpipe: some improvements to texture tile cache

Use a somewhat better function in tex_cache_pos() to get better caching.

Increase number of cache entries to 50.

Also fix a texture invalidation bug.  If texture is marked as modified,
invalidate all texture tiles.
src/gallium/drivers/softpipe/sp_tile_cache.c