diff options
author | Robert Bragg <bob@openedhand.com> | 2008-09-26 13:41:17 +0000 |
---|---|---|
committer | Robert Bragg <bob@openedhand.com> | 2008-09-26 13:41:17 +0000 |
commit | 503cb726a20f7abd2195ebbd5e77017fb7ed2bb2 (patch) | |
tree | 132ce7ed4709d0b79cc9b6da2636b314994ad6f3 /meta | |
parent | fc3d94f80cf0385ae03acdf88211a92b99c0736d (diff) | |
download | poky-503cb726a20f7abd2195ebbd5e77017fb7ed2bb2.tar.gz |
fixes noPanoramiXExtension missing symbol problem when server tries to load libdri
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5296 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
3 files changed, 54 insertions, 2 deletions
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch new file mode 100644 index 0000000000..db29da93ca --- /dev/null +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite/libdri-xinerama-symbol.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | Index: xorg-server-1.5.0/hw/xfree86/dri/dri.c | ||
2 | =================================================================== | ||
3 | --- xorg-server-1.5.0.orig/hw/xfree86/dri/dri.c 2008-09-24 17:43:04.000000000 +0100 | ||
4 | +++ xorg-server-1.5.0/hw/xfree86/dri/dri.c 2008-09-24 17:46:38.000000000 +0100 | ||
5 | @@ -73,10 +73,6 @@ | ||
6 | |||
7 | #define PCI_BUS_NO_DOMAIN(bus) ((bus) & 0xffu) | ||
8 | |||
9 | -#if !defined(PANORAMIX) | ||
10 | -extern Bool noPanoramiXExtension; | ||
11 | -#endif | ||
12 | - | ||
13 | static int DRIEntPrivIndex = -1; | ||
14 | static DevPrivateKey DRIScreenPrivKey = &DRIScreenPrivKey; | ||
15 | static DevPrivateKey DRIWindowPrivKey = &DRIWindowPrivKey; | ||
16 | @@ -307,7 +303,6 @@ | ||
17 | drm_context_t * reserved; | ||
18 | int reserved_count; | ||
19 | int i; | ||
20 | - Bool xineramaInCore = FALSE; | ||
21 | DRIEntPrivPtr pDRIEntPriv; | ||
22 | ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; | ||
23 | DRIContextFlags flags = 0; | ||
24 | @@ -320,20 +315,13 @@ | ||
25 | return FALSE; | ||
26 | } | ||
27 | |||
28 | - /* | ||
29 | - * If Xinerama is on, don't allow DRI to initialise. It won't be usable | ||
30 | - * anyway. | ||
31 | - */ | ||
32 | - if (xf86LoaderCheckSymbol("noPanoramiXExtension")) | ||
33 | - xineramaInCore = TRUE; | ||
34 | - | ||
35 | - if (xineramaInCore) { | ||
36 | - if (!noPanoramiXExtension) { | ||
37 | - DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
38 | - "Direct rendering is not supported when Xinerama is enabled\n"); | ||
39 | - return FALSE; | ||
40 | - } | ||
41 | +#if defined(PANORAMIX) | ||
42 | + if (!noPanoramiXExtension) { | ||
43 | + DRIDrvMsg(pScreen->myNum, X_WARNING, | ||
44 | + "Direct rendering is not supported when Xinerama is enabled\n"); | ||
45 | + return FALSE; | ||
46 | } | ||
47 | +#endif | ||
48 | |||
49 | if (!DRIOpenDRMMaster(pScrn, pDRIInfo->SAREASize, | ||
50 | pDRIInfo->busIdString, | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb index 7236a2653c..bc5aa493e5 100644 --- a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_1.5.0.bb | |||
@@ -3,5 +3,6 @@ require xserver-xf86-dri-lite.inc | |||
3 | PE = "1" | 3 | PE = "1" |
4 | PR = "r3" | 4 | PR = "r3" |
5 | 5 | ||
6 | SRC_URI += "file://drmfix.patch;patch=1" | 6 | SRC_URI += "file://drmfix.patch;patch=1 \ |
7 | file://libdri-xinerama-symbol.patch;patch=1 " | ||
7 | 8 | ||
diff --git a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb index 11940dd2c1..e45702664b 100644 --- a/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb +++ b/meta/packages/xorg-xserver/xserver-xf86-dri-lite_git.bb | |||
@@ -6,5 +6,6 @@ PV = "1.5.0+git${SRCREV}" | |||
6 | 6 | ||
7 | DEFAULT_PREFERENCE = "-1" | 7 | DEFAULT_PREFERENCE = "-1" |
8 | 8 | ||
9 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/xserver;protocol=git " | 9 | SRC_URI = "git://anongit.freedesktop.org/git/xorg/xserver;protocol=git \ |
10 | file://libdri-xinerama-symbol.patch;patch=1" | ||
10 | 11 | ||