summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-07-23 05:36:14 +0000
committerEric Anholt <anholt@freebsd.org>2004-07-23 05:36:14 +0000
commit2a0e5fb3a771eef065d978d7e6f04df994c1cc6b (patch)
tree2c3291447918e651bd90184ebdb946a1c44edc97
parent01ac037c4c3773b49e1312e5bda135df02b65751 (diff)
- Add a new option, BuildDevelDRIDrivers, which controls whether
DevelDRIDrivers is non-empty. DevelDRIDrivers contains those drivers aren't built by default either due to being unusable on that architecture (but buildable for testing) or due to security concerns, as in the mach64 and savage cases. - Merge the Mach64 DDX's DRI support, under the XF86DRI_DEVEL define, which is set only when BuildDevelDRIDrivers is set. - Fix up of the sets of DRI drivers built for various architectures. - Fix build of unichrome DRI driver, which is now enabled on x86.
-rw-r--r--xorg.cf53
-rw-r--r--xorgsite.def5
2 files changed, 30 insertions, 28 deletions
diff --git a/xorg.cf b/xorg.cf
index 6069856..60a499f 100644
--- a/xorg.cf
+++ b/xorg.cf
@@ -1,4 +1,4 @@
-XCOMM $XdotOrg: xc/config/cf/xorg.cf,v 1.10 2004/07/06 14:37:46 eich Exp $
+XCOMM $XdotOrg: xc/config/cf/xorg.cf,v 1.12 2004/07/22 19:24:50 sandmann Exp $
/*
* This configuration file contains all of the configuration
* information for the Xorg based X Servers.
@@ -234,6 +234,13 @@ RELEASE_VERSION = ReleaseVersion
#define HasAgpGart NO
#endif
+/* Some DRI drivers are disabled because they are either insecure or unusable on
+ * this architecture. This switch allows you to enable building these drivers.
+ */
+#ifndef BuildDevelDRIDrivers
+#define BuildDevelDRIDrivers NO
+#endif
+
/* The glide driver only works for the loadable server at the moment */
#ifndef HasGlide2
#define HasGlide2 NO
@@ -396,16 +403,8 @@ RELEASE_VERSION = ReleaseVersion
dummy XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-/*
- * DRI drivers under development, or drivers included on this platform
- * only for build testing.
- */
# ifndef DevelDRIDrivers
-# if XFree86Devel
-# define DevelDRIDrivers ffb
-# else
-# define DevelDRIDrivers /**/
-# endif
+# define DevelDRIDrivers ffb mach64 savage
# endif
# ifndef DriDrivers
@@ -415,7 +414,7 @@ RELEASE_VERSION = ReleaseVersion
# define i386DRIDrivers /**/
# endif
# define DriDrivers gamma i386DRIDrivers mga r128 radeon r200 \
- sis tdfx DevelDRIDrivers
+ sis tdfx unichrome
# endif
#endif
@@ -440,13 +439,11 @@ RELEASE_VERSION = ReleaseVersion
XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-/* DRI tdfx driver needs Glide, which is not available for AMD64 */
-# define TdfxDriDriver /**/
-
-# define DevelDRIDrivers /**/
+/* The tdfx driver needs Glide, which is not available for AMD64. SiS is 64-bit
+ * unclean as of this writing.
+ */
+# define DriDrivers gamma mga r128 radeon r200
-# define DriDrivers gamma i810 mga r128 radeon r200 \
- TdfxDriDriver DevelDRIDrivers
#endif /*AMD64Arcitecture*/
/* SPARC and UltraSPARC drivers */
@@ -524,10 +521,6 @@ RELEASE_VERSION = ReleaseVersion
DevelDrivers \
XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-# define TdfxDriDriver /**/
-# ifndef DriDrivers
-# define DriDrivers /**/
-# endif
#endif
/* MIPS drivers */
@@ -577,8 +570,9 @@ RELEASE_VERSION = ReleaseVersion
savage nv cirrus DevelDrivers siliconmotion \
vga XF86OSCardDrivers XF86ExtraCardDrivers
# endif
+/* SiS is 64-bit unclean as of this writing. */
# ifndef DriDrivers
-# define DriDrivers gamma tdfx mga r128 radeon r200 /*sis*/
+# define DriDrivers gamma tdfx mga r128 radeon r200
# endif
#endif
@@ -639,13 +633,8 @@ RELEASE_VERSION = ReleaseVersion
DevelDrivers vga \
XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-# if HasGlide3
-# define TdfxDriDriver tdfx
-# else
-# define TdfxDriDriver /**/
-# endif
# ifndef DriDrivers
-# define DriDrivers gamma tdfx mga r128 radeon r200
+# define DriDrivers gamma mga r128 radeon r200
# endif
#endif
@@ -748,6 +737,14 @@ IPLAN2P8_DEFS = -DUSE_IPLAN2P8
#if BuildXF86DRI
+#ifndef DriDrivers
+#define DriDrivers /**/
+#endif
+
+#ifndef DevelDRIDrivers
+#define DevelDRIDrivers /**/
+#endif
+
#ifndef BuildGLXLibrary
# if defined (BuildServersOnly) && BuildServersOnly
# define BuildGLXLibrary NO
diff --git a/xorgsite.def b/xorgsite.def
index c64f224..05d2f5e 100644
--- a/xorgsite.def
+++ b/xorgsite.def
@@ -120,6 +120,11 @@ XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp $
wacom void magictouch aiptek
*/
+/* To enable building of development DRI drivers (insecure, or not useful on the
+ * chosen architecture, uncomment this define.
+#define BuildDevelDRIDrivers YES
+ */
+
/*
* There are three parameters that determine where and how the Matrox HAL
* library is used: