From 6e74fdda42fb4bd80fd48e1ae6471bffbb837804 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 22 Jun 2011 00:28:18 +0100 Subject: [PATCH] Move XFree86-VidMode from extmod to built-in As with DGA, move VidMode from being part of extmod to a built-in part of the server, if compiled as such. This is initialised from xf86ExtensionInit rather than miinitext because it's wholly dependent on the Xorg DDX. Signed-off-by: Daniel Stone Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- hw/xfree86/common/Makefile.am | 2 +- hw/xfree86/common/xf86Extensions.c | 14 ++++++++++++++ hw/xfree86/{dixmods/extmod => common}/xf86vmode.c | 0 hw/xfree86/dixmods/extmod/Makefile.am | 7 +------ hw/xfree86/dixmods/extmod/modinit.c | 8 -------- hw/xfree86/sdksyms.sh | 3 --- 6 files changed, 16 insertions(+), 18 deletions(-) rename hw/xfree86/{dixmods/extmod => common}/xf86vmode.c (100%) diff --git a/hw/xfree86/common/Makefile.am b/hw/xfree86/common/Makefile.am index ea98449ca..cb6d0d478 100644 --- a/hw/xfree86/common/Makefile.am +++ b/hw/xfree86/common/Makefile.am @@ -47,7 +47,7 @@ libcommon_la_SOURCES = xf86Configure.c xf86Bus.c xf86Config.c \ xf86VidMode.c xf86fbman.c xf86cmap.c \ xf86Helper.c xf86PM.c xf86Xinput.c xisb.c \ xf86Mode.c xorgHelper.c xf86Extensions.h \ - xf86Extensions.c \ + xf86Extensions.c xf86vmode.c \ $(XVSOURCES) $(BUSSOURCES) $(RANDRSOURCES) nodist_libcommon_la_SOURCES = xf86DefModeSet.c xf86Build.h libcommon_la_LIBADD = $(top_builddir)/config/libconfig.la diff --git a/hw/xfree86/common/xf86Extensions.c b/hw/xfree86/common/xf86Extensions.c index 5ee6be88f..63950e6a3 100644 --- a/hw/xfree86/common/xf86Extensions.c +++ b/hw/xfree86/common/xf86Extensions.c @@ -45,10 +45,24 @@ #include #endif +#ifdef XF86VIDMODE +#include +#include "vidmodeproc.h" +#endif + /* * DDX-specific extensions. */ static ExtensionModule extensionModules[] = { +#ifdef XF86VIDMODE + { + XFree86VidModeExtensionInit, + XF86VIDMODENAME, + &noXFree86VidModeExtension, + NULL, + NULL + }, +#endif #ifdef XFreeXDGA { XFree86DGAExtensionInit, diff --git a/hw/xfree86/dixmods/extmod/xf86vmode.c b/hw/xfree86/common/xf86vmode.c similarity index 100% rename from hw/xfree86/dixmods/extmod/xf86vmode.c rename to hw/xfree86/common/xf86vmode.c diff --git a/hw/xfree86/dixmods/extmod/Makefile.am b/hw/xfree86/dixmods/extmod/Makefile.am index d3a9fc8b5..d5e0cdeea 100644 --- a/hw/xfree86/dixmods/extmod/Makefile.am +++ b/hw/xfree86/dixmods/extmod/Makefile.am @@ -1,10 +1,6 @@ extsmoduledir = $(moduledir)/extensions extsmodule_LTLIBRARIES = libextmod.la -if XF86VIDMODE -XF86VMODE_SRCS = xf86vmode.c -endif - AM_CFLAGS = @DIX_CFLAGS@ @XORG_CFLAGS@ INCLUDES = @XORG_INCS@ \ -I$(top_srcdir)/dbe \ @@ -12,6 +8,5 @@ INCLUDES = @XORG_INCS@ \ -I$(top_srcdir)/miext/shadow libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG) -libextmod_la_SOURCES = modinit.c \ - $(XF86VMODE_SRCS) +libextmod_la_SOURCES = modinit.c libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index f05a57039..74171cf5d 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -39,14 +39,6 @@ static MODULESETUPPROTO(extmodSetup); * Array describing extensions to be initialized */ static ExtensionModule extensionModules[] = { -#ifdef XF86VIDMODE - { - XFree86VidModeExtensionInit, - XF86VIDMODENAME, - &noXFree86VidModeExtension, - NULL, - NULL}, -#endif }; static XF86ModuleVersionInfo VersRec = { diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh index e06bf64d8..f3d764051 100755 --- a/hw/xfree86/sdksyms.sh +++ b/hw/xfree86/sdksyms.sh @@ -133,12 +133,9 @@ cat > sdksyms.c << EOF # include "xf86xvmc.h" # include "xf86xvpriv.h" #endif -/* XF86VidMode code is in libextmod module */ -/* #if XF86VIDMODE # include "vidmodeproc.h" #endif - */ #include "xorgVersion.h" #if defined(__sparc__) || defined(__sparc) # include "xf86sbusBus.h"