diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2017-02-28 11:26:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-10 14:50:10 +0000 |
commit | c09a6bd8e26ed1e1bbfdf8e711cd3ed1e58ceaee (patch) | |
tree | b5b01c598cbaf1a39698fa34189780ab9323d4e1 /meta/recipes-graphics | |
parent | 51edde653707e7a3cd2186082458f01f32cd1996 (diff) | |
download | poky-c09a6bd8e26ed1e1bbfdf8e711cd3ed1e58ceaee.tar.gz |
mesa: Enable vulkan driver for intel
PACKAGECONFIG "vulkan" enables building libvulkan_intel.so.
The radeon driver can be added to recipe as well but it requires
llvm so recent that I couldn't test it.
(From OE-Core rev: 33c8918d41dda8218fd28d667182d71029ab22d5)
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index f0d01c6b23..46d8d611c1 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -41,6 +41,10 @@ DRIDRIVERS_append_x86-64 = ",radeon,r200,nouveau,i965,i915" | |||
41 | PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm" | 41 | PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm" |
42 | PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, dri3proto presentproto libxshmfence" | 42 | PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, dri3proto presentproto libxshmfence" |
43 | 43 | ||
44 | # Vulkan drivers need dri3 enabled | ||
45 | # radeon could be enabled as well but requires gallium-llvm with llvm >= 3.9 | ||
46 | PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers" | ||
47 | |||
44 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" | 48 | PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" |
45 | 49 | ||
46 | EGL_PLATFORMS = "drm" | 50 | EGL_PLATFORMS = "drm" |
@@ -88,7 +92,7 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
88 | libgles3-mesa libgles3-mesa-dev \ | 92 | libgles3-mesa libgles3-mesa-dev \ |
89 | libwayland-egl libwayland-egl-dev \ | 93 | libwayland-egl libwayland-egl-dev \ |
90 | libxatracker libxatracker-dev \ | 94 | libxatracker libxatracker-dev \ |
91 | mesa-megadriver \ | 95 | mesa-megadriver mesa-vulkan-drivers \ |
92 | " | 96 | " |
93 | 97 | ||
94 | do_install_append () { | 98 | do_install_append () { |
@@ -162,6 +166,7 @@ PACKAGES_DYNAMIC += "^mesa-driver-.*" | |||
162 | 166 | ||
163 | FILES_${PN} += "${sysconfdir}/drirc" | 167 | FILES_${PN} += "${sysconfdir}/drirc" |
164 | FILES_mesa-megadriver = "${libdir}/dri/*" | 168 | FILES_mesa-megadriver = "${libdir}/dri/*" |
169 | FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan" | ||
165 | FILES_libegl-mesa = "${libdir}/libEGL.so.*" | 170 | FILES_libegl-mesa = "${libdir}/libEGL.so.*" |
166 | FILES_libgbm = "${libdir}/libgbm.so.*" | 171 | FILES_libgbm = "${libdir}/libgbm.so.*" |
167 | FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" | 172 | FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" |
@@ -172,7 +177,7 @@ FILES_libosmesa = "${libdir}/libOSMesa.so.*" | |||
172 | FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*" | 177 | FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*" |
173 | FILES_libxatracker = "${libdir}/libxatracker.so.*" | 178 | FILES_libxatracker = "${libdir}/libxatracker.so.*" |
174 | 179 | ||
175 | FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" | 180 | FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan" |
176 | FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | 181 | FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" |
177 | FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" | 182 | FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" |
178 | FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" | 183 | FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" |