[PATCH] dri2: Register the DRI2DrawableType after server regeneration

Pauli Nieminen suokkos at gmail.com
Thu Aug 25 07:49:17 PDT 2011


On Thu, Aug 25, 2011 at 5:44 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> On Thu, 25 Aug 2011 17:26:20 +0300, Pauli Nieminen <suokkos at gmail.com> wrote:
>> On Thu, Aug 25, 2011 at 2:50 PM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
>> > @@ -1227,8 +1236,6 @@ DRI2Setup(pointer module, pointer opts, int *errmaj, int *errmin)
>> >  {
>> >     static Bool setupDone = FALSE;
>> >
>> > -    dri2DrawableRes = CreateNewResourceType(DRI2DrawableGone, "DRI2Drawable");
>> > -
>>
>> Extension init function could register the resource type.
>> InitExtensions calls the extension init function for each server
>> generation.
>
> From this perspective dri2 doesn't look like a typical extension of the
> Xserver, but of xfree86 and I don't see and precendence on how hook such
> into InitExtensions(). Currently the ddx are responsible for loading the
> dri2 extension.
> -Chris
>

The registeration is done automatically in
DRI2Setup->LoadExtension->NewExtensionModule. That adds dri2 to
ExtensionModuleList which is iterated in InitExtensions. InitFunc is
DRI2ExtensionInit in dri2ext.c


More information about the xorg-devel mailing list