diff options
author | tnn <tnn@pkgsrc.org> | 2015-04-02 22:16:45 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-04-02 22:16:45 +0000 |
commit | 63b347a3794aa0969919b11cedc838e16eaf0876 (patch) | |
tree | aea38d1cc76fa68c85ab33d13f6bc46e84e0e8d8 /x11/xf86-video-cirrus | |
parent | 0ba28bf955cf2f2d6ad061ec9bf363a0a9c7fd34 (diff) | |
download | pkgsrc-63b347a3794aa0969919b11cedc838e16eaf0876.tar.gz |
Make xf86-video-* drivers build against xorg-server-1.17 in addition to the
old 1.12 server. Mostly from FDO git. (xf86-video-ati6 was manually ported)
Diffstat (limited to 'x11/xf86-video-cirrus')
-rw-r--r-- | x11/xf86-video-cirrus/distinfo | 5 | ||||
-rw-r--r-- | x11/xf86-video-cirrus/patches/patch-src_alp__driver.c | 25 | ||||
-rw-r--r-- | x11/xf86-video-cirrus/patches/patch-src_cir.h | 23 | ||||
-rw-r--r-- | x11/xf86-video-cirrus/patches/patch-src_lg__driver.c | 25 |
4 files changed, 77 insertions, 1 deletions
diff --git a/x11/xf86-video-cirrus/distinfo b/x11/xf86-video-cirrus/distinfo index 337d58b9ee8..03332492f9c 100644 --- a/x11/xf86-video-cirrus/distinfo +++ b/x11/xf86-video-cirrus/distinfo @@ -1,5 +1,8 @@ -$NetBSD: distinfo,v 1.5 2013/05/16 06:06:45 richard Exp $ +$NetBSD: distinfo,v 1.6 2015/04/02 22:16:46 tnn Exp $ SHA1 (xf86-video-cirrus-1.5.2.tar.bz2) = 722800029e816f453031a851bf4a816c796d7bde RMD160 (xf86-video-cirrus-1.5.2.tar.bz2) = 6597f6fbec0d30254d04070debd8aa3bc2075201 Size (xf86-video-cirrus-1.5.2.tar.bz2) = 327547 bytes +SHA1 (patch-src_alp__driver.c) = 1dc9dc624f653dd219e259a26b9f18d79f8718c3 +SHA1 (patch-src_cir.h) = de21ad50143fd1bbbf2727149b32d7a35909aa4d +SHA1 (patch-src_lg__driver.c) = 1e25605cf8435fa6a2b43f71f8e72be402c6bd70 diff --git a/x11/xf86-video-cirrus/patches/patch-src_alp__driver.c b/x11/xf86-video-cirrus/patches/patch-src_alp__driver.c new file mode 100644 index 00000000000..5d7064b15f4 --- /dev/null +++ b/x11/xf86-video-cirrus/patches/patch-src_alp__driver.c @@ -0,0 +1,25 @@ +$NetBSD: patch-src_alp__driver.c,v 1.1 2015/04/02 22:16:46 tnn Exp $ + +From df389885adf71ed3b045c2fde9fd3ba4329e1a58 Mon Sep 17 00:00:00 2001 +From: Dave Airlie <airlied@gmail.com> +Date: Sat, 20 Sep 2014 18:51:17 +1000 +Subject: cirrus: don't use pciTag + +Signed-off-by: Dave Airlie <airlied@redhat.com> + +diff --git a/src/alp_driver.c b/src/alp_driver.c +index 36f2039..bd5e52f 100644 +--- src/alp_driver.c ++++ src/alp_driver.c +@@ -519,9 +519,11 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags) + pCir->Chipset = pCir->pEnt->chipset; + /* Find the PCI info for this screen */ + pCir->PciInfo = xf86GetPciInfoForEntity(pCir->pEnt->index); ++#ifndef XSERVER_LIBPCIACCESS + pCir->PciTag = pciTag(PCI_DEV_BUS(pCir->PciInfo), + PCI_DEV_DEV(pCir->PciInfo), + PCI_DEV_FUNC(pCir->PciInfo)); ++#endif + + #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12 + if (!xf86IsPc98()) diff --git a/x11/xf86-video-cirrus/patches/patch-src_cir.h b/x11/xf86-video-cirrus/patches/patch-src_cir.h new file mode 100644 index 00000000000..04627039ee6 --- /dev/null +++ b/x11/xf86-video-cirrus/patches/patch-src_cir.h @@ -0,0 +1,23 @@ +$NetBSD: patch-src_cir.h,v 1.1 2015/04/02 22:16:46 tnn Exp $ + +From df389885adf71ed3b045c2fde9fd3ba4329e1a58 Mon Sep 17 00:00:00 2001 +From: Dave Airlie <airlied@gmail.com> +Date: Sat, 20 Sep 2014 18:51:17 +1000 +Subject: cirrus: don't use pciTag + +Signed-off-by: Dave Airlie <airlied@redhat.com> + +diff --git a/src/cir.h b/src/cir.h +index 0a5d403..84f64b5 100644 +--- src/cir.h ++++ src/cir.h +@@ -23,7 +23,9 @@ typedef struct { + ScrnInfoPtr pScrn; + CARD32 properties; + pciVideoPtr PciInfo; ++#ifndef XSERVER_LIBPCIACCESS + PCITAG PciTag; ++#endif + unsigned long PIOReg; + union { + struct lgRec *lg; diff --git a/x11/xf86-video-cirrus/patches/patch-src_lg__driver.c b/x11/xf86-video-cirrus/patches/patch-src_lg__driver.c new file mode 100644 index 00000000000..a24348c2865 --- /dev/null +++ b/x11/xf86-video-cirrus/patches/patch-src_lg__driver.c @@ -0,0 +1,25 @@ +$NetBSD: patch-src_lg__driver.c,v 1.1 2015/04/02 22:16:46 tnn Exp $ + +From df389885adf71ed3b045c2fde9fd3ba4329e1a58 Mon Sep 17 00:00:00 2001 +From: Dave Airlie <airlied@gmail.com> +Date: Sat, 20 Sep 2014 18:51:17 +1000 +Subject: cirrus: don't use pciTag + +Signed-off-by: Dave Airlie <airlied@redhat.com> + +diff --git a/src/lg_driver.c b/src/lg_driver.c +index c20bbd0..589d14e 100644 +--- src/lg_driver.c ++++ src/lg_driver.c +@@ -382,9 +382,11 @@ LgPreInit(ScrnInfoPtr pScrn, int flags) + + /* Find the PCI info for this screen */ + pCir->PciInfo = xf86GetPciInfoForEntity(pCir->pEnt->index); ++#ifndef XSERVER_LIBPCIACCESS + pCir->PciTag = pciTag(PCI_DEV_BUS(pCir->PciInfo), + PCI_DEV_DEV(pCir->PciInfo), + PCI_DEV_FUNC(pCir->PciInfo)); ++#endif + + if (xf86LoadSubModule(pScrn, "int10")) { + xf86Int10InfoPtr int10InfoPtr; |