diff options
author | George Sapountzis <gsap7@yahoo.gr> | 2006-12-07 18:01:13 +0200 |
---|---|---|
committer | George Sapountzis <gsap7@yahoo.gr> | 2006-12-12 12:51:37 +0200 |
commit | 5b35132b41427798e02a66a8e39583fffbe9d232 (patch) | |
tree | 19dcaa7c82c137a3a3c460f85cae3c369a6335cb /src/mesa/drivers/dri/mach64/mach64_lock.c | |
parent | c180678d92e6427c60acd4e984c11d27853e1304 (diff) |
Bug 7260: mach64 texture memory mng cleanup
mach64 uses its own set of texture memory management routines which are buggy,
running a second DRI client kills the first one. This patch ports mach64 code
to the stock dri texture managment code.
Diffstat (limited to 'src/mesa/drivers/dri/mach64/mach64_lock.c')
-rw-r--r-- | src/mesa/drivers/dri/mach64/mach64_lock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/mach64/mach64_lock.c b/src/mesa/drivers/dri/mach64/mach64_lock.c index 26f66f0230..b73e350111 100644 --- a/src/mesa/drivers/dri/mach64/mach64_lock.c +++ b/src/mesa/drivers/dri/mach64/mach64_lock.c @@ -91,8 +91,6 @@ void mach64GetLock( mach64ContextPtr mmesa, GLuint flags ) } for ( i = mmesa->firstTexHeap ; i < mmesa->lastTexHeap ; i++ ) { - if ( mmesa->texHeap[i] && (sarea->tex_age[i] != mmesa->lastTexAge[i]) ) { - mach64AgeTextures( mmesa, i ); - } + DRI_AGE_TEXTURES( mmesa->texture_heaps[i] ); } } |