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

Kristian Høgsberg krh at bitplanet.net
Wed Apr 14 17:30:55 PDT 2010


2010/4/14 Keith Packard <keithp at keithp.com>:
> 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?

Oh, I was thinking I could just allocate the ID, but not actually add
the Pixmap as a resource. Is that bad form?

Kristian


More information about the xorg-devel mailing list