summaryrefslogtreecommitdiffstats
path: root/x11-drivers/xf86-video-ati-kms
diff options
context:
space:
mode:
authorkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-03-02 19:22:56 +0800
committerkwm <kwm@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-03-02 19:22:56 +0800
commit6cb9ab6554c4a8162570bd4feefc4ac25517e93c (patch)
tree1f8541f3d92a1f096b518474d41e4ab4d03b2315 /x11-drivers/xf86-video-ati-kms
parentea7d26bdb7ef3e4dafff25cca1efd7b2142ffb83 (diff)
downloadxorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar.gz
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar.bz2
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar.lz
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar.xz
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.tar.zst
xorg-devel-ports-6cb9ab6554c4a8162570bd4feefc4ac25517e93c.zip
Make sure we load the radeon kms driver.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@689 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11-drivers/xf86-video-ati-kms')
-rw-r--r--x11-drivers/xf86-video-ati-kms/Makefile2
-rw-r--r--x11-drivers/xf86-video-ati-kms/files/extra-src__radeon_kms.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/x11-drivers/xf86-video-ati-kms/Makefile b/x11-drivers/xf86-video-ati-kms/Makefile
index 7bb0a3f..b52430b 100644
--- a/x11-drivers/xf86-video-ati-kms/Makefile
+++ b/x11-drivers/xf86-video-ati-kms/Makefile
@@ -14,6 +14,8 @@ MAN4= ati.4x radeon.4x
CONFIGURE_ARGS+=--disable-udev
+EXTRA_PATCHES+= ${FILESDIR}/extra-src__radeon_kms.c
+
pre-everything::
@${ECHO_CMD}
@${ECHO_CMD} "This port is KMS/TTM only, and only for testing the upcoming"
diff --git a/x11-drivers/xf86-video-ati-kms/files/extra-src__radeon_kms.c b/x11-drivers/xf86-video-ati-kms/files/extra-src__radeon_kms.c
new file mode 100644
index 0000000..30bbc72
--- /dev/null
+++ b/x11-drivers/xf86-video-ati-kms/files/extra-src__radeon_kms.c
@@ -0,0 +1,11 @@
+--- src/radeon_kms.c.orig 2013-03-02 12:22:34.000000000 +0100
++++ src/radeon_kms.c 2013-03-02 12:26:26.000000000 +0100
+@@ -564,7 +564,7 @@
+ dev->domain, dev->bus, dev->dev, dev->func);
+ #endif
+
+- info->dri2.drm_fd = drmOpen("radeon", busid);
++ info->dri2.drm_fd = drmOpen("radeonkms", busid);
+ if (info->dri2.drm_fd == -1) {
+
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,