summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-09-26 22:48:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 10:39:12 +0100
commitd7bb1d8b1a7cd11895037b7984b9aa916efa9733 (patch)
tree9973d322de6c1afe6b6a37ca572930b37897b3ff
parentb853cead2e0965b9797b40d6b59bed67804f459f (diff)
downloadopenembedded-core-contrib-d7bb1d8b1a7cd11895037b7984b9aa916efa9733.tar.gz
openembedded-core-contrib-d7bb1d8b1a7cd11895037b7984b9aa916efa9733.tar.bz2
openembedded-core-contrib-d7bb1d8b1a7cd11895037b7984b9aa916efa9733.zip
xserver-xorg: report DRI3 and Present modules as present
The DRI3 and Present modules are built-in but some drivers (such as xf86-video-intel) want to query their presence. Backport a patch from upstream to stop this causing an error. [ YOCTO #6583 ] Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg/present-module.patch66
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg_1.15.1.bb1
2 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/present-module.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/present-module.patch
new file mode 100644
index 0000000000..13f3caf768
--- /dev/null
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/present-module.patch
@@ -0,0 +1,66 @@
+[ YOCTO #6583 ]
+
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+From 746be5a03ebbda4ab411ca3efb2ed95f99e9ea46 Mon Sep 17 00:00:00 2001
+From: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed, 28 May 2014 08:13:59 +0100
+Subject: xfree86: Report DRI3 as a built-in module
+
+This is so that drivers can do a runtime check that DRI3 is available,
+similar to existing runtime checks performed by the drivers for DRI and
+DRI2.
+
+v2: Only add DRI3 to the list if the module was actually built into the
+server (Mark Kettenis).
+
+Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+Cc: Mark Kettenis <mark.kettenis@xs4all.nl>
+Signed-off-by: Keith Packard <keithp@keithp.com>
+
+diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
+index 092bf57..f92ad8d 100644
+--- a/hw/xfree86/loader/loadmod.c
++++ b/hw/xfree86/loader/loadmod.c
+@@ -838,6 +838,9 @@ static const char *compiled_in_modules[] = {
+ "extmod",
+ "dri",
+ "dri2",
++#if DRI3
++ "dri3",
++#endif
+ NULL
+ };
+
+--
+cgit v0.10.2
+
+
+From 7ca458493aa2f0aa091c989ea0768611e0730bf5 Mon Sep 17 00:00:00 2001
+From: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed, 28 May 2014 08:14:00 +0100
+Subject: xfree86: Report Present as a built-in module
+
+This is so that drivers can do a runtime check that Present is available,
+similar to existing runtime checks performed by the drivers for DRI.
+
+Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+Signed-off-by: Keith Packard <keithp@keithp.com>
+
+diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c
+index f92ad8d..e1f649a 100644
+--- a/hw/xfree86/loader/loadmod.c
++++ b/hw/xfree86/loader/loadmod.c
+@@ -841,6 +841,9 @@ static const char *compiled_in_modules[] = {
+ #if DRI3
+ "dri3",
+ #endif
++#if PRESENT
++ "present",
++#endif
+ NULL
+ };
+
+--
+cgit v0.10.2
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.15.1.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.15.1.bb
index e952e6096a..3bba3ce0bf 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.15.1.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.15.1.bb
@@ -6,6 +6,7 @@ SRC_URI += "file://crosscompile.patch \
file://mips64-compiler.patch \
file://xorg-CVE-2013-6424.patch \
file://xshmfence-option.patch \
+ file://present-module.patch \
"
SRC_URI[md5sum] = "e4c70262ed89764be8f8f5d699ed9227"