Пример #1
0
static pointer
glxSetup(pointer module, pointer opts, int *errmaj, int *errmin)
{
    static Bool setupDone = FALSE;
    __GLXprovider *provider;

    if (setupDone) {
        if (errmaj)
            *errmaj = LDR_ONCEONLY;
        return NULL;
    }

    setupDone = TRUE;

    xf86Msg(xf86Info.aiglxFrom, "AIGLX %s\n",
            xf86Info.aiglx ? "enabled" : "disabled");
    if (xf86Info.aiglx) {
        provider = LoaderSymbol("__glXDRIProvider");
        if (provider)
            GlxPushProvider(provider);
        provider = LoaderSymbol("__glXDRI2Provider");
        if (provider)
            GlxPushProvider(provider);
    }

    LoadExtension(&GLXExt, FALSE);

    return module;
}
Пример #2
0
 /*ARGSUSED*/ void
InitExtensions(int argc, char *argv[])
{
    if (!noGEExtension)
        GEExtensionInit();

#ifdef PANORAMIX
    if (!noPanoramiXExtension)
        PanoramiXExtensionInit();
#endif
#ifdef INXQUARTZ
    if (!noPseudoramiXExtension)
        PseudoramiXExtensionInit();
#endif
    ShapeExtensionInit();
#ifdef MITSHM
    if (!noMITShmExtension)
        ShmExtensionInit();
#endif
    XInputExtensionInit();
#ifdef XTEST
    if (!noTestExtensions)
        XTestExtensionInit();
#endif
    BigReqExtensionInit();
#if defined(SCREENSAVER)
    if (!noScreenSaverExtension)
        ScreenSaverExtensionInit();
#endif
#ifdef XV
    if (!noXvExtension) {
        XvExtensionInit();
        XvMCExtensionInit();
    }
#endif
    SyncExtensionInit();
    XkbExtensionInit();
    XCMiscExtensionInit();
#ifdef XRECORD
    if (!noTestExtensions)
        RecordExtensionInit();
#endif
#ifdef DBE
    if (!noDbeExtension)
        DbeExtensionInit();
#endif
#ifdef XCSECURITY
    if (!noSecurityExtension)
        SecurityExtensionInit();
#endif
#ifdef XSELINUX
    if (!noSELinuxExtension)
        SELinuxExtensionInit();
#endif
#if defined(DPMSExtension) && !defined(NO_HW_ONLY_EXTS)
    if (!noDPMSExtension)
        DPMSExtensionInit();
#endif
#ifdef XF86BIGFONT
    if (!noXFree86BigfontExtension)
        XFree86BigfontExtensionInit();
#endif
#if !defined(NO_HW_ONLY_EXTS)
#if defined(XF86VIDMODE)
    if (!noXFree86VidModeExtension)
        XFree86VidModeExtensionInit();
#endif
#if defined(XFreeXDGA)
    if (!noXFree86DGAExtension)
        XFree86DGAExtensionInit();
#endif
#ifdef XF86DRI
    if (!noXFree86DRIExtension)
        XFree86DRIExtensionInit();
#endif
#endif
#ifdef XFIXES
    /* must be before Render to layer DisplayCursor correctly */
    if (!noXFixesExtension)
        XFixesExtensionInit();
#endif
    if (!noRenderExtension)
        RenderExtensionInit();
#ifdef RANDR
    if (!noRRExtension)
        RRExtensionInit();
#endif
#ifdef RES
    if (!noResExtension)
        ResExtensionInit();
#endif
#ifdef DMXEXT
    DMXExtensionInit();         /* server-specific extension, cannot be disabled */
#endif
#ifdef COMPOSITE
    if (!noCompositeExtension)
        CompositeExtensionInit();
#endif
#ifdef DAMAGE
    if (!noDamageExtension)
        DamageExtensionInit();
#endif

#ifdef GLXEXT
    if (serverGeneration == 1)
        GlxPushProvider(&__glXDRISWRastProvider);
    if (!noGlxExtension)
        GlxExtensionInit();
#endif
}