Move a symbol from DRI1 to DRI2 code to fix ati/openchrome
This commit is contained in:
parent
63b1c55303
commit
e0b45619ef
59
0001-dri-BC-hack-for-ati-and-openchrome.patch
Normal file
59
0001-dri-BC-hack-for-ati-and-openchrome.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
From fbb5ac73cb51317bf395e4849e82837c39395bae Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adam Jackson <ajax@redhat.com>
|
||||||
|
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
|
||||||
|
|
@ -45,7 +45,7 @@
|
|||||||
Summary: X.Org X11 X server
|
Summary: X.Org X11 X server
|
||||||
Name: xorg-x11-server
|
Name: xorg-x11-server
|
||||||
Version: 1.18.3
|
Version: 1.18.3
|
||||||
Release: 3%{?gitdate:.%{gitdate}}%{dist}
|
Release: 4%{?gitdate:.%{gitdate}}%{dist}
|
||||||
URL: http://www.x.org
|
URL: http://www.x.org
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
@ -77,6 +77,8 @@ Source31: xserver-sdk-abi-requires.git
|
|||||||
# maintainer convenience script
|
# maintainer convenience script
|
||||||
Source40: driver-abi-rebuild.sh
|
Source40: driver-abi-rebuild.sh
|
||||||
|
|
||||||
|
Patch1000: 0001-dri-BC-hack-for-ati-and-openchrome.patch
|
||||||
|
|
||||||
# Trivial things to never merge upstream ever:
|
# Trivial things to never merge upstream ever:
|
||||||
# This really could be done prettier.
|
# This really could be done prettier.
|
||||||
Patch5002: xserver-1.4.99-ssh-isnt-local.patch
|
Patch5002: xserver-1.4.99-ssh-isnt-local.patch
|
||||||
@ -641,6 +643,9 @@ find %{inst_srcdir}/hw/xfree86 -name \*.c -delete
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 09 2016 Adam Jackson <ajax@redhat.com> - 1.18.3-4
|
||||||
|
- Move a symbol from DRI1 to DRI2 code to fix ati/openchrome
|
||||||
|
|
||||||
* Thu May 05 2016 Peter Hutterer <peter.hutterer@redhat.com> 1.18.3-3
|
* Thu May 05 2016 Peter Hutterer <peter.hutterer@redhat.com> 1.18.3-3
|
||||||
- Fix NumLock indicator light turning off after layout change (#1047151)
|
- Fix NumLock indicator light turning off after layout change (#1047151)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user