diff --git a/0001-dri-BC-hack-for-ati-and-openchrome.patch b/0001-dri-BC-hack-for-ati-and-openchrome.patch new file mode 100644 index 0000000..0ac558a --- /dev/null +++ b/0001-dri-BC-hack-for-ati-and-openchrome.patch @@ -0,0 +1,59 @@ +From fbb5ac73cb51317bf395e4849e82837c39395bae Mon Sep 17 00:00:00 2001 +From: Adam Jackson +Date: Mon, 9 May 2016 10:58:47 -0400 +Subject: [PATCH] dri: BC hack for ati and openchrome + +DRICreatePCIBusID creates a string that is then passed into libdrm. It +only lives in the dri1 code for some reason, so move it to the dri2 +code. +--- + hw/xfree86/dri/dri.c | 12 ------------ + hw/xfree86/dri2/dri2.c | 12 ++++++++++++ + 2 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c +index 0046e52..489f115 100644 +--- a/hw/xfree86/dri/dri.c ++++ b/hw/xfree86/dri/dri.c +@@ -2367,18 +2367,6 @@ DRIMoveBuffersHelper(ScreenPtr pScreen, + + } + +-char * +-DRICreatePCIBusID(const struct pci_device *dev) +-{ +- char *busID; +- +- if (asprintf(&busID, "pci:%04x:%02x:%02x.%d", +- dev->domain, dev->bus, dev->dev, dev->func) == -1) +- return NULL; +- +- return busID; +-} +- + static void + drmSIGIOHandler(int interrupt, void *closure) + { +diff --git a/hw/xfree86/dri2/dri2.c b/hw/xfree86/dri2/dri2.c +index d55be19..f5907f0 100644 +--- a/hw/xfree86/dri2/dri2.c ++++ b/hw/xfree86/dri2/dri2.c +@@ -1712,3 +1712,15 @@ not_recognized: + *is_param_recognized = FALSE; + return Success; + } ++ ++char * ++DRICreatePCIBusID(const struct pci_device *dev) ++{ ++ char *busID; ++ ++ if (asprintf(&busID, "pci:%04x:%02x:%02x.%d", ++ dev->domain, dev->bus, dev->dev, dev->func) == -1) ++ return NULL; ++ ++ return busID; ++} +-- +2.7.4 + diff --git a/xorg-x11-server.spec b/xorg-x11-server.spec index 8e0633a..657bc38 100644 --- a/xorg-x11-server.spec +++ b/xorg-x11-server.spec @@ -45,7 +45,7 @@ Summary: X.Org X11 X server Name: xorg-x11-server Version: 1.18.3 -Release: 3%{?gitdate:.%{gitdate}}%{dist} +Release: 4%{?gitdate:.%{gitdate}}%{dist} URL: http://www.x.org License: MIT Group: User Interface/X @@ -77,6 +77,8 @@ Source31: xserver-sdk-abi-requires.git # maintainer convenience script Source40: driver-abi-rebuild.sh +Patch1000: 0001-dri-BC-hack-for-ati-and-openchrome.patch + # Trivial things to never merge upstream ever: # This really could be done prettier. Patch5002: xserver-1.4.99-ssh-isnt-local.patch @@ -641,6 +643,9 @@ find %{inst_srcdir}/hw/xfree86 -name \*.c -delete %changelog +* Mon May 09 2016 Adam Jackson - 1.18.3-4 +- Move a symbol from DRI1 to DRI2 code to fix ati/openchrome + * Thu May 05 2016 Peter Hutterer 1.18.3-3 - Fix NumLock indicator light turning off after layout change (#1047151)