summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-drivers/xf86-video-ati/Manifest1
-rw-r--r--x11-drivers/xf86-video-ati/files/enable_DRI3_by_default.patch12
-rw-r--r--x11-drivers/xf86-video-ati/xf86-video-ati-7.6.1.ebuild50
3 files changed, 63 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-ati/Manifest b/x11-drivers/xf86-video-ati/Manifest
new file mode 100644
index 00000000..8c34d7ac
--- /dev/null
+++ b/x11-drivers/xf86-video-ati/Manifest
@@ -0,0 +1 @@
+DIST xf86-video-ati-7.6.1.tar.bz2 823043 SHA256 2516d9eeb8da8bcd3a01365ed1314919777910fa904ab268af342b5693e1d34c SHA512 b829b1db2088161a2486f396a9b36afd6fbbc765fb495450fb1c2de33951e6270c7ef6665c8275c66dfc6509af71b9882c342d236fc0537ff0dde117683c4891 WHIRLPOOL 91787a77590fbbf30b73fd1c4f7e427ea3eee25b4ba16f52ae2d9d0967b596b33a2bb04bbc8edc83baf48db6cabb459cf81b43da644dd0c1ee415fc650105ffc
diff --git a/x11-drivers/xf86-video-ati/files/enable_DRI3_by_default.patch b/x11-drivers/xf86-video-ati/files/enable_DRI3_by_default.patch
new file mode 100644
index 00000000..9aad3e05
--- /dev/null
+++ b/x11-drivers/xf86-video-ati/files/enable_DRI3_by_default.patch
@@ -0,0 +1,12 @@
+diff -Nur a/src/radeon_kms.c b/src/radeon_kms.c
+--- a/src/radeon_kms.c 2015-11-12 02:57:33.000000000 +0000
++++ b/src/radeon_kms.c 2015-12-28 16:50:05.403313307 +0000
+@@ -1630,7 +1630,7 @@
+ }
+ #endif
+
+- value = FALSE;
++ value = TRUE;
+ from = X_DEFAULT;
+ if (xf86GetOptValBool(info->Options, OPTION_DRI3, &value))
+ from = X_CONFIG;
diff --git a/x11-drivers/xf86-video-ati/xf86-video-ati-7.6.1.ebuild b/x11-drivers/xf86-video-ati/xf86-video-ati-7.6.1.ebuild
new file mode 100644
index 00000000..568f5948
--- /dev/null
+++ b/x11-drivers/xf86-video-ati/xf86-video-ati-7.6.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+XORG_DRI=always
+inherit linux-info xorg-2
+
+DESCRIPTION="ATI video driver (DRI3 enabled by default)"
+HOMEPAGE="http://www.x.org/wiki/ati/"
+
+KEYWORDS="amd64 x86"
+IUSE="+glamor udev"
+
+RDEPEND=">=x11-libs/libdrm-2.4.58[video_cards_radeonsi]
+ >=x11-libs/libpciaccess-0.8.0
+ glamor? ( x11-base/xorg-server[glamor] )
+ udev? ( virtual/udev )"
+DEPEND="${RDEPEND}
+ x11-proto/fontsproto
+ x11-proto/randrproto
+ x11-proto/renderproto
+ x11-proto/videoproto
+ x11-proto/xextproto
+ x11-proto/xf86driproto
+ x11-proto/xproto"
+
+pkg_pretend() {
+ if use kernel_linux ; then
+ if kernel_is -ge 3 9; then
+ CONFIG_CHECK="~!DRM_RADEON_UMS ~!FB_RADEON"
+ else
+ CONFIG_CHECK="~DRM_RADEON_KMS ~!FB_RADEON"
+ fi
+ fi
+ check_extra_config
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/enable_DRI3_by_default.patch
+}
+
+src_configure() {
+ XORG_CONFIGURE_OPTIONS=(
+ $(use_enable glamor)
+ $(use_enable udev)
+ )
+ xorg-2_src_configure
+}