Move DGA from extmod to built-in

Rather than leave DGA languishing in extmod, move it to be a built-in
extension.  As it's quite specific to the Xorg DDX, just move it
sideways to the rest of the DGA code in hw/xfree86/common, and
initialise it from xf86ExtensionInit, rather than miinitext.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Acked-by:  Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Daniel Stone 2012-07-10 02:03:10 +01:00 committed by Keith Packard
parent 6fb481d125
commit 7a5880bc3b
8 changed files with 1041 additions and 1062 deletions

View File

@ -20,6 +20,7 @@ endif
if DGA
DGASOURCES = xf86DGA.c
DGA_SDK = dgaproc.h
endif
if XORG_BUS_PLATFORM
@ -60,7 +61,7 @@ INCLUDES = $(XORG_INCS) -I$(srcdir)/../ddc -I$(srcdir)/../i2c \
sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
xf86PciInfo.h xf86Priv.h xf86Privstr.h \
xf86cmap.h xf86fbman.h xf86str.h xf86Xinput.h xisb.h \
$(XVSDKINCS) $(XF86VMODE_SDK) xorgVersion.h \
$(XVSDKINCS) $(XF86VMODE_SDK) $(DGA_SDK) xorgVersion.h \
xf86sbusBus.h xf86VGAarbiter.h xf86Optionstr.h xf86platformBus.h
DISTCLEANFILES = xf86Build.h

File diff suppressed because it is too large Load Diff

View File

@ -41,10 +41,23 @@
#include "xselinux.h"
#endif
#ifdef XFreeXDGA
#include <X11/extensions/xf86dgaproto.h>
#endif
/*
* DDX-specific extensions.
*/
static ExtensionModule extensionModules[] = {
#ifdef XFreeXDGA
{
XFree86DGAExtensionInit,
XF86DGANAME,
&noXFree86DGAExtension,
XFree86DGARegister,
NULL
},
#endif
};
static void
@ -52,6 +65,7 @@ load_extension_config(void)
{
XF86ConfModulePtr mod_con = xf86configptr->conf_modules;
XF86LoadPtr modp;
int i;
/* Only the best. */
if (!mod_con)

View File

@ -1,12 +1,6 @@
sdk_HEADERS = dgaproc.h
extsmoduledir = $(moduledir)/extensions
extsmodule_LTLIBRARIES = libextmod.la
if DGA
DGA_SRCS = xf86dga2.c dgaproc.h
endif
if XF86VIDMODE
XF86VMODE_SRCS = xf86vmode.c
endif
@ -19,6 +13,5 @@ INCLUDES = @XORG_INCS@ \
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
libextmod_la_SOURCES = modinit.c \
$(DGA_SRCS) \
$(XF86VMODE_SRCS)
libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la

View File

@ -47,14 +47,6 @@ static ExtensionModule extensionModules[] = {
NULL,
NULL},
#endif
#ifdef XFreeXDGA
{
XFree86DGAExtensionInit,
XF86DGANAME,
&noXFree86DGAExtension,
XFree86DGARegister,
NULL},
#endif
};
static XF86ModuleVersionInfo VersRec = {

File diff suppressed because it is too large Load Diff

View File

@ -188,9 +188,9 @@ cat > sdksyms.c << EOF
/* hw/xfree86/dixmods/extmod/Makefile.am -- module */
/*
#ifdef XFreeXDGA
#include "dgaproc.h"
*/
#endif
/* hw/xfree86/parser/Makefile.am */