Xorg-servers update to 1.18.4 with driver updates and revision bumps.

Update xf86-video-ati to 7.8.0
Update xf86-video-intel to 2.99.917.20170103
Update xf86-input-synaptics to 1.9.0
Update xf86-input-evdev to 2.10.5
Update xf86-video-r128 to 6.10.2
Update xf86-video-rendition to 4.2.6
New port: xf86-video-geode

PR:		214591,216269,214687,214593,214715,216276,216277,216278,216287,
		216288,216292,216298,214560,216299,216300,216301,216302
Approved by:	swills (mentor, portmgr)
Differential Revision:	https://reviews.freebsd.org/D9436
This commit is contained in:
Matthew Rezny 2017-02-11 14:17:58 +00:00
parent ce75c06578
commit 3f87b5cb51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433863
119 changed files with 811 additions and 1694 deletions

View file

@ -59,15 +59,12 @@ USE_XORG+= xorg-macros
. if ${XORG_CAT} == "driver" . if ${XORG_CAT} == "driver"
USE_XORG+= xorg-server xproto randrproto xi renderproto xextproto \ USE_XORG+= xorg-server xproto randrproto xi renderproto xextproto \
inputproto kbproto fontsproto videoproto dri2proto xf86driproto \ inputproto kbproto fontsproto videoproto dri2proto dri3proto \
presentproto glproto xineramaproto resourceproto scrnsaverproto xf86driproto presentproto glproto xineramaproto resourceproto \
# work around a llvm bug on i386, llvm bug #15806 scrnsaverproto
# reproduced with clang 3.2 (current release) and 3.1
. if ${ARCH} == i386
CFLAGS+= -fno-optimize-sibling-calls
. endif
CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4' CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
USES+= libtool USES+= libtool
INSTALL_TARGET= install-strip
. endif . endif
. if ${XORG_CAT} == "font" . if ${XORG_CAT} == "font"
@ -101,7 +98,7 @@ CONFIGURE_ARGS+= --with-xkb-path=${LOCALBASE}/share/X11/xkb \
--with-fontrootdir=${LOCALBASE}/share/fonts --with-fontrootdir=${LOCALBASE}/share/fonts
LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/dri LIB_PC_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/dri
USE_XORG+= pciaccess xextproto videoproto fontsproto dri2proto fontutil:build USE_XORG+= fontutil:build
. endif . endif
.endif .endif

View file

@ -26,6 +26,7 @@
SUBDIR += xf86-video-chips SUBDIR += xf86-video-chips
SUBDIR += xf86-video-cirrus SUBDIR += xf86-video-cirrus
SUBDIR += xf86-video-dummy SUBDIR += xf86-video-dummy
SUBDIR += xf86-video-geode
SUBDIR += xf86-video-glint SUBDIR += xf86-video-glint
SUBDIR += xf86-video-i128 SUBDIR += xf86-video-i128
SUBDIR += xf86-video-i740 SUBDIR += xf86-video-i740

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-acecad PORTNAME= xf86-input-acecad
PORTVERSION= 1.5.0 PORTVERSION= 1.5.0
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -3,7 +3,7 @@
PORTNAME= xf86-input-egalax PORTNAME= xf86-input-egalax
PORTVERSION= 0.3 PORTVERSION= 0.3
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= glebius@FreeBSD.org MAINTAINER= glebius@FreeBSD.org
@ -12,16 +12,10 @@ COMMENT= eGalax touch screen input driver for X.Org
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= glebius GH_ACCOUNT= glebius
GH_TAGNAME= 7f1e4ac GH_TAGNAME= 7f1e4ac
DIST_SUBDIR= xorg/driver
LICENSE= BSD2CLAUSE LICENSE= BSD2CLAUSE
GNU_CONFIGURE= yes USES= autoreconf
USES= autoreconf libtool pkgconfig XORG_CAT= driver
USE_XORG= xorg-server xproto xi inputproto xf86driproto glproto \
randrproto renderproto resourceproto scrnsaverproto \
xorg-macros presentproto
CONFIGURE_ENV= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
INSTALL_TARGET= install-strip
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-elographics PORTNAME= xf86-input-elographics
PORTVERSION= 1.4.1 PORTVERSION= 1.4.1
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,7 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-input-evdev PORTNAME= xf86-input-evdev
PORTVERSION= 2.10.4 PORTVERSION= 2.10.5
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -18,6 +18,5 @@ RUN_DEPENDS= webcamd>=3.1.0.1:multimedia/webcamd
XORG_CAT= driver XORG_CAT= driver
USES= pathfix USES= pathfix
CONFIGURE_ENV= UDEV_CFLAGS=" " UDEV_LIBS=" " CONFIGURE_ENV= UDEV_CFLAGS=" " UDEV_LIBS=" "
INSTALL_TARGET= install-strip
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1479415100 TIMESTAMP = 1484717140
SHA256 (xorg/driver/xf86-input-evdev-2.10.4.tar.bz2) = bbf6a03fbce1a6c0c7d874eef519fd0a854bf01b515c745d41fa551ce6490cc2 SHA256 (xorg/driver/xf86-input-evdev-2.10.5.tar.bz2) = 9edaa6205baf6d2922cc4db3d8e54a7e7773b5f733b0ae90f6be7725f983b70d
SIZE (xorg/driver/xf86-input-evdev-2.10.4.tar.bz2) = 404465 SIZE (xorg/driver/xf86-input-evdev-2.10.5.tar.bz2) = 405956

View file

@ -1,6 +1,6 @@
--- src/evdev.c.orig 2015-03-27 01:35:50 UTC --- src/evdev.c.orig 2017-01-03 01:26:00 UTC
+++ src/evdev.c +++ src/evdev.c
@@ -37,9 +37,13 @@ @@ -38,9 +38,13 @@
#include <X11/keysym.h> #include <X11/keysym.h>
#include <X11/extensions/XI.h> #include <X11/extensions/XI.h>
@ -14,7 +14,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
@@ -222,6 +226,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo) @@ -226,6 +230,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo)
static BOOL static BOOL
EvdevDeviceIsVirtual(const char* devicenode) EvdevDeviceIsVirtual(const char* devicenode)
{ {
@ -22,7 +22,7 @@
struct udev *udev = NULL; struct udev *udev = NULL;
struct udev_device *device = NULL; struct udev_device *device = NULL;
struct stat st; struct stat st;
@@ -252,6 +257,9 @@ out: @@ -256,6 +261,9 @@ out:
udev_device_unref(device); udev_device_unref(device);
udev_unref(udev); udev_unref(udev);
return rc; return rc;
@ -31,8 +31,8 @@
+#endif +#endif
} }
#ifndef HAVE_SMOOTH_SCROLLING
@@ -1086,11 +1094,13 @@ EvdevReadInput(InputInfoPtr pInfo) @@ -1062,11 +1070,13 @@ EvdevReadInput(InputInfoPtr pInfo)
do { do {
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev);
if (rc < 0) { if (rc < 0) {
@ -47,8 +47,8 @@
+ } + }
break; break;
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) { } else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) {
#ifdef MULTITOUCH if (pEvdev->mtdev)
@@ -1470,10 +1480,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de @@ -1476,10 +1486,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de
continue; continue;
abs = libevdev_get_abs_info(pEvdev->dev, axis); abs = libevdev_get_abs_info(pEvdev->dev, axis);

View file

@ -1,4 +1,4 @@
--- src/evdev.h.orig 2015-03-27 01:35:50 UTC --- src/evdev.h.orig 2016-11-21 04:59:44 UTC
+++ src/evdev.h +++ src/evdev.h
@@ -36,7 +36,15 @@ @@ -36,7 +36,15 @@
#define EVDEV_H #define EVDEV_H

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-fpit PORTNAME= xf86-input-fpit
PORTVERSION= 1.4.0 PORTVERSION= 1.4.0
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-hyperpen PORTNAME= xf86-input-hyperpen
PORTVERSION= 1.4.1 PORTVERSION= 1.4.1
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-input-keyboard PORTNAME= xf86-input-keyboard
PORTVERSION= 1.9.0 PORTVERSION= 1.9.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-input-mouse PORTNAME= xf86-input-mouse
PORTVERSION= 1.9.2 PORTVERSION= 1.9.2
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -12,6 +13,5 @@ LICENSE_FILE= ${WRKSRC}/COPYING
XORG_CAT= driver XORG_CAT= driver
USES= pathfix USES= pathfix
INSTALL_TARGET= install-strip
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-mutouch PORTNAME= xf86-input-mutouch
PORTVERSION= 1.3.0 PORTVERSION= 1.3.0
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-input-penmount PORTNAME= xf86-input-penmount
PORTVERSION= 1.5.0 PORTVERSION= 1.5.0
PORTREVISION= 5 PORTREVISION= 6
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,17 +1,24 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-input-synaptics PORTNAME= xf86-input-synaptics
PORTVERSION= 1.8.2 PORTVERSION= 1.9.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org synaptics input driver COMMENT= X.Org synaptics input driver
CONFLICTS= synaptics-[0-9]* LICESNE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= pathfix USES= pathfix
USE_XORG= x11 xtst USE_XORG= x11 xtst
XORG_CAT= driver XORG_CAT= driver
OPTIONS_DEFINE= EVDEV
EVDEV_DESC= Use evdev for input events (requires kernel support)
EVDEV_CONFIGURE_ENV= BUILD_EVENTCOMM=yes
EVDEV_BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:multimedia/v4l_compat
EVDEV_LIB_DEPENDS= libevdev.so:devel/libevdev
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,2 +1,3 @@
SHA256 (xorg/driver/xf86-input-synaptics-1.8.2.tar.bz2) = 7b0e164ebd02a680e0c695955e783059f37edb0c2656398e0a972adc8e698c80 TIMESTAMP = 1479490184
SIZE (xorg/driver/xf86-input-synaptics-1.8.2.tar.bz2) = 484261 SHA256 (xorg/driver/xf86-input-synaptics-1.9.0.tar.bz2) = afba3289d7a40217a19d90db98ce181772f9ca6d77e1898727b0afcf02073b5a
SIZE (xorg/driver/xf86-input-synaptics-1.9.0.tar.bz2) = 501814

View file

@ -0,0 +1,18 @@
--- src/eventcomm.c.orig 2016-09-30 07:09:32 UTC
+++ src/eventcomm.c
@@ -421,10 +421,15 @@ event_get_abs(struct libevdev *evdev, in
/* We dont trust a zero fuzz as it probably is just a lazy value */
if (fuzz && abs->fuzz > 0)
*fuzz = abs->fuzz;
+#ifdef __linux__
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
if (res)
*res = abs->resolution;
#endif
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ if (res)
+ *res = abs->resolution;
+#endif
return 0;
}

View file

@ -0,0 +1,18 @@
--- src/eventcomm.h.orig 2015-11-24 23:47:05 UTC
+++ src/eventcomm.h
@@ -30,7 +30,15 @@
#include <xorg-server.h>
#include <linux/input.h>
+#ifdef __linux__
#include <linux/version.h>
+#else
+#undef BUS_NONE
+#undef BUS_PCI
+#undef BUS_SBUS
+#undef BUS_PLATFORM
+#undef BUS_last
+#endif
#include <xf86Xinput.h>
#include "synproto.h"

View file

@ -0,0 +1,31 @@
--- src/synaptics.c.orig 2016-09-30 07:09:32 UTC
+++ src/synaptics.c
@@ -2599,7 +2599,7 @@ HandleScrolling(SynapticsPrivate * priv,
priv->scroll.delta_y += priv->scroll.coast_speed_y * dtime * abs(para->scroll_dist_vert);
delay = MIN(delay, POLL_MS);
- if (abs(priv->scroll.coast_speed_y) < ddy) {
+ if (fabs(priv->scroll.coast_speed_y) < ddy) {
priv->scroll.coast_speed_y = 0;
priv->scroll.packets_this_scroll = 0;
}
@@ -2614,7 +2614,7 @@ HandleScrolling(SynapticsPrivate * priv,
double ddx = para->coasting_friction * dtime;
priv->scroll.delta_x += priv->scroll.coast_speed_x * dtime * abs(para->scroll_dist_horiz);
delay = MIN(delay, POLL_MS);
- if (abs(priv->scroll.coast_speed_x) < ddx) {
+ if (fabs(priv->scroll.coast_speed_x) < ddx) {
priv->scroll.coast_speed_x = 0;
priv->scroll.packets_this_scroll = 0;
}
@@ -2670,8 +2670,8 @@ clickpad_guess_clickfingers(SynapticsPri
* really, this should be dependent on the touchpad size. Also,
* you'll need to find a touchpad that doesn't lie about it's
* size. Good luck. */
- if (abs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
- abs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
+ if (fabs(x1 - x2) < (priv->maxx - priv->minx) * .3 &&
+ fabs(y1 - y2) < (priv->maxy - priv->miny) * .3) {
close_point |= (1 << j);
close_point |= (1 << i);
}

View file

@ -6,4 +6,4 @@ libdata/pkgconfig/xorg-synaptics.pc
man/man1/synclient.1.gz man/man1/synclient.1.gz
man/man1/syndaemon.1.gz man/man1/syndaemon.1.gz
man/man4/synaptics.4x.gz man/man4/synaptics.4x.gz
share/X11/xorg.conf.d/50-synaptics.conf share/X11/xorg.conf.d/70-synaptics.conf

View file

@ -3,6 +3,7 @@
PORTNAME= xf86-input-vmmouse PORTNAME= xf86-input-vmmouse
PORTVERSION= 13.1.0 PORTVERSION= 13.1.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-input-void PORTNAME= xf86-input-void
PORTVERSION= 1.4.1 PORTVERSION= 1.4.1
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-input-wacom PORTNAME= xf86-input-wacom
PORTVERSION= 0.34.0 PORTVERSION= 0.34.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MASTER_SITES= SF/linuxwacom/${PORTNAME} MASTER_SITES= SF/linuxwacom/${PORTNAME}
@ -13,8 +14,8 @@ LICENSE= GPLv2+
BUILD_DEPENDS= v4l_compat>=1.0.20110603:multimedia/v4l_compat BUILD_DEPENDS= v4l_compat>=1.0.20110603:multimedia/v4l_compat
RUN_DEPENDS= webcamd>=3.1.0.1:multimedia/webcamd RUN_DEPENDS= webcamd>=3.1.0.1:multimedia/webcamd
USES= tar:bzip2 pathfix pkgconfig libtool USES= pathfix
USE_XORG= x11 xinerama xrandr USE_XORG= x11 xext xinerama xrandr
XORG_CAT= driver XORG_CAT= driver
LDFLAGS+= -Wl,--as-needed # Xext LDFLAGS+= -Wl,--as-needed # Xext
USE_RC_SUBR= wacom USE_RC_SUBR= wacom
@ -23,7 +24,6 @@ CONFIGURE_ENV= UDEV_CFLAGS=" " UDEV_LIBS=" "
CONFIGURE_ARGS= --without-systemd-unit-dir \ CONFIGURE_ARGS= --without-systemd-unit-dir \
--without-udev-rules-dir \ --without-udev-rules-dir \
--without-doxygen --without-doxygen
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DEBUG TEST OPTIONS_DEFINE= DEBUG TEST

View file

@ -4,6 +4,7 @@
PORTNAME= xf86-video-amdgpu PORTNAME= xf86-video-amdgpu
PORTVERSION= 1.2.0 PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -16,16 +17,16 @@ LIB_DEPENDS= libdrm_amdgpu.so:graphics/libdrm
USE_GL= gbm USE_GL= gbm
XORG_CAT= driver XORG_CAT= driver
INSTALL_TARGET= install-strip
# No amdgpu kernel driver on non-x86 and PC98. # No amdgpu kernel driver on non-x86 and PC98.
ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= KMS is required and currently only available on x86
CONFIGURE_ARGS+=--disable-udev CONFIGURE_ARGS+=--disable-udev
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if (${OSVERSION} < 1200019) .if (${OSVERSION} < 1200019)
IGNORE= not support on 11.x or older, no kernel support IGNORE= not supported on 11.x or older, no kernel support
.endif .endif
PLIST_FILES= lib/xorg/modules/drivers/amdgpu_drv.so \ PLIST_FILES= lib/xorg/modules/drivers/amdgpu_drv.so \

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-apm PORTNAME= xf86-video-apm
PORTVERSION= 1.2.5 PORTVERSION= 1.2.5
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-ark PORTNAME= xf86-video-ark
PORTVERSION= 0.7.5 PORTVERSION= 0.7.5
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,25 +1,27 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-video-ati PORTNAME= xf86-video-ati
PORTVERSION= 7.5.0 PORTVERSION= 7.8.0
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org ati display driver COMMENT= X.Org ati display driver
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \
libdrm_radeon.so:graphics/libdrm
USE_GL= gl USE_GL= gl
XORG_CAT= driver XORG_CAT= driver
USE_XORG= xf86driproto \ USE_XORG= pciaccess
xineramaproto \
xf86miscproto \
glproto \
presentproto
INSTALL_TARGET= install-strip
# No Radeon kernel driver on non-x86 and PC98. # No Radeon kernel driver on non-x86 and PC98.
ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= KMS is required and currently only available on x86
CONFIGURE_ARGS+=--disable-udev CONFIGURE_ARGS+=--disable-udev
CONFIGURE_ARGS+=--disable-glamor
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1484479584 TIMESTAMP = 1479393377
SHA256 (xorg/driver/xf86-video-ati-7.5.0.tar.bz2) = ec3e6f06b6cf9a40c72aafa3448aae8b034c80b37410ca9442d5cf6806e07936 SHA256 (xorg/driver/xf86-video-ati-7.8.0.tar.bz2) = 401f5de772928f3dc4ce43a885adb0a47a2f61aa4a9e45d2ab3d184136a9d6fa
SIZE (xorg/driver/xf86-video-ati-7.5.0.tar.bz2) = 809756 SIZE (xorg/driver/xf86-video-ati-7.8.0.tar.bz2) = 845702

View file

@ -0,0 +1,48 @@
From f11531c99fcd6473f58b4d10efaf3efd84304d8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daenzer@amd.com>
Date: Mon, 21 Nov 2016 18:15:05 +0900
Subject: Enable glamor by default with >= R600 and Xorg >= 1.18.3
glamor should now perform at least as well as EXA in general, and this
allows DRI3 to be enabled by default for >= R600.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
diff --git a/man/radeon.man b/man/radeon.man
index 6af7a92..8990ae2 100644
--- man/radeon.man
+++ man/radeon.man
@@ -293,7 +293,7 @@ Chooses between available acceleration architectures. Valid values are
.B glamor
(for R300 or higher). The default is
.B glamor
-as of TAHITI, otherwise
+with R600 or newer (with Xorg >= 1.18.3, otherwise with TAHITI or newer), otherwise
.B EXA.
.PP
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index b66848f..590c9f0 100644
--- src/radeon_glamor.c
+++ src/radeon_glamor.c
@@ -84,8 +84,15 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
return FALSE;
s = xf86GetOptValString(info->Options, OPTION_ACCELMETHOD);
- if (s == NULL && info->ChipFamily < CHIP_FAMILY_TAHITI)
- return FALSE;
+ if (!s) {
+ if (xorgGetVersion() >= XORG_VERSION_NUMERIC(1,18,3,0,0)) {
+ if (info->ChipFamily < CHIP_FAMILY_R600)
+ return FALSE;
+ } else {
+ if (info->ChipFamily < CHIP_FAMILY_TAHITI)
+ return FALSE;
+ }
+ }
if (s && strcasecmp(s, "glamor") != 0) {
if (info->ChipFamily >= CHIP_FAMILY_TAHITI)
--
cgit v0.10.2

View file

@ -1,11 +0,0 @@
--- src/radeon_dri2.c.orig 2013-02-22 19:31:34.000000000 +0000
+++ src/radeon_dri2.c 2013-02-22 19:31:47.000000000 +0000
@@ -578,7 +578,7 @@
radeon_dri2_client_state_changed(CallbackListPtr *ClientStateCallback, pointer data, pointer calldata)
{
DRI2ClientEventsPtr pClientEventsPriv;
- DRI2FrameEventPtr ref;
+ DRI2FrameEventPtr ref = NULL;
NewClientInfoRec *clientinfo = calldata;
ClientPtr pClient = clientinfo->client;
pClientEventsPriv = GetDRI2ClientEvents(pClient);

View file

@ -1,5 +1,5 @@
--- src/radeon_kms.c.orig 2014-10-02 05:31:27.000000000 +0200 --- src/radeon_kms.c.orig 2016-11-17 02:23:37 UTC
+++ src/radeon_kms.c 2014-10-23 18:56:18.359108170 +0200 +++ src/radeon_kms.c
@@ -30,6 +30,8 @@ @@ -30,6 +30,8 @@
#include <errno.h> #include <errno.h>
@ -8,36 +8,18 @@
+#include <sys/linker.h> +#include <sys/linker.h>
/* Driver data structures */ /* Driver data structures */
#include "radeon.h" #include "radeon.h"
#include "radeon_reg.h" #include "radeon_drm_queue.h"
@@ -280,7 +282,7 @@ @@ -1405,6 +1407,15 @@ static int radeon_get_drm_master_fd(Scrn
radeon_dirty_update(ScreenPtr screen) XNFasprintf(&busid, "pci:%04x:%02x:%02x.%d",
{
RegionPtr region;
- PixmapDirtyUpdatePtr ent;
+ PixmapDirtyUpdatePtr ent = NULL;
if (xorg_list_is_empty(&screen->pixmap_dirty_list))
return;
@@ -589,7 +591,7 @@
#endif
struct pci_device *dev = info->PciInfo;
char *busid;
- int fd;
+ int fd, err;
#ifdef XF86_PDEV_SERVER_FD
if (pRADEONEnt->platform_dev) {
@@ -608,6 +610,15 @@
dev->domain, dev->bus, dev->dev, dev->func); dev->domain, dev->bus, dev->dev, dev->func);
#endif
+ err = kldload("radeonkms"); + fd = kldload("radeonkms");
+ if (err == -1 && errno != EEXIST) { + if (fd == -1 && errno != EEXIST) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, + xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "[drm] Failed to load kernel module for %s: %s\n", + "[drm] Failed to load kernel module for %s: %s\n",
+ busid, strerror(errno)); + busid, strerror(errno));
+ free(busid); + free(busid);
+ return -1; + return fd;
+ } + }
+ +
fd = drmOpen(NULL, busid); fd = drmOpen(NULL, busid);

View file

@ -1,15 +0,0 @@
--- src/radeon_accel.c.orig 2012-06-25 10:19:41.000000000 +0200
+++ src/radeon_accel.c 2012-07-30 02:11:51.000000000 +0200
@@ -967,10 +967,9 @@
for (; nwords > 0; --nwords, ++d, ++s)
#ifdef __powerpc__
- asm volatile("stwbrx %0,0,%1" : : "r" (*s), "r" (d));
+ asm volatile("sthbrx %0,0,%1" : : "r" (*s), "r" (d));
#else
- *d = ((*s >> 24) & 0xff) | ((*s >> 8) & 0xff00)
- | ((*s & 0xff00) << 8) | ((*s & 0xff) << 24);
+ *d = (*s >> 8) | (*s << 8);
#endif
return;
}

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-chips PORTNAME= xf86-video-chips
PORTVERSION= 1.2.7 PORTVERSION= 1.2.7
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -0,0 +1,15 @@
# $FreeBSD$
PORTNAME= xf86-video-geode
PORTVERSION= 2.11.19
CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org geode display driver
XORG_CAT= driver
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHES_REASON= Geode processors are 32bit x86 only
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1482059035
SHA256 (xorg/driver/xf86-video-geode-2.11.19.tar.bz2) = c6694c21ee3d9560f6e925925ef1d3818b1988e899b6a0592dbae597c87ac97e
SIZE (xorg/driver/xf86-video-geode-2.11.19.tar.bz2) = 668151

View file

@ -0,0 +1,3 @@
This package contains the X.Org xf86-video-geode driver.
WWW: http://www.x.org

View file

@ -0,0 +1 @@
lib/xorg/modules/drivers/geode_drv.so

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-glint PORTNAME= xf86-video-glint
PORTVERSION= 1.2.9 PORTVERSION= 1.2.9
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-i128 PORTNAME= xf86-video-i128
PORTVERSION= 1.3.6 PORTVERSION= 1.3.6
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,6 +1,8 @@
# two upstream clean-up commits plus a string const fix
#
--- src/i128_driver.c.orig 2012-07-17 05:21:15 UTC --- src/i128_driver.c.orig 2012-07-17 05:21:15 UTC
+++ src/i128_driver.c +++ src/i128_driver.c
@@ -50,8 +50,6 @@ @@ -50,12 +50,9 @@
/* All drivers initialising the SW cursor need this */ /* All drivers initialising the SW cursor need this */
#include "mipointer.h" #include "mipointer.h"
@ -9,7 +11,20 @@
#include "micmap.h" #include "micmap.h"
#include "xf86DDC.h" #include "xf86DDC.h"
@@ -1557,7 +1555,6 @@ I128ScreenInit(SCREEN_INIT_ARGS_DECL) -#include "vbe.h"
#include "xf86cmap.h"
#include "fb.h"
@@ -586,7 +583,7 @@ I128PreInit(ScrnInfoPtr pScrn, int flags
xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Acceleration disabled\n");
} else {
int from = X_DEFAULT;
- char *s = xf86GetOptValString(pI128->Options, OPTION_ACCELMETHOD);
+ const char *s = xf86GetOptValString(pI128->Options, OPTION_ACCELMETHOD);
pI128->NoAccel = FALSE;
if (!xf86NameCmp(s, "EXA")) {
pI128->exa = TRUE;
@@ -1557,7 +1554,6 @@ I128ScreenInit(SCREEN_INIT_ARGS_DECL)
return FALSE; return FALSE;
} }

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-i740 PORTNAME= xf86-video-i740
PORTVERSION= 1.3.6 PORTVERSION= 1.3.6
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,35 +2,31 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-video-intel PORTNAME= xf86-video-intel
PORTVERSION= 2.21.15 PORTVERSION= 2.99.917.20170103
PORTREVISION= 9
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MASTER_SITES= http://cgit.freedesktop.org/xorg/${XORG_CAT}/${PORTNAME}/snapshot/
DISTNAME= ${PORTNAME}-${COMMIT_ID}
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
COMMENT= Driver for Intel integrated graphics chipsets COMMENT= Driver for Intel integrated graphics chipsets
LIB_DEPENDS= libxcb-util.so:x11/xcb-util LIB_DEPENDS= libxcb-util.so:x11/xcb-util \
libdrm.so:graphics/libdrm
COMMIT_ID= 028c946df0855728b2a34d1d588701dc6c5ad4c1
ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Intel integrated GPU only exists in Intel x86 processors/chipsets
USE_GL= gl USE_GL= gl
USE_LDCONFIG= yes USE_LDCONFIG= yes
XORG_CAT= driver XORG_CAT= driver
USE_XORG= glproto \ USE_XORG= pciaccess pixman x11 xcb xext xrender xv xvmc
pixman \
x11 \
xext \
xf86driproto \
xineramaproto \
xrender \
xvmc
USES+= cpe USES+= cpe autoreconf
CPE_VENDOR= x CPE_VENDOR= x
CONFIGURE_ENV+= xorg_cv_cc_flag__Wno_maybe_uninitialized=no CONFIGURE_ARGS+= --with-default-accel=uxa
CONFIGURE_ARGS+= --enable-sna
CONFIGURE_ARGS+= --disable-glamor
INSTALL_TARGET= install-strip
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,4 +1,3 @@
SHA256 (xorg/driver/xf86-video-intel-2.7.1.tar.bz2) = 255c0d54249cc0132f743254a43c21fac695fab2139c8ed96a07cf3c628e5f42 TIMESTAMP = 1484505738
SIZE (xorg/driver/xf86-video-intel-2.7.1.tar.bz2) = 780625 SHA256 (xorg/driver/xf86-video-intel-028c946df0855728b2a34d1d588701dc6c5ad4c1.tar.bz2) = 34d00a1c85f33c55a58bc072b59633d84e48776c771cec5e4d313664c3f56f7c
SHA256 (xorg/driver/xf86-video-intel-2.21.15.tar.bz2) = 7d5a140f82a72fd1cbc8a664d66c3d4eca47ee240ca4927b8a98d7af6f65d6fc SIZE (xorg/driver/xf86-video-intel-028c946df0855728b2a34d1d588701dc6c5ad4c1.tar.bz2) = 1236389
SIZE (xorg/driver/xf86-video-intel-2.21.15.tar.bz2) = 1977431

View file

@ -1,63 +0,0 @@
--- src/sna/sna_cpu.c.orig 2013-08-14 12:04:40.231041285 +0200
+++ src/sna/sna_cpu.c 2013-08-14 12:05:51.237030719 +0200
@@ -41,6 +41,7 @@
{
unsigned max = __get_cpuid_max(BASIC_CPUID, NULL);
unsigned int eax, ebx, ecx, edx;
+ eax = ebx = ecx = edx = 0;
unsigned features = 0;
unsigned extra = 0;
--- src/sna/sna_damage.c.orig 2013-08-14 12:06:26.381036854 +0200
+++ src/sna/sna_damage.c 2013-08-14 12:07:23.684023065 +0200
@@ -410,7 +410,7 @@
int n, nboxes;
BoxPtr boxes, free_boxes = NULL;
pixman_region16_t *region = &damage->region;
- struct sna_damage_box *iter;
+ struct sna_damage_box *iter = NULL;
assert(damage->mode != DAMAGE_ALL);
assert(damage->dirty);
@@ -1709,7 +1709,7 @@
{
int n, nboxes;
BoxPtr boxes;
- struct sna_damage_box *iter;
+ struct sna_damage_box *iter = NULL;
RegionCopy(r, &damage->region);
if (!damage->dirty)
--- src/uxa/intel_batchbuffer.c.orig 2013-08-14 12:08:14.323028320 +0200
+++ src/uxa/intel_batchbuffer.c 2013-08-14 12:08:37.202016923 +0200
@@ -141,7 +141,7 @@
static void intel_batch_do_flush(ScrnInfoPtr scrn)
{
intel_screen_private *intel = intel_get_screen_private(scrn);
- struct intel_pixmap *priv;
+ struct intel_pixmap *priv = NULL;
list_for_each_entry(priv, &intel->batch_pixmaps, batch)
priv->dirty = 0;
--- src/uxa/intel_display.c.orig 2013-08-14 12:09:25.802015629 +0200
+++ src/uxa/intel_display.c 2013-08-14 12:09:51.034009844 +0200
@@ -1753,7 +1753,7 @@
static drmModeEncoderPtr
intel_get_kencoder(struct intel_mode *mode, int num)
{
- struct intel_output *iterator;
+ struct intel_output *iterator = NULL;
int id = mode->mode_res->encoders[num];
list_for_each_entry(iterator, &mode->outputs, link)
--- src/uxa/uxa-accel.c.orig 2013-08-14 12:02:11.898048975 +0200
+++ src/uxa/uxa-accel.c 2013-08-14 12:03:39.336042139 +0200
@@ -944,7 +944,7 @@
if (uxa_screen->info->flags & UXA_USE_GLAMOR) {
int ok = 0;
- RegionPtr region;
+ RegionPtr region = NULL;
if (uxa_prepare_access(pDst, UXA_GLAMOR_ACCESS_RW)) {
if (uxa_prepare_access(pSrc, UXA_GLAMOR_ACCESS_RO)) {

View file

@ -1,13 +1,10 @@
--- src/intel_device.c.orig 2013-06-30 16:03:51.000000000 +0200 --- src/intel_device.c.orig 2016-02-16 09:25:09.124344000 +0100
+++ src/intel_device.c 2013-07-02 14:08:34.903060688 +0200 +++ src/intel_device.c 2016-02-16 09:22:49.541922000 +0100
@@ -94,8 +94,8 @@ @@ -204,6 +207,7 @@
pci->domain, pci->bus, pci->dev, pci->func); }
ret = drmCheckModesettingSupported(id); static const char *kernel_module_names[] ={
- if (ret) { + "i915kms",
- if (xf86LoadKernelModule("i915")) "i915",
+ if (ret || 1) { NULL,
+ if (xf86LoadKernelModule("i915kms")) };
ret = drmCheckModesettingSupported(id);
if (ret)
return -1;

View file

@ -1,81 +0,0 @@
--- src/sna/sna_accel.c.orig 2013-08-20 20:26:26 UTC
+++ src/sna/sna_accel.c
@@ -3797,6 +3797,7 @@ static bool must_check sna_gc_move_to_cp
sgc->priv = gc->pCompositeClip;
gc->pCompositeClip = region;
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,16,99,901,0)
if (gc->clientClipType == CT_PIXMAP) {
PixmapPtr clip = gc->clientClip;
gc->clientClip = region_from_bitmap(gc->pScreen, clip);
@@ -3804,7 +3805,9 @@ static bool must_check sna_gc_move_to_cp
gc->clientClipType = gc->clientClip ? CT_REGION : CT_NONE;
changes |= GCClipMask;
} else
+#else
changes &= ~GCClipMask;
+#endif
if (changes || drawable->serialNumber != sgc->serial) {
gc->serialNumber = sgc->serial;
@@ -5562,6 +5565,15 @@ static inline bool box_equal(const BoxRe
return *(const uint64_t *)a == *(const uint64_t *)b;
}
+static inline bool has_clip(GCPtr gc)
+{
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,16,99,901,0)
+ return gc->clientClipType != CT_NONE;
+#else
+ return gc->clientClip != NULL;
+#endif
+}
+
static RegionPtr
sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
int sx, int sy,
@@ -5628,7 +5640,7 @@ sna_do_copy(DrawablePtr src, DrawablePtr
/* Compute source clip region */
if (src->type == DRAWABLE_PIXMAP) {
- if (src == dst && gc->clientClipType == CT_NONE) {
+ if (src == dst && !has_clip(gc)) {
DBG(("%s: pixmap -- using gc clip\n", __FUNCTION__));
clip = gc->pCompositeClip;
} else {
@@ -14391,7 +14403,7 @@ sna_validate_gc(GCPtr gc, unsigned long
if (changes & (GCClipMask|GCSubwindowMode) ||
drawable->serialNumber != (gc->serialNumber & DRAWABLE_SERIAL_BITS) ||
- (gc->clientClipType != CT_NONE && (changes & (GCClipXOrigin | GCClipYOrigin))))
+ (has_clip(gc) && (changes & (GCClipXOrigin | GCClipYOrigin))))
miComputeCompositeClip(gc, drawable);
sna_gc(gc)->changes |= changes;
@@ -14830,7 +14842,7 @@ static bool has_offload_slaves(struct sn
{
#if HAS_PIXMAP_SHARING
ScreenPtr screen = sna->scrn->pScreen;
- PixmapDirtyUpdatePtr dirty;
+ PixmapDirtyUpdatePtr dirty = NULL;
xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list, ent) {
assert(dirty->src == sna->front);
@@ -14987,7 +14999,7 @@ static void sna_accel_post_damage(struct
{
#if HAS_PIXMAP_SHARING
ScreenPtr screen = sna->scrn->pScreen;
- PixmapDirtyUpdatePtr dirty;
+ PixmapDirtyUpdatePtr dirty = NULL;
bool flush = false;
xorg_list_for_each_entry(dirty, &screen->pixmap_dirty_list, ent) {
@@ -15216,7 +15228,7 @@ migrate_dirty_tracking(PixmapPtr old_fro
{
#if HAS_PIXMAP_SHARING
ScreenPtr screen = old_front->drawable.pScreen;
- PixmapDirtyUpdatePtr dirty, safe;
+ PixmapDirtyUpdatePtr dirty = NULL, safe;
xorg_list_for_each_entry_safe(dirty, safe, &screen->pixmap_dirty_list, ent) {
assert(dirty->src == old_front);

View file

@ -1,14 +0,0 @@
--- src/sna/sna_threads.c.orig 2013-02-02 00:03:44.000000000 +0000
+++ src/sna/sna_threads.c 2013-02-02 00:04:39.000000000 +0000
@@ -94,7 +94,11 @@
size_t len = 0;
char *line = NULL;
uint32_t processors = 0, cores = 0;
+#ifdef __GLIBC__
while (getline(&line, &len, file) != -1) {
+#else
+ while ((line = fgetln(file, &len)) != (char *) NULL) {
+#endif
int id;
if (sscanf(line, "physical id : %d", &id) == 1) {
if (id >= 32)

View file

@ -1,11 +0,0 @@
--- src/uxa/intel_driver.c.orig 2014-10-28 00:30:09.015749289 +0100
+++ src/uxa/intel_driver.c 2014-10-28 00:30:26.834767496 +0100
@@ -723,7 +723,7 @@
intel_dirty_update(ScreenPtr screen)
{
RegionPtr region;
- PixmapDirtyUpdatePtr ent;
+ PixmapDirtyUpdatePtr ent = NULL;
if (xorg_list_is_empty(&screen->pixmap_dirty_list))
return;

View file

@ -1,43 +0,0 @@
--- src/compat-api.h.orig 2013-05-21 10:15:11 UTC
+++ src/compat-api.h
@@ -158,4 +158,40 @@ static inline void FreePixmap(PixmapPtr
if ((d)->pScreen->SourceValidate) (d)->pScreen->SourceValidate(d, x, y, w, h)
#endif
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
+#define DamageUnregister(d, dd) DamageUnregister(dd)
+#endif
+
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+
+#define XORG_XV_VERSION 2
+#define ddStopVideo_ARGS XvPortPtr port, DrawablePtr draw
+#define ddSetPortAttribute_ARGS XvPortPtr port, Atom attribute, INT32 value
+#define ddGetPortAttribute_ARGS XvPortPtr port, Atom attribute, INT32 *value
+#define ddQueryBestSize_ARGS XvPortPtr port, CARD8 motion, CARD16 vid_w, CARD16 vid_h, CARD16 drw_w, CARD16 drw_h, unsigned int *p_w, unsigned int *p_h
+#define ddPutImage_ARGS DrawablePtr draw, XvPortPtr port, GCPtr gc, INT16 src_x, INT16 src_y, CARD16 src_w, CARD16 src_h, INT16 drw_x, INT16 drw_y, CARD16 drw_w, CARD16 drw_h, XvImagePtr format, unsigned char *buf, Bool sync, CARD16 width, CARD16 height
+#define ddQueryImageAttributes_ARGS XvPortPtr port, XvImagePtr format, unsigned short *w, unsigned short *h, int *pitches, int *offsets
+
+#else
+
+#define XORG_XV_VERSION 1
+#define ddStopVideo_ARGS ClientPtr client, XvPortPtr port, DrawablePtr draw
+#define ddSetPortAttribute_ARGS ClientPtr client, XvPortPtr port, Atom attribute, INT32 value
+#define ddGetPortAttribute_ARGS ClientPtr client, XvPortPtr port, Atom attribute, INT32 *value
+#define ddQueryBestSize_ARGS ClientPtr client, XvPortPtr port, CARD8 motion, CARD16 vid_w, CARD16 vid_h, CARD16 drw_w, CARD16 drw_h, unsigned int *p_w, unsigned int *p_h
+#define ddPutImage_ARGS ClientPtr client, DrawablePtr draw, XvPortPtr port, GCPtr gc, INT16 src_x, INT16 src_y, CARD16 src_w, CARD16 src_h, INT16 drw_x, INT16 drw_y, CARD16 drw_w, CARD16 drw_h, XvImagePtr format, unsigned char *buf, Bool sync, CARD16 width, CARD16 height
+#define ddQueryImageAttributes_ARGS ClientPtr client, XvPortPtr port, XvImagePtr format, unsigned short *w, unsigned short *h, int *pitches, int *offsets
+
+#endif
+
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+#include <mi.h>
+#define miHandleExposures(pSrcDrawable, pDstDrawable, \
+ pGC, srcx, srcy, width, height, \
+ dstx, dsty, plane) \
+ miHandleExposures(pSrcDrawable, pDstDrawable, \
+ pGC, srcx, srcy, width, height, \
+ dstx, dsty)
+#endif
+
#endif

View file

@ -0,0 +1,12 @@
--- src/intel_device.c.orig 2014-12-21 20:36:40.268102983 +0100
+++ src/intel_device.c 2014-12-21 20:36:01.358104504 +0100
@@ -28,6 +28,9 @@
#include "config.h"
#endif
+#define _WITH_GETLINE /* to expose getline() in stdio.h on FreeBSD */
+#include <stdio.h> /* for getline() */
+
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>

View file

@ -0,0 +1,36 @@
--- src/intel_list.h.orig 2015-12-10 23:29:35.000000000 +0100
+++ src/intel_list.h 2016-10-24 10:22:57.280379000 +0200
@@ -305,8 +305,6 @@
#define list_last_entry(ptr, type, member) \
list_entry((ptr)->prev, type, member)
-#define __container_of(ptr, sample, member) \
- (void *)((char *)(ptr) - ((char *)&(sample)->member - (char *)(sample)))
/**
* Loop through the list given by head and set pos to struct in the list.
*
@@ -325,12 +323,12 @@
*
*/
#define list_for_each_entry(pos, head, member) \
- for (pos = __container_of((head)->next, pos, member); \
+ for (pos = NULL, pos = __container_of((head)->next, pos, member); \
&pos->member != (head); \
pos = __container_of(pos->member.next, pos, member))
-#define list_for_each_entry_reverse(pos, head, member) \
- for (pos = __container_of((head)->prev, pos, member); \
+#define list_for_each_entry_reverse(pos, head, member) \
+ for (pos = NULL, pos = __container_of((head)->prev, pos, member); \
&pos->member != (head); \
pos = __container_of(pos->member.prev, pos, member))
@@ -342,7 +340,7 @@
* See list_for_each_entry for more details.
*/
#define list_for_each_entry_safe(pos, tmp, head, member) \
- for (pos = __container_of((head)->next, pos, member), \
+ for (pos = NULL, pos = __container_of((head)->next, pos, member), \
tmp = __container_of(pos->member.next, pos, member); \
&pos->member != (head); \
pos = tmp, tmp = __container_of(pos->member.next, tmp, member))

View file

@ -0,0 +1,12 @@
--- src/sna/sna_threads.c.orig 2016-11-18 16:32:46 UTC
+++ src/sna/sna_threads.c
@@ -29,6 +29,9 @@
#include "config.h"
#endif
+#define _WITH_GETLINE /* to expose getline() in stdio.h on FreeBSD */
+#include <stdio.h> /* for getline() */
+
#include "sna.h"
#include <unistd.h>

View file

@ -1,28 +0,0 @@
--- src/sna/fb/fbpict.c.orig 2013-03-27 11:58:09 UTC
+++ src/sna/fb/fbpict.c
@@ -156,6 +156,16 @@ create_conical_gradient_image(PictGradie
gradient->nstops);
}
+static inline bool
+picture_has_clip(PicturePtr p)
+{
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+ return p->clientClip;
+#else
+ return p->clientClipType != CT_NONE;
+#endif
+}
+
static pixman_image_t *
create_bits_picture(PicturePtr pict, Bool has_clip, int *xoff, int *yoff)
{
@@ -180,7 +190,7 @@ create_bits_picture(PicturePtr pict, Boo
* only set the clip region for pictures with drawables
*/
if (has_clip) {
- if (pict->clientClipType != CT_NONE)
+ if (picture_has_clip(pict))
pixman_image_set_has_client_clip(image, TRUE);
if (*xoff || *yoff)

View file

@ -1,87 +1,12 @@
--- src/sna/kgem.c.orig 2013-08-20 20:26:26 UTC --- src/sna/kgem.c.orig 2014-12-09 17:08:21.000000000 +0100
+++ src/sna/kgem.c +++ src/sna/kgem.c 2015-11-19 00:06:27.883010000 +0100
@@ -25,6 +25,7 @@ @@ -29,6 +29,9 @@
*
*/
+#define _WITH_GETLINE
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
@@ -1873,7 +1874,8 @@ static void kgem_bo_move_to_snoop(struct
static struct kgem_bo *
search_snoop_cache(struct kgem *kgem, unsigned int num_pages, unsigned flags)
{
- struct kgem_bo *bo, *first = NULL;
+ struct kgem_bo *bo = NULL;
+ struct kgem_bo *first = NULL;
DBG(("%s: num_pages=%d, flags=%x\n", __FUNCTION__, num_pages, flags)); +#define _WITH_GETLINE /* to expose getline() in stdio.h on FreeBSD */
+#include <stdio.h> /* for getline() */
@@ -2087,7 +2089,8 @@ static bool kgem_retire__buffers(struct +
#include "sna.h"
static bool kgem_retire__flushing(struct kgem *kgem) #include "sna_reg.h"
{
- struct kgem_bo *bo, *next;
+ struct kgem_bo *bo = NULL;
+ struct kgem_bo *next;
bool retired = false;
list_for_each_entry_safe(bo, next, &kgem->flushing, request) {
@@ -2292,7 +2295,8 @@ bool __kgem_ring_is_idle(struct kgem *kg
static void kgem_commit(struct kgem *kgem)
{
struct kgem_request *rq = kgem->next_request;
- struct kgem_bo *bo, *next;
+ struct kgem_bo *bo = NULL;
+ struct kgem_bo *next;
list_for_each_entry_safe(bo, next, &rq->buffers, request) {
assert(next->request.prev == &bo->request);
@@ -2373,7 +2377,8 @@ static void kgem_close_inactive(struct k
static void kgem_finish_buffers(struct kgem *kgem)
{
- struct kgem_buffer *bo, *next;
+ struct kgem_buffer *bo = NULL;
+ struct kgem_buffer *next;
list_for_each_entry_safe(bo, next, &kgem->batch_buffers, base.list) {
DBG(("%s: buffer handle=%d, used=%d, exec?=%d, write=%d, mmapped=%s\n",
@@ -3254,7 +3259,8 @@ void kgem_cleanup_cache(struct kgem *kge
static struct kgem_bo *
search_linear_cache(struct kgem *kgem, unsigned int num_pages, unsigned flags)
{
- struct kgem_bo *bo, *first = NULL;
+ struct kgem_bo *bo = NULL;
+ struct kgem_bo *first = NULL;
bool use_active = (flags & CREATE_INACTIVE) == 0;
struct list *cache;
@@ -3867,7 +3873,7 @@ struct kgem_bo *kgem_create_2d(struct kg
uint32_t flags)
{
struct list *cache;
- struct kgem_bo *bo;
+ struct kgem_bo *bo = NULL;
uint32_t pitch, tiled_height, size;
uint32_t handle;
int i, bucket, retry;
@@ -5337,7 +5343,7 @@ void kgem_bo_sync__gtt(struct kgem *kgem
void kgem_clear_dirty(struct kgem *kgem)
{
struct list * const buffers = &kgem->next_request->buffers;
- struct kgem_bo *bo;
+ struct kgem_bo *bo = NULL;
list_for_each_entry(bo, buffers, request) {
if (!bo->gpu_dirty)
@@ -5613,7 +5619,7 @@ struct kgem_bo *kgem_create_buffer(struc
uint32_t size, uint32_t flags,
void **ret)
{
- struct kgem_buffer *bo;
+ struct kgem_buffer *bo = NULL;
unsigned offset, alloc;
struct kgem_bo *old;

View file

@ -1,43 +0,0 @@
--- src/sna/sna_composite.c.orig 2013-08-14 11:59:36 UTC
+++ src/sna/sna_composite.c
@@ -122,11 +122,21 @@ clip_to_dst(pixman_region16_t *region,
}
static inline bool
+picture_has_clip(PicturePtr p)
+{
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+ return p->clientClip;
+#else
+ return p->clientClipType != CT_NONE;
+#endif
+}
+
+static inline bool
clip_to_src(RegionPtr region, PicturePtr p, int dx, int dy)
{
bool result;
- if (p->clientClipType == CT_NONE)
+ if (!picture_has_clip(p))
return true;
pixman_region_translate(p->clientClip,
@@ -220,7 +230,7 @@ sna_compute_composite_region(RegionPtr r
__FUNCTION__,
src->pDrawable ? src->pDrawable->width : 0,
src->pDrawable ? src->pDrawable->height : 0,
- src->clientClipType,
+ picture_has_clip(src),
region->extents.x1, region->extents.y1,
region->extents.x2, region->extents.y2));
@@ -287,7 +297,7 @@ trim_extents(BoxPtr extents, const Pictu
static void
_trim_source_extents(BoxPtr extents, const PicturePtr p, int dx, int dy)
{
- if (p->clientClipType != CT_NONE)
+ if (picture_has_clip(p))
trim_extents(extents, p, dx, dy);
}

View file

@ -1,10 +0,0 @@
--- src/sna/sna_driver.c.orig 2015-03-05 09:44:44 UTC
+++ src/sna/sna_driver.c
@@ -769,6 +769,7 @@ static Bool sna_late_close_screen(CLOSE_
DBG(("%s\n", __FUNCTION__));
sna_accel_close(sna);
+ sna_video_close(sna);
depths = screen->allowedDepths;
for (d = 0; d < screen->numDepths; d++)

View file

@ -1,111 +0,0 @@
From 48a33fc379b17eed195875222ad773c911d9dff1 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris@chris-wilson.co.uk>
Date: Tue, 2 Sep 2014 19:08:36 +0100
Subject: sna/trapezoids: Use the corrected trapezoid origin for aligned boxes
The rule for the origin of the CompositeTrapezoids routine is the
upper-left corner of the first trapezoid. Care must be taken in case the
trapezoid edge is upside down to consider the upper vertex.
Reported-by: "Jasper St. Pierre" <jstpierre@mecheye.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
--- src/sna/sna_trapezoids.c.orig 2013-08-20 22:26:26.000000000 +0200
+++ src/sna/sna_trapezoids.c 2015-04-12 16:40:02.382938000 +0200
@@ -2690,13 +2690,16 @@
BoxRec stack_boxes[64], *boxes;
pixman_region16_t region, clip;
struct sna_composite_op tmp;
+ int16_t dst_x, dst_y;
bool ret = true;
int dx, dy, n, num_boxes;
if (NO_ALIGNED_BOXES)
return false;
- DBG(("%s\n", __FUNCTION__));
+ DBG(("%s: pixmap=%ld, nboxes=%d, dx=(%d, %d)\n", __FUNCTION__,
+ get_drawable_pixmap(dst->pDrawable)->drawable.serialNumber,
+ ntrap, dst->pDrawable->x, dst->pDrawable->y));
boxes = stack_boxes;
if (ntrap > (int)ARRAY_SIZE(stack_boxes)) {
@@ -2738,19 +2741,20 @@
if (num_boxes == 0)
goto free_boxes;
- DBG(("%s: extents (%d, %d), (%d, %d) offset of (%d, %d)\n",
+ trapezoid_origin(&traps[0].left, &dst_x, &dst_y);
+
+ DBG(("%s: extents (%d, %d), (%d, %d) offset of (%d, %d), origin (%d, %d)\n",
__FUNCTION__,
region.extents.x1, region.extents.y1,
region.extents.x2, region.extents.y2,
region.extents.x1 - boxes[0].x1,
- region.extents.y1 - boxes[0].y1));
-
- src_x += region.extents.x1 - boxes[0].x1;
- src_y += region.extents.y1 - boxes[0].y1;
+ region.extents.y1 - boxes[0].y1,
+ dst_x, dst_y));
if (!sna_compute_composite_region(&clip,
src, NULL, dst,
- src_x, src_y,
+ src_x + region.extents.x1 - dst_x - dx,
+ src_y + region.extents.y1 - dst_y - dy,
0, 0,
region.extents.x1 - dx, region.extents.y1 - dy,
region.extents.x2 - region.extents.x1,
@@ -2760,9 +2764,18 @@
goto done;
}
+ DBG(("%s: clipped extents (%d, %d), (%d, %d); now offset by (%d, %d), orgin (%d, %d)\n",
+ __FUNCTION__,
+ clip.extents.x1, clip.extents.y1,
+ clip.extents.x2, clip.extents.y2,
+ clip.extents.x1 - boxes[0].x1,
+ clip.extents.y1 - boxes[0].y1,
+ dst_x, dst_y));
+
if (force_fallback ||
!sna->render.composite(sna, op, src, NULL, dst,
- src_x, src_y,
+ src_x + clip.extents.x1 - dst_x,
+ src_y + clip.extents.y1 - dst_y,
0, 0,
clip.extents.x1, clip.extents.y1,
clip.extents.x2 - clip.extents.x1,
@@ -2796,6 +2809,8 @@
}
DBG(("%s: fbComposite()\n", __FUNCTION__));
+ src_x -= dst_x - dx;
+ src_y -= dst_y - dy;
if (maskFormat) {
pixman_region_init_rects(&region, boxes, num_boxes);
RegionIntersect(&region, &region, &clip);
@@ -2804,8 +2819,8 @@
count = REGION_NUM_RECTS(&region);
for (i = 0; i < count; i++) {
fbComposite(op, src, NULL, dst,
- src_x + b[i].x1 - boxes[0].x1,
- src_y + b[i].y1 - boxes[0].y1,
+ src_x + b[i].x1,
+ src_y + b[i].y1,
0, 0,
b[i].x1, b[i].y1,
b[i].x2 - b[i].x1, b[i].y2 - b[i].y1);
@@ -2819,8 +2834,8 @@
count = REGION_NUM_RECTS(&region);
for (i = 0; i < count; i++) {
fbComposite(op, src, NULL, dst,
- src_x + b[i].x1 - boxes[0].x1,
- src_y + b[i].y1 - boxes[0].y1,
+ src_x + b[i].x1,
+ src_y + b[i].y1,
0, 0,
b[i].x1, b[i].y1,
b[i].x2 - b[i].x1, b[i].y2 - b[i].y1);

View file

@ -1,82 +0,0 @@
--- src/sna/sna_video.c.orig 2015-03-05 09:45:32 UTC
+++ src/sna/sna_video.c
@@ -68,6 +68,7 @@
#else
static inline void sna_video_xvmc_setup(struct sna *sna, ScreenPtr ptr)
{
+ DBG(("%s: XvMC not compiled in\n"));
}
#endif
@@ -620,6 +621,7 @@ sna_xv_fixup_formats(ScreenPtr screen, X
return count;
}
+#if XORG_XV_VERSION < 2
static int
sna_xv_query_adaptors(ScreenPtr screen,
XvAdaptorPtr *adaptors,
@@ -636,20 +638,10 @@ static Bool
sna_xv_close_screen(CLOSE_SCREEN_ARGS_DECL)
{
struct sna *sna = to_sna_from_screen(screen);
- int i;
-
- for (i = 0; i < sna->xv.num_adaptors; i++) {
- free(sna->xv.adaptors[i].pPorts->devPriv.ptr);
- free(sna->xv.adaptors[i].pPorts);
- free(sna->xv.adaptors[i].pEncodings);
- }
- free(sna->xv.adaptors);
-
- sna->xv.adaptors = NULL;
- sna->xv.num_adaptors = 0;
-
+ sna_video_close(sna);
return TRUE;
}
+#endif
void sna_video_init(struct sna *sna, ScreenPtr screen)
{
@@ -671,8 +663,10 @@ void sna_video_init(struct sna *sna, Scr
return;
xv = to_xv(screen);
+#if XORG_XV_VERSION < 2
xv->ddCloseScreen = sna_xv_close_screen;
xv->ddQueryAdaptors = sna_xv_query_adaptors;
+#endif
sna_video_textured_setup(sna, screen);
sna_video_sprite_setup(sna, screen);
@@ -698,7 +692,28 @@ void sna_video_destroy_window(WindowPtr
XvPortPtr port;
port = sna_window_get_port(win);
- if (port)
+ if (port) {
+#if XORG_XV_VERSION < 2
port->pAdaptor->ddStopVideo(NULL, port, &win->drawable);
+#else
+ port->pAdaptor->ddStopVideo(port, &win->drawable);
+#endif
+ }
assert(sna_window_get_port(win) == NULL);
}
+
+void sna_video_close(struct sna *sna)
+{
+ int i;
+
+ for (i = 0; i < sna->xv.num_adaptors; i++) {
+ free(sna->xv.adaptors[i].pPorts->devPriv.ptr);
+ free(sna->xv.adaptors[i].pPorts);
+ free(sna->xv.adaptors[i].pEncodings);
+ }
+ free(sna->xv.adaptors);
+
+ sna->xv.adaptors = NULL;
+ sna->xv.num_adaptors = 0;
+}
+

View file

@ -1,10 +0,0 @@
--- src/sna/sna_video.h.orig 2015-03-05 09:53:01 UTC
+++ src/sna/sna_video.h
@@ -129,6 +129,7 @@ void sna_video_overlay_setup(struct sna
void sna_video_sprite_setup(struct sna *sna, ScreenPtr screen);
void sna_video_textured_setup(struct sna *sna, ScreenPtr screen);
void sna_video_destroy_window(WindowPtr win);
+void sna_video_close(struct sna *sna);
XvAdaptorPtr sna_xv_adaptor_alloc(struct sna *sna);
int sna_xv_fixup_formats(ScreenPtr screen,

View file

@ -1,101 +0,0 @@
--- src/sna/sna_video_overlay.c.orig 2015-03-05 09:54:32 UTC
+++ src/sna/sna_video_overlay.c
@@ -121,9 +121,7 @@ static bool sna_video_overlay_update_att
return drmIoctl(video->sna->kgem.fd, DRM_IOCTL_I915_OVERLAY_ATTRS, &attrs) == 0;
}
-static int sna_video_overlay_stop(ClientPtr client,
- XvPortPtr port,
- DrawablePtr draw)
+static int sna_video_overlay_stop(ddStopVideo_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -148,10 +146,7 @@ static int sna_video_overlay_stop(Client
}
static int
-sna_video_overlay_set_attribute(ClientPtr client,
- XvPortPtr port,
- Atom attribute,
- INT32 value)
+sna_video_overlay_set_attribute(ddSetPortAttribute_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -270,12 +265,7 @@ sna_video_overlay_get_attribute(ClientPt
}
static int
-sna_video_overlay_best_size(ClientPtr client,
- XvPortPtr port,
- CARD8 motion,
- CARD16 vid_w, CARD16 vid_h,
- CARD16 drw_w, CARD16 drw_h,
- unsigned int *p_w, unsigned int *p_h)
+sna_video_overlay_best_size(ddQueryBestSize_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -464,18 +454,7 @@ sna_video_overlay_show(struct sna *sna,
}
static int
-sna_video_overlay_put_image(ClientPtr client,
- DrawablePtr draw,
- XvPortPtr port,
- GCPtr gc,
- INT16 src_x, INT16 src_y,
- CARD16 src_w, CARD16 src_h,
- INT16 drw_x, INT16 drw_y,
- CARD16 drw_w, CARD16 drw_h,
- XvImagePtr format,
- unsigned char *buf,
- Bool sync,
- CARD16 width, CARD16 height)
+sna_video_overlay_put_image(ddPutImage_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -604,18 +583,16 @@ invisible:
/*
* If the video isn't visible on any CRTC, turn it off
*/
+#if XORG_XV_VERSION < 2
sna_video_overlay_stop(client, port, draw);
+#else
+ sna_video_overlay_stop(port, draw);
+#endif
return Success;
}
static int
-sna_video_overlay_query(ClientPtr client,
- XvPortPtr port,
- XvImagePtr format,
- unsigned short *w,
- unsigned short *h,
- int *pitches,
- int *offsets)
+sna_video_overlay_query(ddQueryImageAttributes_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna_video_frame frame;
@@ -771,8 +748,10 @@ void sna_video_overlay_setup(struct sna
adaptor->pAttributes = (XvAttributeRec *)Attributes;
adaptor->nImages = ARRAY_SIZE(Images);
adaptor->pImages = (XvImageRec *)Images;
+#if XORG_XV_VERSION < 2
adaptor->ddAllocatePort = sna_xv_alloc_port;
adaptor->ddFreePort = sna_xv_free_port;
+#endif
adaptor->ddPutVideo = NULL;
adaptor->ddPutStill = NULL;
adaptor->ddGetVideo = NULL;
@@ -843,4 +822,6 @@ void sna_video_overlay_setup(struct sna
}
sna_video_overlay_update_attrs(video);
+
+ DBG(("%s: '%s' initialized %d ports\n", __FUNCTION__, adaptor->name, adaptor->nPorts));
}

View file

@ -1,114 +0,0 @@
--- src/sna/sna_video_sprite.c.orig 2015-03-05 10:02:08 UTC
+++ src/sna/sna_video_sprite.c
@@ -56,9 +56,7 @@ static const XvAttributeRec attribs[] =
{ XvSettable | XvGettable, 0, 0xffffff, (char *)"XV_COLORKEY" },
};
-static int sna_video_sprite_stop(ClientPtr client,
- XvPortPtr port,
- DrawablePtr draw)
+static int sna_video_sprite_stop(ddStopVideo_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct drm_mode_set_plane s;
@@ -82,10 +80,7 @@ static int sna_video_sprite_stop(ClientP
return Success;
}
-static int sna_video_sprite_set_attr(ClientPtr client,
- XvPortPtr port,
- Atom attribute,
- INT32 value)
+static int sna_video_sprite_set_attr(ddSetPortAttribute_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
@@ -104,10 +99,7 @@ static int sna_video_sprite_set_attr(Cli
return Success;
}
-static int sna_video_sprite_get_attr(ClientPtr client,
- XvPortPtr port,
- Atom attribute,
- INT32 *value)
+static int sna_video_sprite_get_attr(ddGetPortAttribute_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
@@ -121,13 +113,7 @@ static int sna_video_sprite_get_attr(Cli
return Success;
}
-static int sna_video_sprite_best_size(ClientPtr client,
- XvPortPtr port,
- CARD8 motion,
- CARD16 vid_w, CARD16 vid_h,
- CARD16 drw_w, CARD16 drw_h,
- unsigned int *p_w,
- unsigned int *p_h)
+static int sna_video_sprite_best_size(ddQueryBestSize_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -310,18 +296,7 @@ sna_video_sprite_show(struct sna *sna,
return true;
}
-static int sna_video_sprite_put_image(ClientPtr client,
- DrawablePtr draw,
- XvPortPtr port,
- GCPtr gc,
- INT16 src_x, INT16 src_y,
- CARD16 src_w, CARD16 src_h,
- INT16 drw_x, INT16 drw_y,
- CARD16 drw_w, CARD16 drw_h,
- XvImagePtr format,
- unsigned char *buf,
- Bool sync,
- CARD16 width, CARD16 height)
+static int sna_video_sprite_put_image(ddPutImage_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -430,16 +405,14 @@ static int sna_video_sprite_put_image(Cl
invisible:
/* If the video isn't visible on any CRTC, turn it off */
+#if XORG_XV_VERSION < 2
return sna_video_sprite_stop(client, port, draw);
+#else
+ return sna_video_sprite_stop(port, draw);
+#endif
}
-static int sna_video_sprite_query(ClientPtr client,
- XvPortPtr port,
- XvImagePtr format,
- unsigned short *w,
- unsigned short *h,
- int *pitches,
- int *offsets)
+static int sna_video_sprite_query(ddQueryImageAttributes_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna_video_frame frame;
@@ -548,8 +521,10 @@ void sna_video_sprite_setup(struct sna *
if (sna->kgem.gen == 071)
adaptor->nImages = 4;
+#if XORG_XV_VERSION < 2
adaptor->ddAllocatePort = sna_xv_alloc_port;
adaptor->ddFreePort = sna_xv_free_port;
+#endif
adaptor->ddPutVideo = NULL;
adaptor->ddPutStill = NULL;
adaptor->ddGetVideo = NULL;
@@ -593,6 +568,8 @@ void sna_video_sprite_setup(struct sna *
xvColorKey = MAKE_ATOM("XV_COLORKEY");
xvAlwaysOnTop = MAKE_ATOM("XV_ALWAYS_ON_TOP");
+
+ DBG(("%s: '%s' initialized %d ports\n", __FUNCTION__, adaptor->name, adaptor->nPorts));
}
#else
void sna_video_sprite_setup(struct sna *sna, ScreenPtr screen)

View file

@ -1,105 +0,0 @@
--- src/sna/sna_video_textured.c.orig 2015-03-05 10:08:42 UTC
+++ src/sna/sna_video_textured.c
@@ -56,9 +56,7 @@ static const XvImageRec Images[] = {
XVMC_YUV,
};
-static int sna_video_textured_stop(ClientPtr client,
- XvPortPtr port,
- DrawablePtr draw)
+static int sna_video_textured_stop(ddStopVideo_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
@@ -71,10 +69,7 @@ static int sna_video_textured_stop(Clien
}
static int
-sna_video_textured_set_attribute(ClientPtr client,
- XvPortPtr port,
- Atom attribute,
- INT32 value)
+sna_video_textured_set_attribute(ddSetPortAttribute_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
@@ -100,10 +95,7 @@ sna_video_textured_set_attribute(ClientP
}
static int
-sna_video_textured_get_attribute(ClientPtr client,
- XvPortPtr port,
- Atom attribute,
- INT32 *value)
+sna_video_textured_get_attribute(ddGetPortAttribute_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
@@ -120,13 +112,7 @@ sna_video_textured_get_attribute(ClientP
}
static int
-sna_video_textured_best_size(ClientPtr client,
- XvPortPtr port,
- CARD8 motion,
- CARD16 vid_w, CARD16 vid_h,
- CARD16 drw_w, CARD16 drw_h,
- unsigned int *p_w,
- unsigned int *p_h)
+sna_video_textured_best_size(ddQueryBestSize_ARGS)
{
if (vid_w > (drw_w << 1))
drw_w = vid_w >> 1;
@@ -153,18 +139,7 @@ sna_video_textured_best_size(ClientPtr c
* compositing. It's a new argument to the function in the 1.1 server.
*/
static int
-sna_video_textured_put_image(ClientPtr client,
- DrawablePtr draw,
- XvPortPtr port,
- GCPtr gc,
- INT16 src_x, INT16 src_y,
- CARD16 src_w, CARD16 src_h,
- INT16 drw_x, INT16 drw_y,
- CARD16 drw_w, CARD16 drw_h,
- XvImagePtr format,
- unsigned char *buf,
- Bool sync,
- CARD16 width, CARD16 height)
+sna_video_textured_put_image(ddPutImage_ARGS)
{
struct sna_video *video = port->devPriv.ptr;
struct sna *sna = video->sna;
@@ -269,13 +244,7 @@ sna_video_textured_put_image(ClientPtr c
}
static int
-sna_video_textured_query(ClientPtr client,
- XvPortPtr port,
- XvImagePtr format,
- unsigned short *w,
- unsigned short *h,
- int *pitches,
- int *offsets)
+sna_video_textured_query(ddQueryImageAttributes_ARGS)
{
int size, tmp;
@@ -384,8 +353,10 @@ void sna_video_textured_setup(struct sna
adaptor->pAttributes = (XvAttributeRec *)Attributes;
adaptor->nImages = ARRAY_SIZE(Images);
adaptor->pImages = (XvImageRec *)Images;
+#if XORG_XV_VERSION < 2
adaptor->ddAllocatePort = sna_xv_alloc_port;
adaptor->ddFreePort = sna_xv_free_port;
+#endif
adaptor->ddPutVideo = NULL;
adaptor->ddPutStill = NULL;
adaptor->ddGetVideo = NULL;
@@ -426,4 +397,6 @@ void sna_video_textured_setup(struct sna
xvBrightness = MAKE_ATOM("XV_BRIGHTNESS");
xvContrast = MAKE_ATOM("XV_CONTRAST");
xvSyncToVblank = MAKE_ATOM("XV_SYNC_TO_VBLANK");
+
+ DBG(("%s: '%s' initialized %d ports\n", __FUNCTION__, adaptor->name, adaptor->nPorts));
}

View file

@ -1,3 +1,10 @@
Driver for Intel integrated graphics chipsets. It supports the i810, Driver for Intel(R) Integrated Graphics Chipsets:
i810-DC100, i810e, i815, i830M, 845G, 852GM, 855GM, 865G, 915G, 915GM, i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
945G, 945GM, 965G, 965Q, 946GZ and 965GM chipsets. 915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
Driver for Intel(R) HD Graphics: 2000-5000
Driver for Intel(R) Iris(TM) Graphics: 5100
Driver for Intel(R) Iris(TM) Pro Graphics: 5200
WWW: http://www.intellinuxgraphics.com/

View file

@ -2,14 +2,13 @@
PORTNAME= xf86-video-mach64 PORTNAME= xf86-video-mach64
PORTVERSION= 6.9.5 PORTVERSION= 6.9.5
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org mach64 display driver COMMENT= X.Org mach64 display driver
USE_GL= gl USE_GL= gl
XORG_CAT= driver XORG_CAT= driver
USE_XORG= glproto xf86driproto xf86miscproto
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-mga PORTNAME= xf86-video-mga
PORTVERSION= 1.6.5 PORTVERSION= 1.6.5
PORTREVISION= 1
PORTEPOCH= 3 PORTEPOCH= 3
CATEGORIES= x11-drivers CATEGORIES= x11-drivers

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-neomagic PORTNAME= xf86-video-neomagic
PORTVERSION= 1.2.9 PORTVERSION= 1.2.9
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -0,0 +1,13 @@
# Double in, double out; use fabs
#
--- src/neo_driver.c.orig 2016-11-25 03:32:57 UTC
+++ src/neo_driver.c
@@ -2952,7 +2952,7 @@ neoCalcVCLK(ScrnInfoPtr pScrn, long freq
for (n = 0; n <= MAX_N; n++)
for (d = 1; d <= MAX_D; d++) {
f_out = (n+1.0)/((d+1.0)*(1<<f))*REF_FREQ;
- f_diff = abs(f_out-f_target);
+ f_diff = fabs(f_out-f_target);
if (f_diff < f_best_diff) {
f_best_diff = f_diff;
n_best = n;

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-nv PORTNAME= xf86-video-nv
PORTVERSION= 2.1.21 PORTVERSION= 2.1.21
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-openchrome PORTNAME= xf86-video-openchrome
PORTVERSION= 0.5.0 PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,7 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-video-r128 PORTNAME= xf86-video-r128
PORTVERSION= 6.10.1 PORTVERSION= 6.10.2
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -12,6 +12,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_GL= gl USE_GL= gl
XORG_CAT= driver XORG_CAT= driver
USE_XORG= glproto xf86driproto xf86miscproto xineramaproto USE_XORG= xf86miscproto
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1484351416 TIMESTAMP = 1484717021
SHA256 (xorg/driver/xf86-video-r128-6.10.1.tar.bz2) = 5ebfef49831c9b12f7b7011c8314010596ac2ab0d5b9b7cfd17908e93d7de4ea SHA256 (xorg/driver/xf86-video-r128-6.10.2.tar.bz2) = 84da21517f3af7617fdf341e84ccb22444d6cdab1647e4808fa631528b9a77de
SIZE (xorg/driver/xf86-video-r128-6.10.1.tar.bz2) = 495306 SIZE (xorg/driver/xf86-video-r128-6.10.2.tar.bz2) = 504031

View file

@ -0,0 +1,94 @@
# Correct type in format strings
#
--- src/r128_dri.c.orig 2017-01-17 22:42:44 UTC
+++ src/r128_dri.c
@@ -500,7 +500,7 @@ static Bool R128DRIAgpInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] %d kB allocated with handle 0x%08x\n",
+ "[agp] %d kB allocated with handle 0x%08lx\n",
info->agpSize*1024, info->agpMemHandle);
if (drmAgpBind(info->drmFD, info->agpMemHandle, info->agpOffset) < 0) {
@@ -540,7 +540,7 @@ static Bool R128DRIAgpInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] ring handle = 0x%08x\n", info->ringHandle);
+ "[agp] ring handle = 0x%08lx\n", info->ringHandle);
if (drmMap(info->drmFD, info->ringHandle, info->ringMapSize,
&info->ring) < 0) {
@@ -558,7 +558,7 @@ static Bool R128DRIAgpInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] ring read ptr handle = 0x%08x\n",
+ "[agp] ring read ptr handle = 0x%08lx\n",
info->ringReadPtrHandle);
if (drmMap(info->drmFD, info->ringReadPtrHandle, info->ringReadMapSize,
@@ -578,7 +578,7 @@ static Bool R128DRIAgpInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] vertex/indirect buffers handle = 0x%08x\n",
+ "[agp] vertex/indirect buffers handle = 0x%08lx\n",
info->bufHandle);
if (drmMap(info->drmFD, info->bufHandle, info->bufMapSize,
@@ -598,7 +598,7 @@ static Bool R128DRIAgpInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[agp] AGP texture map handle = 0x%08x\n",
+ "[agp] AGP texture map handle = 0x%08lx\n",
info->agpTexHandle);
if (drmMap(info->drmFD, info->agpTexHandle, info->agpTexMapSize,
@@ -660,7 +660,7 @@ static Bool R128DRIPciInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[pci] %d kB allocated with handle 0x%08x\n",
+ "[pci] %d kB allocated with handle 0x%08lx\n",
info->agpSize*1024, info->pciMemHandle);
/* Initialize the CCE ring buffer data */
@@ -684,7 +684,7 @@ static Bool R128DRIPciInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[pci] ring handle = 0x%08x\n", info->ringHandle);
+ "[pci] ring handle = 0x%08lx\n", info->ringHandle);
if (drmMap(info->drmFD, info->ringHandle, info->ringMapSize,
&info->ring) < 0) {
@@ -705,7 +705,7 @@ static Bool R128DRIPciInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[pci] ring read ptr handle = 0x%08x\n",
+ "[pci] ring read ptr handle = 0x%08lx\n",
info->ringReadPtrHandle);
if (drmMap(info->drmFD, info->ringReadPtrHandle, info->ringReadMapSize,
@@ -728,7 +728,7 @@ static Bool R128DRIPciInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[pci] vertex/indirect buffers handle = 0x%08x\n",
+ "[pci] vertex/indirect buffers handle = 0x%08lx\n",
info->bufHandle);
if (drmMap(info->drmFD, info->bufHandle, info->bufMapSize,
@@ -829,7 +829,7 @@ static Bool R128DRIMapInit(R128InfoPtr i
return FALSE;
}
xf86DrvMsg(pScreen->myNum, X_INFO,
- "[drm] register handle = 0x%08x\n", info->registerHandle);
+ "[drm] register handle = 0x%08lx\n", info->registerHandle);
return TRUE;
}

View file

@ -1,8 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= xf86-video-rendition PORTNAME= xf86-video-rendition
PORTVERSION= 4.2.5 PORTVERSION= 4.2.6
PORTREVISION= 7
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -1,2 +1,3 @@
SHA256 (xorg/driver/xf86-video-rendition-4.2.5.tar.bz2) = 39b5569338237de6e17b2a2c6be73ac6c405ee596079c41a7028cfd6e54134cb TIMESTAMP = 1480082861
SIZE (xorg/driver/xf86-video-rendition-4.2.5.tar.bz2) = 356351 SHA256 (xorg/driver/xf86-video-rendition-4.2.6.tar.bz2) = 660ecf21f65a4d6002c1b603d62c314f8e9624d208db5b346850b0df9dc2f9a8
SIZE (xorg/driver/xf86-video-rendition-4.2.6.tar.bz2) = 362408

View file

@ -1,51 +1,13 @@
--- src/rendition.c.orig 2015-10-11 22:31:51.242126000 +0200 # Correct a string that should be const
+++ src/rendition.c 2015-10-11 22:32:20.465605000 +0200 #
@@ -1173,7 +1173,6 @@ renditionScreenInit(SCREEN_INIT_ARGS_DEC --- src/rendition.c.orig 2014-09-30 14:21:44 UTC
fbPictureInit (pScreen, 0, 0); +++ src/rendition.c
@@ -480,7 +480,7 @@ renditionPreInit(ScrnInfoPtr pScreenInfo
MessageType From;
int videoRam, Rounding, nModes = 0;
renditionPtr pRendition;
- char *in_string;
+ const char *in_string;
vgaHWPtr pvgaHW;
xf86SetBlackWhitePixels(pScreen); #ifdef DEBUG
- miInitializeBackingStore(pScreen);
/*********************************************************/
/* The actual setup of the driver-specific code */
@@ -1372,6 +1371,18 @@ renditionMapMem(ScrnInfoPtr pScreenInfo)
/* Override on users request */
WriteCombine
= xf86ReturnOptValBool(pRendition->Options, OPTION_FBWC, WriteCombine);
+#ifdef XSERVER_LIBPCIACCESS
+ mapOption = PCI_DEV_MAP_FLAG_WRITABLE;
+ if (WriteCombine)
+ mapOption |= PCI_DEV_MAP_FLAG_WRITE_COMBINE;
+
+ err = pci_device_map_range(pRendition->PciInfo,
+ pRendition->PciInfo->regions[0].base_addr,
+ pRendition->PciInfo->regions[0].size,
+ mapOption, (void *)&pRendition->board.vmem_base);
+
+ return (err == 0);
+#else
if (WriteCombine) {
xf86DrvMsg(pScreenInfo->scrnIndex, X_CONFIG,
("Requesting Write-Combined memory access\n"));
@@ -1382,12 +1393,6 @@ renditionMapMem(ScrnInfoPtr pScreenInfo)
mapOption = VIDMEM_MMIO;
}
-#ifdef XSERVER_LIBPCIACCESS
- err = pci_device_map_region(pRendition->PciInfo, 0, TRUE);
- pRendition->board.vmem_base = pRendition->PciInfo->regions[0].memory;
-
- return (err == 0);
-#else
pRendition->board.vmem_base=
xf86MapPciMem(pScreenInfo->scrnIndex, mapOption,
pRendition->pcitag,
@@ -1416,7 +1421,7 @@ renditionUnmapMem(ScrnInfoPtr pScreenInf
#else
pci_device_unmap_range(pRendition->PciInfo,
pRendition->board.vmem_base,
- pScreenInfo->videoRam * 1024);
+ pRendition->PciInfo->regions[0].size);
#endif
return TRUE;
#ifdef DEBUG0

View file

@ -1,31 +0,0 @@
--- src/rendition.h.orig 2015-10-11 22:31:54.085176000 +0200
+++ src/rendition.h 2015-10-11 22:32:12.657760000 +0200
@@ -14,9 +14,6 @@
/* Everything using inb/outb, etc needs "compiler.h" */
#include "compiler.h"
-/* Drivers for PCI hardware need this */
-#include "xf86PciInfo.h"
-
/* Drivers that need to access the PCI config space directly need this */
#include "xf86Pci.h"
@@ -28,9 +25,6 @@
/* All drivers initialising the SW cursor need this */
#include "mipointer.h"
-/* All drivers implementing backing store need this */
-#include "mibstore.h"
-
/* All drivers using the mi colormap manipulation need this */
#include "micmap.h"
@@ -69,4 +63,8 @@
#include "compat-api.h"
/* end of __RENDITION_H__ */
+
+#define PCI_CHIP_V1000 0x0001
+#define PCI_CHIP_V2x00 0x2000
+
#endif

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-s3 PORTNAME= xf86-video-s3
PORTVERSION= 0.6.5 PORTVERSION= 0.6.5
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-s3virge PORTNAME= xf86-video-s3virge
PORTVERSION= 1.10.7 PORTVERSION= 1.10.7
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-savage PORTNAME= xf86-video-savage
PORTVERSION= 2.3.9 PORTVERSION= 2.3.9
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -3,7 +3,7 @@
PORTNAME= xf86-video-scfb PORTNAME= xf86-video-scfb
PORTVERSION= 0.0.4 PORTVERSION= 0.0.4
PORTREVISION= 3 PORTREVISION= 4
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= ray@FreeBSD.org MAINTAINER= ray@FreeBSD.org
@ -12,14 +12,6 @@ COMMENT= X.Org syscons display driver
USE_GITHUB= yes USE_GITHUB= yes
GH_ACCOUNT= rayddteam GH_ACCOUNT= rayddteam
USES= libtool pkgconfig XORG_CAT= driver
GNU_CONFIGURE= yes
DIST_SUBDIR= xorg/driver
USE_XORG= xorg-server xproto randrproto xi renderproto xextproto \
inputproto kbproto fontsproto videoproto dri2proto \
xf86driproto glproto xineramaproto resourceproto \
scrnsaverproto presentproto
CONFIGURE_ENV= DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR='$$(mandir)/man4'
INSTALL_TARGET= install-strip
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -58,6 +58,17 @@
#endif #endif
return mapaddr; return mapaddr;
} }
@@ -366,8 +367,8 @@ ScfbPreInit(ScrnInfoPtr pScrn, int flags
struct fbtype fb;
int default_depth, wstype;
const char *dev;
- char *mod = NULL, *s;
- const char *reqSym = NULL;
+ char *mod = NULL;
+ const char *reqSym = NULL, *s;
Gamma zeros = {0.0, 0.0, 0.0};
DisplayModePtr mode;
@@ -633,9 +634,9 @@ ScfbShadowInit(ScreenPtr pScreen) @@ -633,9 +634,9 @@ ScfbShadowInit(ScreenPtr pScreen)
} }

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-siliconmotion PORTNAME= xf86-video-siliconmotion
PORTVERSION= 1.7.9 PORTVERSION= 1.7.9
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,16 +2,15 @@
PORTNAME= xf86-video-sunffb PORTNAME= xf86-video-sunffb
PORTVERSION= 1.2.2 PORTVERSION= 1.2.2
PORTREVISION= 6 PORTREVISION= 7
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org sunffb display driver COMMENT= X.Org sunffb display driver
USE_GL= gl USE_GL= gl
XORG_CAT= driver XORG_CAT= driver
USE_XORG= xf86driproto xextproto glproto
ONLY_FOR_ARCHS= sparc64 ONLY_FOR_ARCHS= sparc64
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-tdfx PORTNAME= xf86-video-tdfx
PORTVERSION= 1.4.7 PORTVERSION= 1.4.7
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-trident PORTNAME= xf86-video-trident
PORTVERSION= 1.3.8 PORTVERSION= 1.3.8
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-tseng PORTNAME= xf86-video-tseng
PORTVERSION= 1.2.5 PORTVERSION= 1.2.5
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-vesa PORTNAME= xf86-video-vesa
PORTVERSION= 2.3.4 PORTVERSION= 2.3.4
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -2,6 +2,7 @@
PORTNAME= xf86-video-vmware PORTNAME= xf86-video-vmware
PORTVERSION= 13.2.1 PORTVERSION= 13.2.1
PORTREVISION= 1
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -10,10 +11,9 @@ COMMENT= X.Org vmware display driver
LICENSE= MIT LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
INSTALL_TARGET= install-strip
XORG_CAT= driver XORG_CAT= driver
USE_XORG= xextproto xineramaproto videoproto
BROKEN_aarch64= Fails to compile: implicit declaration of function outl is invalid in C99 ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= The vmware gfx protocol is only supported on x86-compatible architectures.
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -2,7 +2,7 @@
PORTNAME= xf86-video-voodoo PORTNAME= xf86-video-voodoo
PORTVERSION= 1.2.5 PORTVERSION= 1.2.5
PORTREVISION= 7 PORTREVISION= 8
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org

View file

@ -4,9 +4,7 @@ Date: Mon, 22 Sep 2014 10:56:02 +1000
Subject: don't use PCITAG in struct anymore Subject: don't use PCITAG in struct anymore
diff --git a/src/voodoo.h b/src/voodoo.h --- src/voodoo.h.orig 2012-07-17 05:21:17 UTC
index bfed497..c3eb64e 100644
--- src/voodoo.h
+++ src/voodoo.h +++ src/voodoo.h
@@ -23,7 +23,9 @@ typedef struct { @@ -23,7 +23,9 @@ typedef struct {
@ -18,6 +16,3 @@ index bfed497..c3eb64e 100644
CARD32 PhysBase; CARD32 PhysBase;
CARD32 Width; /* Current width */ CARD32 Width; /* Current width */
--
cgit v0.10.2

View file

@ -0,0 +1,12 @@
# Remove obsolete function call
#
--- src/voodoo_driver.c.orig 2016-11-25 18:37:43 UTC
+++ src/voodoo_driver.c
@@ -680,7 +680,6 @@ VoodooScreenInit(SCREEN_INIT_ARGS_DECL)
if(pVoo->Accel)
Voodoo2XAAInit(pScreen);
- miInitializeBackingStore(pScreen);
xf86SetBackingStore(pScreen);

View file

@ -0,0 +1,17 @@
# Fix fubar code that worked by accident
#
--- src/voodoo_hardware.c.orig 2016-11-25 18:41:04 UTC
+++ src/voodoo_hardware.c
@@ -390,10 +390,10 @@ static int voodoo_find_dac(VoodooPtr pVo
device_id = dac_in(pVoo, 2);
/* AT&T 20C409 and clones */
- if(vendor_id == DAC_VENDOR_ATT && DAC_DEVICE_ATT20C409)
+ if(vendor_id == DAC_VENDOR_ATT && device_id == DAC_DEVICE_ATT20C409)
return DAC_ID_ATT;
- if(vendor_id == DAC_VENDOR_TI && DAC_DEVICE_TITVP3409)
+ if(vendor_id == DAC_VENDOR_TI && device_id == DAC_DEVICE_TITVP3409)
return DAC_ID_TI;
/* ICS5432 doesn't implement the back door. Glide does some

View file

@ -2,7 +2,7 @@
PORTNAME= xorg-drivers PORTNAME= xorg-drivers
PORTVERSION= 7.7 PORTVERSION= 7.7
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= x11-drivers CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org MAINTAINER= x11@FreeBSD.org
@ -13,51 +13,52 @@ INPUTDIR= ${LOCALBASE}/lib/xorg/modules/input
USES= metaport USES= metaport
INPUT_DRIVERS= mouse \ INPUT_DRIVERS= acecad \
keyboard \ egalax \
acecad \
elographics \ elographics \
evdev \
fpit \
hyperpen \ hyperpen \
joystick \ joystick \
keyboard \
mouse \
mutouch \ mutouch \
penmount \ penmount \
synaptics \ synaptics \
vmmouse \
void \ void \
wacom wacom
VIDEO_DRIVERS= mach64 \ VIDEO_DRIVERS= apm \
nv \
r128 \
vesa \
apm \
ark \ ark \
ast \ ast \
chips \ chips \
cirrus \
dummy \ dummy \
glint \ glint \
i128 \ i128 \
i740 \ i740 \
mach64 \
mga \ mga \
neomagic \ neomagic \
nv \
openchrome \
r128 \
rendition \ rendition \
s3 \ s3 \
s3virge \ s3virge \
savage \ savage \
scfb \
siliconmotion \ siliconmotion \
sis \ sis \
tdfx \ tdfx \
trident \ trident \
tseng \ tseng \
vmware \ vesa \
voodoo voodoo
OPTIONS_DEFAULT= MOUSE \ OPTIONS_DEFAULT= KEYBOARD \
KEYBOARD \ MOUSE \
MACH64 \ SCFB
NV \
R128 \
VESA
.for type in input video .for type in input video
. for a in ${${type:tu}_DRIVERS} . for a in ${${type:tu}_DRIVERS}
@ -66,22 +67,22 @@ ${a:tu}_DESC= Install ${a} ${type} driver
. endfor . endfor
.endfor .endfor
OPTIONS_DEFINE_i386= ATI INTEL OPENCHROME OPTIONS_DEFINE_amd64= AMDGPU ATI INTEL VMMOUSE VMWARE
OPTIONS_DEFAULT_i386= ATI INTEL OPENCHROME OPTIONS_DEFAULT_amd64= VESA
OPTIONS_DEFINE_amd64:= ${OPTIONS_DEFINE_i386} OPTIONS_DEFINE_i386:= ${OPTIONS_DEFINE_amd64} GEODE
OPTIONS_DEFAULT_amd64:= ${OPTIONS_DEFAULT_i386} OPTIONS_DEFAULT_i386:= ${OPTIONS_DEFAULT_amd64}
OPTIONS_DEFINE_sparc64= SUNFFB OPTIONS_DEFINE_sparc64= SUNFFB
OPTIONS_DEFAULT_sparc64=SUNFFB OPTIONS_DEFAULT_sparc64=SUNFFB
OPTIONS_DEFINE_ia64= OPENCHROME AMDGPU_DESC= Install amdgpu video driver
OPTIONS_DEFAULT_ia64= OPENCHROME ATI_DESC= Install ati (radeon) video driver
GEODE_DESC= Install geode video driver
ATI_DESC= Install ati video driver
INTEL_DESC= Install intel video driver INTEL_DESC= Install intel video driver
OPENCHROME_DESC= Install openchrome video driver
SUNFFB_DESC= Install sunffb video driver SUNFFB_DESC= Install sunffb video driver
VMMOUSE_DESC= Install vmmouse input driver
VMWARE_DESC= Install vmware video driver
# these drivers have a different module name compared to the plugin they install # these drivers have a different module name compared to the plugin they install
QUIRKS= keyboard:kbd QUIRKS= keyboard:kbd
@ -90,7 +91,12 @@ QUIRKS= keyboard:kbd
# Manual add arch specific drivers so they be added to depend lines. # Manual add arch specific drivers so they be added to depend lines.
.if ${ARCH}==i386 || ${ARCH}==amd64 .if ${ARCH}==i386 || ${ARCH}==amd64
VIDEO_DRIVERS+= ati intel openchrome INPUT_DRIVERS+= vmmouse
VIDEO_DRIVERS+= amdgpu ati intel vmware
.endif
.if ${ARCH}==i386
VIDEO_DRIVERS+= geode
.endif .endif
.if ${ARCH}==sparc64 .if ${ARCH}==sparc64

View file

@ -4,30 +4,28 @@ PORTNAME= xephyr
COMMENT= X server from X.Org based on kdrive COMMENT= X server from X.Org based on kdrive
LICENSE= MIT
LIB_DEPENDS+= libxcb-image.so:x11/xcb-util-image \ LIB_DEPENDS+= libxcb-image.so:x11/xcb-util-image \
libxcb-icccm.so:x11/xcb-util-wm \ libxcb-icccm.so:x11/xcb-util-wm \
libxcb-keysyms.so:x11/xcb-util-keysyms \ libxcb-keysyms.so:x11/xcb-util-keysyms \
libxcb-render-util.so:x11/xcb-util-renderutil libxcb-render-util.so:x11/xcb-util-renderutil \
libxcb-util.so:x11/xcb-util
MASTERDIR= ${.CURDIR}/../xorg-server MASTERDIR= ${.CURDIR}/../xorg-server
DESCR= ${.CURDIR}/pkg-descr DESCR= ${.CURDIR}/pkg-descr
USE_XORG= x11 xf86driproto glproto randrproto renderproto fixesproto \
dri2proto damageproto xcmiscproto xtrans inputproto \
xf86bigfontproto scrnsaverproto bigreqsproto \
resourceproto fontsproto videoproto \
compositeproto trapproto recordproto \
xineramaproto xinerama evieproto xkbfile xfont \
xau xdmcp xext fontenc xv pixman presentproto
CONFIGURE_ARGS= --enable-kdrive --enable-xephyr --disable-dmx --disable-xvfb \
--without-xmlto --disable-docs --disable-devel-docs \
--disable-xnest --localstatedir=/var --without-dtrace
SLAVE_PORT= yes SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
USE_XORG= x11 xcb
CONFIGURE_ARGS+=--enable-xephyr --disable-dmx --disable-xnest --disable-xvfb \
--enable-kdrive
PLIST_FILES= bin/Xephyr man/man1/Xephyr.1.gz PLIST_FILES= bin/Xephyr man/man1/Xephyr.1.gz
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hw/kdrive/ephyr/Xephyr ${STAGEDIR}${PREFIX}/bin/ cd ${WRKSRC}/hw/kdrive/ephyr; DESTDIR=${STAGEDIR} ${MAKE} install
${INSTALL_MAN} ${WRKSRC}/hw/kdrive/ephyr/man/Xephyr.1 ${STAGEDIR}${PREFIX}/man/man1/
.include "${MASTERDIR}/Makefile" .include "${MASTERDIR}/Makefile"

View file

@ -1,2 +0,0 @@
SHA256 (xorg/xserver/xorg-server-1.10.4.tar.bz2) = fafc16b97b9a61b62dfaa74e8d336baa0cea752ce9ed8103c4d212baa8031ca5
SIZE (xorg/xserver/xorg-server-1.10.4.tar.bz2) = 5386174

View file

@ -5,22 +5,17 @@ PORTNAME= xorg-dmx
COMMENT= Distributed Multihead X from X.Org COMMENT= Distributed Multihead X from X.Org
LICENSE= MIT
MASTERDIR= ${.CURDIR}/../xorg-server MASTERDIR= ${.CURDIR}/../xorg-server
DESCR= ${.CURDIR}/pkg-descr DESCR= ${.CURDIR}/pkg-descr
USE_XORG= x11 xf86driproto glproto randrproto renderproto fixesproto \
dri2proto damageproto xcmiscproto xextproto xf86miscproto \
xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto \
resourceproto fontsproto xf86dgaproto videoproto \
compositeproto trapproto recordproto resourceproto \
xineramaproto xinerama evieproto xkbfile xfont fontenc xkbui \
xxf86misc xxf86vm xaw7 xmu xpm xext xrender xfixes xi dmxproto \
xau dmx xtst xres pixman xtrans presentproto
CONFIGURE_ARGS= --disable-xvfb --disable-xnest \
--without-xmlto --disable-docs --disable-devel-docs \
--enable-dmx --localstatedir=/var --without-dtrace
SLAVE_PORT= yes SLAVE_PORT= yes
OPTIONS_EXCLUDE=DEVD HAL SUID
USE_XORG= dmx dmxproto x11 xaw7 xext xfixes xi xmu xpm xrender xres xt xtst
CONFIGURE_ARGS+=--enable-dmx --disable-xephyr --disable-xnest --disable-xvfb
do-install: do-install:
cd ${WRKSRC}/hw/dmx; DESTDIR=${STAGEDIR} ${MAKE} install cd ${WRKSRC}/hw/dmx; DESTDIR=${STAGEDIR} ${MAKE} install

View file

@ -1,2 +0,0 @@
SHA256 (xorg/xserver/xorg-server-1.10.4.tar.bz2) = fafc16b97b9a61b62dfaa74e8d336baa0cea752ce9ed8103c4d212baa8031ca5
SIZE (xorg/xserver/xorg-server-1.10.4.tar.bz2) = 5386174

View file

@ -4,57 +4,28 @@
PORTNAME= xorg-nestserver PORTNAME= xorg-nestserver
PORTVERSION= 1.19.1 PORTVERSION= 1.19.1
PORTEPOCH= 2 PORTEPOCH= 2
CATEGORIES= x11-servers
MASTER_SITES= XORG/individual/xserver
DISTNAME= xorg-server-${PORTVERSION}
DIST_SUBDIR= xorg/xserver
MAINTAINER= x11@FreeBSD.org
COMMENT= Nesting X server from X.Org COMMENT= Nesting X server from X.Org
LICENSE= MIT LICENSE= MIT
LIB_DEPENDS= libxcb-keysyms.so:x11/xcb-util-keysyms MASTERDIR= ${.CURDIR}/../xorg-server
DESCR= ${.CURDIR}/pkg-descr
DISTINFO_FILE= ${.CURDIR}/distinfo
PATCHDIR= ${.CURDIR}/files
RUN_DEPENDS= xkeyboard-config>=2.5:x11/xkeyboard-config RUN_DEPENDS= xkeyboard-config>=2.5:x11/xkeyboard-config
USES= tar:bzip2 pkgconfig ssl SLAVE_PORT= yes
INSTALL_WRKSRC= ${WRKSRC}/hw/xnest OPTIONS_EXCLUDE=DEVD HAL SUID
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dmx \
--disable-xephyr \
--enable-xnest \
--disable-xfbdev \
--disable-kdrive \
--disable-xfake \
--disable-screensaver \
--disable-xwin \
--disable-xwayland \
--disable-xorg \
--without-xmlto \
--disable-docs \
--disable-devel-docs \
--localstatedir=/var \
--without-dtrace \
--without-doxygen \
--disable-glx \
--disable-dri \
--disable-config-hal \
--disable-libdrm \
--disable-glx-tls \
--disable-vbe \
--disable-vgahw \
--disable-xvfb \
--with-fontrootdir=${PREFIX}/share/fonts
USE_XORG= x11 xf86driproto glproto randrproto renderproto fixesproto \ USE_XORG= x11 xext xfont2
damageproto xcmiscproto xextproto xf86miscproto inputproto \
xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto \
dri2proto resourceproto fontsproto xf86dgaproto videoproto \
compositeproto trapproto recordproto resourceproto \
xineramaproto xinerama evieproto xkbfile xfont2 fontenc xkbui \
xxf86misc xxf86vm xaw7 xmu xpm xext pixman xtrans presentproto
PLIST_FILES= bin/Xnest \ CONFIGURE_ARGS+=--enable-xnest --disable-dmx --disable-xephyr --disable-xvfb
man/man1/Xnest.1.gz
.include <bsd.port.mk> PLIST_FILES= bin/Xnest man/man1/Xnest.1.gz
do-install:
cd ${WRKSRC}/hw/xnest; DESTDIR=${STAGEDIR} ${MAKE} install
.include "${MASTERDIR}/Makefile"

View file

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME?= xorg-server PORTNAME?= xorg-server
PORTVERSION= 1.17.4 PORTVERSION?= 1.18.4
PORTREVISION?= 0 PORTREVISION?= 0
PORTEPOCH?= 1 PORTEPOCH?= 1
CATEGORIES= x11-servers CATEGORIES= x11-servers
@ -14,8 +14,6 @@ COMMENT?= X.Org X server and related programs
LICENSE= MIT LICENSE= MIT
LIB_DEPENDS+= libdrm.so:graphics/libdrm \
libepoxy.so:graphics/libepoxy
RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \ RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \
xkbcomp:x11/xkbcomp xkbcomp:x11/xkbcomp
@ -25,38 +23,44 @@ SLAVE_PORT?= no
OPTIONS_SUB= yes OPTIONS_SUB= yes
OPTIONS_DEFINE= SUID OPTIONS_DEFINE= SUID
OPTIONS_RADIO= CONF OPTIONS_RADIO= CONF
OPTIONS_RADIO_CONF= HAL DEVD OPTIONS_RADIO_CONF= DEVD HAL
SUID_DESC= Install the Xorg server with setuid bit set
HAL_DESC= Compile with HAL config support
DEVD_DESC= Use devd for autoconfiguration of input devices DEVD_DESC= Use devd for autoconfiguration of input devices
OPTIONS_DEFAULT=SUID DEVD HAL_DESC= Use hald for autoconfiguration of input devices
SUID_DESC= Install the Xorg server with setuid bit set
OPTIONS_DEFAULT=DEVD SUID
OPTIONS_EXCLUDE_sparc64= HAL OPTIONS_EXCLUDE_sparc64= HAL
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
USES= gmake libtool perl5 tar:bzip2 USES= gmake libtool perl5 ssl tar:bzip2
USE_PERL5= build USE_PERL5= build
USE_GL= gbm egl gl USE_GL+= gl
USE_XORG?= xf86driproto glproto xdmcp x11 xkbfile xxf86misc xxf86vm xaw7 \ USE_XORG+= bigreqsproto compositeproto damageproto dri2proto dri3proto \
xmu xt xpm xext randrproto renderproto fixesproto damageproto \ fixesproto fontsproto glproto inputproto kbproto pixman \
dri2proto xcmiscproto xextproto xproto xtrans \ presentproto randrproto recordproto renderproto \
xf86miscproto xf86vidmodeproto xf86bigfontproto scrnsaverproto \ resourceproto scrnsaverproto videoproto xau \
bigreqsproto resourceproto fontsproto inputproto xf86dgaproto \ xcmiscproto xdmcp xextproto xf86driproto xfont \
videoproto compositeproto trapproto presentproto recordproto \ xineramaproto xkbfile xproto xshmfence xtrans
xineramaproto xinerama evieproto xfont fontenc xkbui pixman \ CONFIGURE_ARGS+=--without-doxygen --without-xmlto --without-fop \
pciaccess xshmfence --localstatedir=/var --with-shared-memory-dir=/tmp \
USE_OPENSSL= yes --without-dtrace --disable-xwayland --enable-glamor
CONFIGURE_ARGS?=--disable-dmx --disable-xvfb --disable-xnest \
--without-xmlto --disable-docs --disable-devel-docs \
--localstatedir=/var --without-dtrace --disable-xephyr \
--enable-record=yes --disable-dri3 --disable-xwayland \
--enable-glamor
INSTALL_TARGET= install-strip INSTALL_TARGET= install-strip
.if ${SLAVE_PORT} == "no" || ${PORTNAME} == "xephyr"
LIB_DEPENDS+= libdrm.so:graphics/libdrm \
libepoxy.so:graphics/libepoxy
.else
BUILD_DEPENDS+= libepoxy>0:graphics/libepoxy # only for configure
.endif
.if ${SLAVE_PORT} == "no" .if ${SLAVE_PORT} == "no"
USE_GL+= gbm
USE_XORG+= pciaccess xf86dgaproto xf86vidmodeproto
CONFIGURE_ARGS+=--disable-dmx --disable-xephyr --disable-xnest --disable-xvfb
SUB_FILES= pkg-install pkg-deinstall SUB_FILES= pkg-install pkg-deinstall
.else .else
CONFIGURE_ARGS+=--disable-xorg
# for slave ports we need to overwrite PLIST, so it doesn't overwrite # for slave ports we need to overwrite PLIST, so it doesn't overwrite
# PLIST_FILES, with the masterport plist. # PLIST_FILES, with the masterport plist.
PLIST= ${.CURDIR}/pkg-plist PLIST= ${.CURDIR}/pkg-plist
@ -73,29 +77,20 @@ CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include"
.if ${PORT_OPTIONS:MHAL} .if ${PORT_OPTIONS:MHAL}
LIB_DEPENDS+= libhal.so:sysutils/hal LIB_DEPENDS+= libhal.so:sysutils/hal
CONFIGURE_ARGS+= --enable-config-hal=yes CONFIGURE_ARGS+= --enable-config-hal
.else .else
CONFIGURE_ARGS+= --enable-config-hal=no CONFIGURE_ARGS+= --disable-config-hal
.endif .endif
# We handle Xorg setuid in the plist. This allows to build xorg-server as a user. # We handle Xorg setuid in the plist. This allows to build xorg-server as a user.
CONFIGURE_ARGS+=--disable-install-setuid CONFIGURE_ARGS+=--disable-install-setuid
.if ${ARCH} == i386 .if ${ARCH} == "i386" || ${ARCH} == "amd64"
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-i386 LIB_DEPENDS+= libunwind.so:devel/libunwind
.endif .endif
.if ${ARCH} == ia64 .if ${ARCH} == "sparc64"
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-ia64
.endif
.if ${ARCH} == powerpc || ${ARCH} == powerpc64
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-powerpc
.endif
.if ${ARCH} == sparc64
PLIST_SUB+= SPARC64="" PLIST_SUB+= SPARC64=""
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-sparc64
.else .else
PLIST_SUB+= SPARC64="@comment " PLIST_SUB+= SPARC64="@comment "
.endif .endif

Some files were not shown because too many files have changed in this diff Show more