[Mesa-dev] memory leak

Michel Dänzer michel at daenzer.net
Thu Sep 15 10:56:13 PDT 2011


On Don, 2011-09-15 at 13:01 -0400, Jeffrey Collins wrote: 
> I am using Mesa 7.10, DRI driver for R600. I believe I see a memory
> leak of 1 page per frame with the code
> 
> 
> drawme()
> {
>     glClearColor(0.0, 1.0, 0.0, 0.0);
>     glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
>     glClearColor(0.0, 1.0, 1.0, 1.0);
>     glClear(GL_COLOR_BUFFER_BIT);
>     eglSwapBuffers(dpy, surface);
> }
> 
> 
> If I take out the glClearColor, the leak goes away.
> 
> 
> I am using a HD4600 series radeon graphics card.
> 
> 
> Is this a known defect? Is it reproducible on other systems, or could
> I have just screwed something up when I built the software?

Can you check if it's still there with current Mesa Git or at least
7.11, and if so try and isolate the leak with valgrind? 

-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the mesa-dev mailing list