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=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
>
> 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
-- 
Dieter N�tzel
@home: <Dieter.Nuetzel () hamburg ! de>


-------------------------------------------------------
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

Reply via email to