aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2001-10-07 05:20:26 +0800
committerjmz <jmz@FreeBSD.org>2001-10-07 05:20:26 +0800
commite327031843051a7b73e4977066e0fee1c7ab13ae (patch)
treeaa478f4b1a6193d7909df90537037b2c975c7982 /x11/XFree86-4
parentb408bfde02c22f9655dc03c4af6cd4c1c32b41ea (diff)
downloadfreebsd-ports-gnome-e327031843051a7b73e4977066e0fee1c7ab13ae.tar.gz
freebsd-ports-gnome-e327031843051a7b73e4977066e0fee1c7ab13ae.tar.zst
freebsd-ports-gnome-e327031843051a7b73e4977066e0fee1c7ab13ae.zip
re-enable DRI
Submitted by: Eric Anholt <eanholt@gladstone.uoregon.edu>
Diffstat (limited to 'x11/XFree86-4')
-rw-r--r--x11/XFree86-4/Makefile2
-rw-r--r--x11/XFree86-4/files/patch-r128dri18
-rw-r--r--x11/XFree86-4/files/patch-r128xmesa13
-rw-r--r--x11/XFree86-4/scripts/configure6
4 files changed, 33 insertions, 6 deletions
diff --git a/x11/XFree86-4/Makefile b/x11/XFree86-4/Makefile
index d68fbfd83677..9641495a9b03 100644
--- a/x11/XFree86-4/Makefile
+++ b/x11/XFree86-4/Makefile
@@ -7,7 +7,7 @@
PORTNAME= XFree86
PORTVERSION= 4.1.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XFREE}
MASTER_SITE_SUBDIR= 4.1.0
diff --git a/x11/XFree86-4/files/patch-r128dri b/x11/XFree86-4/files/patch-r128dri
new file mode 100644
index 000000000000..c09b58c6ad40
--- /dev/null
+++ b/x11/XFree86-4/files/patch-r128dri
@@ -0,0 +1,18 @@
+--- programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c.orig Sat Oct 6 05:29:25 2001
++++ programs/Xserver/hw/xfree86/drivers/ati/r128_dri.c Fri Oct 5 17:28:40 2001
+@@ -985,12 +985,12 @@
+ /* Check the r128 DRM version */
+ version = drmGetVersion(info->drmFD);
+ if (version) {
+- if (version->version_major != 2 ||
+- version->version_minor < 1) {
++ if (version->version_major != 3 ||
++ version->version_minor < 0) {
+ /* incompatible drm version */
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] R128DRIScreenInit failed because of a version mismatch.\n"
+- "[dri] r128.o kernel module version is %d.%d.%d but version 2.1.x is needed.\n"
++ "[dri] r128.o kernel module version is %d.%d.%d but version 3.0 or greater is needed.\n"
+ "[dri] Disabling the DRI.\n",
+ version->version_major,
+ version->version_minor,
diff --git a/x11/XFree86-4/files/patch-r128xmesa b/x11/XFree86-4/files/patch-r128xmesa
new file mode 100644
index 000000000000..fc33b516da12
--- /dev/null
+++ b/x11/XFree86-4/files/patch-r128xmesa
@@ -0,0 +1,13 @@
+--- lib/GL/mesa/src/drv/r128/r128_xmesa.c.orig Fri Oct 5 17:21:31 2001
++++ lib/GL/mesa/src/drv/r128/r128_xmesa.c Fri Oct 5 17:22:59 2001
+@@ -80,8 +80,8 @@
+ }
+
+ /* Check that the DRM driver version is compatible */
+- if ( sPriv->drmMajor != 2 ||
+- sPriv->drmMinor < 1 ) {
++ if ( sPriv->drmMajor != 3 /*||
++ sPriv->drmMinor < 1*/ ) {
+ char msg[1000];
+ sprintf( msg, "R128 DRI driver expected DRM driver version 2.1.x but got version %d.%d.%d", sPriv->drmMajor, sPriv->drmMinor, sPriv->drmPatch );
+ __driMesaMessage( msg );
diff --git a/x11/XFree86-4/scripts/configure b/x11/XFree86-4/scripts/configure
index 03699ecb2348..0a037abb8484 100644
--- a/x11/XFree86-4/scripts/configure
+++ b/x11/XFree86-4/scripts/configure
@@ -230,11 +230,7 @@ yesno YES "Do you want to compile with PAM support?"
echo "#define HasPam $answ" >> $F
echo "#define InstallXserverSetUID NO " >> $F
-# DRI is broken in 4.1
-#if [ $OSVERSION -lt 500013 -a X${MACHINE} != X"alpha" ]; then
-# echo "#define BuildXF86DRI YES" >> $F
-# echo "#define BuildXF86DRM YES" >> $F
-#fi
+echo "#define BuildXF86DRI YES" >> $F
}
configure