summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-07-15 17:40:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-16 10:20:48 +0100
commit7b455c5c6038b23d2d8e62d670bcb1378a9e2ff3 (patch)
treedd7fd0a2adf1f9ecbf6f574c2f938f3f7c0e7fc3 /meta/recipes-graphics
parenteca8a56a4e41780a4b383cbca26478c2e90f8e81 (diff)
downloadpoky-7b455c5c6038b23d2d8e62d670bcb1378a9e2ff3.tar.gz
xf86-video-intel: upgrade to 2.99.912
Drop a backported patch that has been applied. Apply a patch from upstream to add enable/disable options for each DRI level, as .912 won't build if the X server doesn't support DRI3. Add PACKAGECONFIG options for each DRI level and enable DRI1 and DRI2. Add a PACKAGECONFIG option for the client tools, disabled by default as they're only useful on machines with hybrid discrete/integrated GPUs. (From OE-Core rev: ac029cf6a228a00956978f186aef2c0f05bb8731) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/xorg-driver/xf86-video-intel/configure-dri.patch166
-rw-r--r--meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.912.bb (renamed from meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.910.bb)19
2 files changed, 178 insertions, 7 deletions
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel/configure-dri.patch b/meta/recipes-graphics/xorg-driver/xf86-video-intel/configure-dri.patch
new file mode 100644
index 0000000000..7fa9443d93
--- /dev/null
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel/configure-dri.patch
@@ -0,0 +1,166 @@
1Add the ability to enable/disable specific versions of the DRI support.
2
3This is the following two commits from master squashed:
4 7bc669dd4b7e3e5978e95e4131d1f9215afbc041
5 5a0cb1049c2fa0586708719210a2d2cffa7a4491
6
7Upstream-Status: Backport
8Signed-off-by: Ross Burton <ross.burton@intel.com>
9
10diff --git a/configure.ac b/configure.ac
11index b3b6e8e..bd654f3 100644
12--- a/configure.ac
13+++ b/configure.ac
14@@ -296,6 +296,21 @@ AC_ARG_ENABLE(dri,
15 [Disable DRI support [[default=auto]]]),
16 [DRI=$enableval],
17 [DRI=auto])
18+AC_ARG_ENABLE(dri1,
19+ AS_HELP_STRING([--disable-dri1],
20+ [Disable DRI1 support [[default=yes]]]),
21+ [DRI1=$enableval],
22+ [DRI1=yes])
23+AC_ARG_ENABLE(dri2,
24+ AS_HELP_STRING([--disable-dri2],
25+ [Disable DRI2 support [[default=yes]]]),
26+ [DRI2=$enableval],
27+ [DRI2=yes])
28+AC_ARG_ENABLE(dri3,
29+ AS_HELP_STRING([--disable-dri3],
30+ [Disable DRI3 support [[default=yes]]]),
31+ [DRI3=$enableval],
32+ [DRI3=yes])
33
34 AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc],
35 [Disable XvMC support [[default=yes]]]),
36@@ -461,15 +476,15 @@ if test "x$UMS" = "xyes"; then
37 AC_DEFINE(UMS,1,[Assume UMS support])
38 fi
39
40-DRI1=no
41+have_dri1=no
42 XORG_DRIVER_CHECK_EXT(XF86DRI, xf86driproto)
43-if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$UMS" = "xyes"; then
44- PKG_CHECK_MODULES(DRI1, [xf86driproto], [DRI1=$DRI], [DRI1=no])
45+if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then
46+ PKG_CHECK_MODULES(DRI1, [xf86driproto], [have_dri1=$DRI], [have_dri1=no])
47 save_CFLAGS="$CFLAGS"
48 save_CPPFLAGS="$CPPFLAGS"
49 CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
50 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS"
51- AC_CHECK_HEADERS([dri.h sarea.h dristruct.h], [], [DRI1=no],
52+ AC_CHECK_HEADERS([dri.h sarea.h dristruct.h], [], [have_dri1=no],
53 [/* for dri.h */
54 #include <xf86str.h>
55 /* for dristruct.h */
56@@ -486,49 +501,55 @@ if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$UMS" = "xyes"; then
57 fi
58
59 AC_MSG_CHECKING([whether to include DRI1 support])
60-AC_MSG_RESULT([$DRI1])
61+AC_MSG_RESULT([$have_dri1])
62
63-AM_CONDITIONAL(DRI1, test "x$DRI1" != "xno")
64-if test "x$DRI1" != "xno"; then
65+AM_CONDITIONAL(DRI1, test "x$have_dri1" != "xno")
66+if test "x$have_dri1" != "xno"; then
67 AC_DEFINE(HAVE_DRI1,1,[Enable DRI1 driver support])
68 dri_msg="$dri_msg DRI1"
69 else
70 DRI1_CFLAGS=""
71 DRI1_LIBS=""
72
73- if test "x$DRI" = "xyes" -a "x$UMS" = "xyes"; then
74+ if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then
75 AC_MSG_ERROR([DRI1 requested but prerequisites not found])
76 fi
77 fi
78
79-DRI2=no
80-DRI3=no
81+have_dri2=no
82+have_dri3=no
83 if test "x$DRI" != "xno"; then
84- PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6], [DRI2=$DRI], [DRI2=no])
85- dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
86- if test "x$dridriverdir" = "x"; then
87- dridriverdir="$libdir/dri"
88- fi
89- AC_DEFINE_DIR(DRI_DRIVER_PATH, dridriverdir, [Default DRI2 driver path])
90 if test "x$DRI2" != "xno"; then
91+ PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6], [have_dri2=$DRI], [have_dri2=no])
92+ fi
93+ if test "x$have_dri2" != "xno"; then
94 save_CFLAGS=$CFLAGS
95 CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS"
96- AC_CHECK_HEADERS([dri2.h], [], [DRI2=no], [
97+ AC_CHECK_HEADERS([dri2.h], [], [have_dri2=no], [
98 #include <dixstruct.h>
99 #include <drm.h>
100 ])
101 CFLAGS=$save_CFLAGS
102 fi
103-
104- XORG_DRIVER_CHECK_EXT(DRI3, dri3proto)
105- if test "x$_EXT_CHECK" != "xno"; then
106- PKG_CHECK_MODULES(DRI3, [dri3proto], [DRI3=$DRI], [])
107+ if test "x$have_dri2" != "xno"; then
108+ dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
109+ if test "x$dridriverdir" = "x"; then
110+ dridriverdir="$libdir/dri"
111+ fi
112+ AC_DEFINE_DIR(DRI_DRIVER_PATH, dridriverdir, [Default have_dri2 driver path])
113 fi
114+
115 if test "x$DRI3" != "xno"; then
116+ XORG_DRIVER_CHECK_EXT(DRI3, dri3proto)
117+ if test "x$_EXT_CHECK" != "xno"; then
118+ PKG_CHECK_MODULES(DRI3, [dri3proto], [have_dri3=$DRI], [])
119+ fi
120+ fi
121+ if test "x$have_dri3" != "xno"; then
122 save_CFLAGS=$CFLAGS
123 CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS"
124- AC_CHECK_DECL(DRI3, [], [DRI3=no], [#include <xorg-server.h>])
125- AC_CHECK_HEADERS([misyncstr.h misyncshm.h], [], [DRI3=no], [
126+ AC_CHECK_DECL(DRI3, [], [have_dri3=no], [#include <xorg-server.h>])
127+ AC_CHECK_HEADERS([misyncstr.h misyncshm.h], [], [have_dri3=no], [
128 #include <xorg-server.h>
129 #include <xf86str.h>
130 #include <misync.h>
131@@ -538,13 +559,13 @@ if test "x$DRI" != "xno"; then
132 fi
133
134 AC_MSG_CHECKING([whether to include DRI2 support])
135-AM_CONDITIONAL(DRI2, test "x$DRI2" != "xno")
136-AC_MSG_RESULT([$DRI2])
137-if test "x$DRI2" != "xno"; then
138+AM_CONDITIONAL(DRI2, test "x$have_dri2" != "xno")
139+AC_MSG_RESULT([$have_dri2])
140+if test "x$have_dri2" != "xno"; then
141 AC_DEFINE(HAVE_DRI2,1,[Enable DRI2 driver support])
142 dri_msg="$dri_msg DRI2"
143 else
144- if test "x$DRI" = "xyes" -a "x$KMS" = "xyes"; then
145+ if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then
146 AC_MSG_ERROR([DRI2 requested but prerequisites not found])
147 fi
148
149@@ -553,13 +574,13 @@ else
150 fi
151
152 AC_MSG_CHECKING([whether to include DRI3 support])
153-AM_CONDITIONAL(DRI3, test "x$DRI3" != "xno")
154-AC_MSG_RESULT([$DRI3])
155-if test "x$DRI3" != "xno"; then
156+AM_CONDITIONAL(DRI3, test "x$have_dri3" != "xno")
157+AC_MSG_RESULT([$have_dri3])
158+if test "x$have_dri3" != "xno"; then
159 AC_DEFINE(HAVE_DRI3,1,[Enable DRI3 driver support])
160 dri_msg="$dri_msg DRI3"
161 else
162- if test "x$DRI" = "xyes" -a "x$KMS" = "xyes"; then
163+ if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then
164 AC_MSG_ERROR([DRI3 requested but prerequisites not found])
165 fi
166 fi
diff --git a/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.910.bb b/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.912.bb
index 60eace46d4..07776908ad 100644
--- a/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.910.bb
+++ b/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.99.912.bb
@@ -9,23 +9,28 @@ Infrastructure (DRI)."
9 9
10LIC_FILES_CHKSUM = "file://COPYING;md5=8730ad58d11c7bbad9a7066d69f7808e" 10LIC_FILES_CHKSUM = "file://COPYING;md5=8730ad58d11c7bbad9a7066d69f7808e"
11 11
12DEPENDS += "virtual/libx11 drm libpciaccess pixman" 12SRC_URI += "file://configure-dri.patch"
13
14SRC_URI[md5sum] = "88d1a884f9b7bd07bf0755cfa34052d4"
15SRC_URI[sha256sum] = "7c8ffc492d59f34cac64093deb70717b4d9223cf416ecc6fa016ab2e8bde9501"
13 16
14SRC_URI += "file://compat-api-Map-changes-of-DamageUnregister-API-in-1..patch \ 17DEPENDS += "virtual/libx11 drm libpciaccess pixman"
15 "
16 18
17PACKAGECONFIG ??= "sna udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri', '', d)}" 19PACKAGECONFIG ??= "sna udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri1 dri2', '', d)}"
18 20
19PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,xf86driproto dri2proto" 21PACKAGECONFIG[dri] = "--enable-dri,--disable-dri"
22PACKAGECONFIG[dri1] = "--enable-dri1,--disable-dri1,xf86driproto"
23PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2,dri2proto"
24PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3,dri3proto"
20PACKAGECONFIG[sna] = "--enable-sna,--disable-sna" 25PACKAGECONFIG[sna] = "--enable-sna,--disable-sna"
21PACKAGECONFIG[uxa] = "--enable-uxa,--disable-uxa" 26PACKAGECONFIG[uxa] = "--enable-uxa,--disable-uxa"
22PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" 27PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev"
23PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc" 28PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
29PACKAGECONFIG[tools] = "--enable-tools,--disable-tools,libxinerama libxrandr libxdamage libxfixes libxcursor libxtst libxext libxrender"
24 30
25# --enable-kms-only option is required by ROOTLESS_X 31# --enable-kms-only option is required by ROOTLESS_X
26EXTRA_OECONF += '${@base_conditional( "ROOTLESS_X", "1", " --enable-kms-only", "", d )}' 32EXTRA_OECONF += '${@base_conditional( "ROOTLESS_X", "1", " --enable-kms-only", "", d )}'
27 33
28COMPATIBLE_HOST = '(i.86|x86_64).*-linux' 34COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
29 35
30SRC_URI[md5sum] = "a9a5c2c15766c06a024381efe0d724bb" 36FILES_${PN} += "${datadir}/polkit-1"
31SRC_URI[sha256sum] = "203d46064449da0e23a111418dfb189422ba96ea08707167c8dee463e2d745b1"