From: Dieter <Die...@ha...> - 2004-01-09 21:22:28
|
Am Freitag, 09. Januar 2004 19:51 schrieb Brian Paul: > 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=3D1. 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 > > It's not convenient for me to test. I've applied it to r200 and it _WORKS_ as expected. > If this works, the change may need to be applied to the other drivers too. > > With Mesa 5.1 and later, it's the driver's responsibility to do all > memory deallocation related to glDeleteTextures. Previously, core > Mesa freed the Mesa bits. Greetings, Dieter =2D-=20 Dieter N=FCtzel @home: <Dieter.Nuetzel () hamburg ! de> |