diff options
author | Daniel Stone <daniel@fooishbar.org> | 2011-06-22 00:28:18 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-10 00:00:58 -0700 |
commit | 6e74fdda42fb4bd80fd48e1ae6471bffbb837804 (patch) | |
tree | 378da0350ea825bcaaec2e2e01e44936040ef72b | |
parent | 60f53e3012be795eee741ecd4be858552c5e86c8 (diff) |
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 <daniel@fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | hw/xfree86/common/Makefile.am | 2 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Extensions.c | 14 | ||||
-rw-r--r-- | hw/xfree86/common/xf86vmode.c (renamed from hw/xfree86/dixmods/extmod/xf86vmode.c) | 0 | ||||
-rw-r--r-- | hw/xfree86/dixmods/extmod/Makefile.am | 7 | ||||
-rw-r--r-- | hw/xfree86/dixmods/extmod/modinit.c | 8 | ||||
-rwxr-xr-x | hw/xfree86/sdksyms.sh | 3 |
6 files changed, 16 insertions, 18 deletions
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 <X11/extensions/xf86dgaproto.h> #endif +#ifdef XF86VIDMODE +#include <X11/extensions/xf86vmproto.h> +#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 index 7cd2eedb3..7cd2eedb3 100644 --- a/hw/xfree86/dixmods/extmod/xf86vmode.c +++ b/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" |