summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/mach64/mach64_lock.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-12-07 18:01:13 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2006-12-12 12:51:37 +0200
commit5b35132b41427798e02a66a8e39583fffbe9d232 (patch)
tree19dcaa7c82c137a3a3c460f85cae3c369a6335cb /src/mesa/drivers/dri/mach64/mach64_lock.c
parentc180678d92e6427c60acd4e984c11d27853e1304 (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.c4
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] );
}
}