[PATCH 07/42] Reorder extension initialisation for non-Xorg

Peter Hutterer peter.hutterer at who-t.net
Tue Dec 6 15:39:21 PST 2011


On Fri, Dec 02, 2011 at 11:27:15AM +0000, Daniel Stone wrote:
> Reorder static extension initialisation in miinitext for non-Xorg
> servers to match Xorg's order.
> 
> Tested with Xephyr; checked that the extension list was identical before
> and after.
> 
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

looks sensible, and IIRC I even tested this patch once to double-check the
order.
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

did you get some of these patches from one of my trees somewhere? just
wondering about the s-o-b.

Cheers,
  Peter
> ---
>  mi/miinitext.c |   84 ++++++++++++++++++++++++++++---------------------------
>  1 files changed, 43 insertions(+), 41 deletions(-)
> 
> diff --git a/mi/miinitext.c b/mi/miinitext.c
> index ee75063..16fd2da 100644
> --- a/mi/miinitext.c
> +++ b/mi/miinitext.c
> @@ -386,13 +386,6 @@ 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();
> @@ -402,36 +395,43 @@ InitExtensions(int argc, char *argv[])
>      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();
> +#ifdef PANORAMIX
> +    if (!noPanoramiXExtension) PanoramiXExtensionInit();
>  #endif
> -#if defined(DPMSExtension) && !defined(NO_HW_ONLY_EXTS)
> -    if (!noDPMSExtension) DPMSExtensionInit();
> +#ifdef INXQUARTZ
> +    if(!noPseudoramiXExtension) PseudoramiXExtensionInit();
> +#endif
> +#ifdef XFIXES
> +    /* must be before Render to layer DisplayCursor correctly */
> +    if (!noXFixesExtension) XFixesExtensionInit();
>  #endif
>  #ifdef XF86BIGFONT
>      if (!noXFree86BigfontExtension) XFree86BigfontExtensionInit();
>  #endif
> +    if (!noRenderExtension) RenderExtensionInit();
> +#ifdef RANDR
> +    if (!noRRExtension) RRExtensionInit();
> +#endif
> +#ifdef COMPOSITE
> +    if (!noCompositeExtension) CompositeExtensionInit();
> +#endif
> +#ifdef DAMAGE
> +    if (!noDamageExtension) DamageExtensionInit();
> +#endif
> +
> +#ifdef XSELINUX
> +    if (!noSELinuxExtension) SELinuxExtensionInit();
> +#endif
> +#if defined(SCREENSAVER)
> +    if (!noScreenSaverExtension) ScreenSaverExtensionInit ();
> +#endif
> +
>  #if !defined(NO_HW_ONLY_EXTS)
>  #if defined(XF86VIDMODE)
>      if (!noXFree86VidModeExtension) XFree86VidModeExtensionInit();
> @@ -439,29 +439,31 @@ InitExtensions(int argc, char *argv[])
>  #if defined(XFreeXDGA)
>      if (!noXFree86DGAExtension) XFree86DGAExtensionInit();
>  #endif
> -#ifdef XF86DRI
> -    if (!noXFree86DRIExtension) XFree86DRIExtensionInit();
> -#endif
> +#if defined(DPMSExtension)
> +    if (!noDPMSExtension) DPMSExtensionInit();
>  #endif
> -#ifdef XFIXES
> -    /* must be before Render to layer DisplayCursor correctly */
> -    if (!noXFixesExtension) XFixesExtensionInit();
>  #endif
> -    if (!noRenderExtension) RenderExtensionInit();
> -#ifdef RANDR
> -    if (!noRRExtension) RRExtensionInit();
> +
> +#ifdef XV
> +    if (!noXvExtension) {
> +      XvExtensionInit();
> +      XvMCExtensionInit();
> +    }
>  #endif
>  #ifdef RES
>      if (!noResExtension) ResExtensionInit();
>  #endif
> -#ifdef DMXEXT
> -    DMXExtensionInit(); /* server-specific extension, cannot be disabled */
> +#ifdef XRECORD
> +    if (!noTestExtensions) RecordExtensionInit(); 
>  #endif
> -#ifdef COMPOSITE
> -    if (!noCompositeExtension) CompositeExtensionInit();
> +#ifdef DBE
> +    if (!noDbeExtension) DbeExtensionInit();
>  #endif
> -#ifdef DAMAGE
> -    if (!noDamageExtension) DamageExtensionInit();
> +#if !defined(NO_HW_ONLY_EXTS) && defined(XF86DRI)
> +    if (!noXFree86DRIExtension) XFree86DRIExtensionInit();
> +#endif
> +#ifdef DMXEXT
> +    DMXExtensionInit(); /* server-specific extension, cannot be disabled */
>  #endif
>  
>  #ifdef GLXEXT
> -- 
> 1.7.7.3
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 


More information about the xorg-devel mailing list