Re: [Mesa-dev] [PATCH] RE: Mesa garbage collection and threads

2011-02-12 Thread Tolga Dalman
On 02/11/11 16:31, Andy Skinner wrote: > -void XMesaGarbageCollect( void ) > +void XMesaGarbageCollect( XMesaDisplay* dpy ) > { > XMesaBuffer b, next; > for (b=XMesaBufferList; b; b=next) { >next = b->Next; > - if (b->display && b->frontxrb->drawable && b->type == WINDOW) { >

[Mesa-dev] [PATCH] RE: Mesa garbage collection and threads

2011-02-11 Thread Andy Skinner
I want to submit our patch and see what people thought. See the previous email with the same subject as above (with PATCH flag). This change is intended to reduce the chances of XSync being called for a Display* on any old thread. The garbage collection looks at every buffer, and when a Displ