[PATCHv2 1/2] DRI2: Track DRI2 drawables as resources, not privates

Keith Packard keithp at keithp.com
Wed Apr 14 17:18:30 PDT 2010


On Wed, 14 Apr 2010 14:22:05 -0400, Kristian Høgsberg <krh at bitplanet.net> wrote:

> Right, true.  But we always create DRI2 drawable for client created
> drawables, except in the case of an AIGLX pbuffer.  There we create a
> pixmap behind the scenes and then create a DRI2 drawable for that.  I
> suppose I can just use FakeClientID to create an ID for the hidden
> pixmap.

Hrm. The question is whether when the pixmap is destroyed whether the
resource ID will be destroyed as well. This looks icky to me as I don't
know the answer in the AIGLX case. The 'best' solution would be for the
AIGLX case to allocate a resource id and then use FreeResource. Would
that be easy?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100414/bf3337a1/attachment.pgp>


More information about the xorg-devel mailing list