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:
parent
6fb481d125
commit
7a5880bc3b
|
@ -20,6 +20,7 @@ endif
|
||||||
|
|
||||||
if DGA
|
if DGA
|
||||||
DGASOURCES = xf86DGA.c
|
DGASOURCES = xf86DGA.c
|
||||||
|
DGA_SDK = dgaproc.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XORG_BUS_PLATFORM
|
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 \
|
sdk_HEADERS = compiler.h fourcc.h xf86.h xf86Module.h xf86Opt.h \
|
||||||
xf86PciInfo.h xf86Priv.h xf86Privstr.h \
|
xf86PciInfo.h xf86Priv.h xf86Privstr.h \
|
||||||
xf86cmap.h xf86fbman.h xf86str.h xf86Xinput.h xisb.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
|
xf86sbusBus.h xf86VGAarbiter.h xf86Optionstr.h xf86platformBus.h
|
||||||
|
|
||||||
DISTCLEANFILES = xf86Build.h
|
DISTCLEANFILES = xf86Build.h
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -41,10 +41,23 @@
|
||||||
#include "xselinux.h"
|
#include "xselinux.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef XFreeXDGA
|
||||||
|
#include <X11/extensions/xf86dgaproto.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DDX-specific extensions.
|
* DDX-specific extensions.
|
||||||
*/
|
*/
|
||||||
static ExtensionModule extensionModules[] = {
|
static ExtensionModule extensionModules[] = {
|
||||||
|
#ifdef XFreeXDGA
|
||||||
|
{
|
||||||
|
XFree86DGAExtensionInit,
|
||||||
|
XF86DGANAME,
|
||||||
|
&noXFree86DGAExtension,
|
||||||
|
XFree86DGARegister,
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -52,6 +65,7 @@ load_extension_config(void)
|
||||||
{
|
{
|
||||||
XF86ConfModulePtr mod_con = xf86configptr->conf_modules;
|
XF86ConfModulePtr mod_con = xf86configptr->conf_modules;
|
||||||
XF86LoadPtr modp;
|
XF86LoadPtr modp;
|
||||||
|
int i;
|
||||||
|
|
||||||
/* Only the best. */
|
/* Only the best. */
|
||||||
if (!mod_con)
|
if (!mod_con)
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
sdk_HEADERS = dgaproc.h
|
|
||||||
|
|
||||||
extsmoduledir = $(moduledir)/extensions
|
extsmoduledir = $(moduledir)/extensions
|
||||||
extsmodule_LTLIBRARIES = libextmod.la
|
extsmodule_LTLIBRARIES = libextmod.la
|
||||||
|
|
||||||
if DGA
|
|
||||||
DGA_SRCS = xf86dga2.c dgaproc.h
|
|
||||||
endif
|
|
||||||
|
|
||||||
if XF86VIDMODE
|
if XF86VIDMODE
|
||||||
XF86VMODE_SRCS = xf86vmode.c
|
XF86VMODE_SRCS = xf86vmode.c
|
||||||
endif
|
endif
|
||||||
|
@ -19,6 +13,5 @@ INCLUDES = @XORG_INCS@ \
|
||||||
|
|
||||||
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
libextmod_la_LDFLAGS = -module -avoid-version $(LD_NO_UNDEFINED_FLAG)
|
||||||
libextmod_la_SOURCES = modinit.c \
|
libextmod_la_SOURCES = modinit.c \
|
||||||
$(DGA_SRCS) \
|
|
||||||
$(XF86VMODE_SRCS)
|
$(XF86VMODE_SRCS)
|
||||||
libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la
|
libextmod_la_LIBADD = $(top_builddir)/Xext/libXextmodule.la
|
||||||
|
|
|
@ -47,14 +47,6 @@ static ExtensionModule extensionModules[] = {
|
||||||
NULL,
|
NULL,
|
||||||
NULL},
|
NULL},
|
||||||
#endif
|
#endif
|
||||||
#ifdef XFreeXDGA
|
|
||||||
{
|
|
||||||
XFree86DGAExtensionInit,
|
|
||||||
XF86DGANAME,
|
|
||||||
&noXFree86DGAExtension,
|
|
||||||
XFree86DGARegister,
|
|
||||||
NULL},
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static XF86ModuleVersionInfo VersRec = {
|
static XF86ModuleVersionInfo VersRec = {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -188,9 +188,9 @@ cat > sdksyms.c << EOF
|
||||||
|
|
||||||
|
|
||||||
/* hw/xfree86/dixmods/extmod/Makefile.am -- module */
|
/* hw/xfree86/dixmods/extmod/Makefile.am -- module */
|
||||||
/*
|
#ifdef XFreeXDGA
|
||||||
#include "dgaproc.h"
|
#include "dgaproc.h"
|
||||||
*/
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* hw/xfree86/parser/Makefile.am */
|
/* hw/xfree86/parser/Makefile.am */
|
||||||
|
|
Loading…
Reference in New Issue