summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-02-28 11:26:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-10 14:50:10 +0000
commitc09a6bd8e26ed1e1bbfdf8e711cd3ed1e58ceaee (patch)
treeb5b01c598cbaf1a39698fa34189780ab9323d4e1
parent51edde653707e7a3cd2186082458f01f32cd1996 (diff)
downloadpoky-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>
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc9
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"
41PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm" 41PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, --disable-dri, dri2proto libdrm"
42PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, dri3proto presentproto libxshmfence" 42PACKAGECONFIG[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
46PACKAGECONFIG[vulkan] = "--with-vulkan-drivers=intel, --without-vulkan-drivers"
47
44PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2" 48PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"
45 49
46EGL_PLATFORMS = "drm" 50EGL_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
94do_install_append () { 98do_install_append () {
@@ -162,6 +166,7 @@ PACKAGES_DYNAMIC += "^mesa-driver-.*"
162 166
163FILES_${PN} += "${sysconfdir}/drirc" 167FILES_${PN} += "${sysconfdir}/drirc"
164FILES_mesa-megadriver = "${libdir}/dri/*" 168FILES_mesa-megadriver = "${libdir}/dri/*"
169FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan"
165FILES_libegl-mesa = "${libdir}/libEGL.so.*" 170FILES_libegl-mesa = "${libdir}/libEGL.so.*"
166FILES_libgbm = "${libdir}/libgbm.so.*" 171FILES_libgbm = "${libdir}/libgbm.so.*"
167FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*" 172FILES_libgles1-mesa = "${libdir}/libGLESv1*.so.*"
@@ -172,7 +177,7 @@ FILES_libosmesa = "${libdir}/libOSMesa.so.*"
172FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*" 177FILES_libwayland-egl = "${libdir}/libwayland-egl.so.*"
173FILES_libxatracker = "${libdir}/libxatracker.so.*" 178FILES_libxatracker = "${libdir}/libxatracker.so.*"
174 179
175FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc" 180FILES_${PN}-dev = "${libdir}/pkgconfig/dri.pc ${includedir}/vulkan"
176FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" 181FILES_libegl-mesa-dev = "${libdir}/libEGL.* ${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc"
177FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h" 182FILES_libgbm-dev = "${libdir}/libgbm.* ${libdir}/pkgconfig/gbm.pc ${includedir}/gbm.h"
178FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc" 183FILES_libgl-mesa-dev = "${libdir}/libGL.* ${includedir}/GL ${libdir}/pkgconfig/gl.pc"