Re: [PATCH] DRI2 resource management fixes.

2009-08-03 Thread Michel Dänzer
On Mon, 2009-08-03 at 11:07 -0400, Kristian Høgsberg wrote: > > I spent a good deal of time avoiding using resources in dri2.c since > we should be able to just use pointers directly from aiglx clients. > There should be a simpler way to fix this that doesn't use resources > or clients in dri2.c.

Re: [PATCH] DRI2 resource management fixes.

2009-08-03 Thread Kristian Høgsberg
Hi Michel, I spent a good deal of time avoiding using resources in dri2.c since we should be able to just use pointers directly from aiglx clients. There should be a simpler way to fix this that doesn't use resources or clients in dri2.c. Keeping drawable resource tracking out of dri2.c was a del

[PATCH] DRI2 resource management fixes.

2009-08-02 Thread Michel Dänzer
From: Michel Dänzer * Add new variants of DRI2CreateDrawable, DRI2DestroyDrawable and DRI2CopyRegion which take a ClientPtr and an XID instead of a DrawablePtr. Use these in dri2ext.c always and in glxdri2.c for windows (not all pixmaps have an associated XID, and we can increase their refe