On Thu, Aug 25, 2011 at 5:44 PM, Chris Wilson <[email protected]> wrote: > On Thu, 25 Aug 2011 17:26:20 +0300, Pauli Nieminen <[email protected]> wrote: >> On Thu, Aug 25, 2011 at 2:50 PM, Chris Wilson <[email protected]> >> 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 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
