On Fri, Jan 09, 2004 at 11:51:18AM -0700, Brian Paul wrote:
Olivier Chapuis wrote:
Hello,
I use "current cvs" from 2003-12-17 (dri - Mesa-newtree) on an Ati Mobility M7 LW. When dri is enabled (OpenGL renderer string: Mesa DRI Radeon 20030328 AGP 4xTCL) I get a memory leak when I load and unload a texture.
Attached an example program. Put it in Mesa-newtree progs/tests and add an entry in the good make file. Then, run it and look at the memory usage. Each time you type 'r' in the window, the texture is reloaded 100 times and here this program use 6M more memory (each time).
This problem does not happen if LIBGL_ALWAYS_INDIRECT=1. This problem does not happen with XFree-4.4.0-rc1.
Olivier,
Can you try applying the attached patch to src/mesa/drivers/dri/radeon/radeon_tex.c
I finally check out the good Mesa tree (Mesa and not Mesa-newtree), apply your patch and install. It fixes the problem.
OK, I've checked in the fix to all DRI drivers in Mesa's CVS trunk.
-Brian
------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
