diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2022-10-04 13:06:32 -0500 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-10-11 22:01:08 +0000 |
commit | 56493d0c5fc8592d0d751d3eefb7d7afe3cfd378 (patch) | |
tree | a1bba9eca87bbed0a0de20c4171f3a96d94a77d7 /recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb | |
parent | bf58f243f888320ff19f494eda271f0f39b9e20f (diff) | |
download | meta-freescale-56493d0c5fc8592d0d751d3eefb7d7afe3cfd378.tar.gz |
vulkan: Downgrade to 1.2.182.0 for i.MX GPU
i.MX GPU drivers work with an older version of vulkan, so add the older
recipes.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
(cherry picked from commit 705d5ca01245e1b0aa42d7380ad79ff1c3db8fcb)
Diffstat (limited to 'recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb')
-rw-r--r-- | recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb b/recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb new file mode 100644 index 00000000..e7b38222 --- /dev/null +++ b/recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb | |||
@@ -0,0 +1,41 @@ | |||
1 | SUMMARY = "3D graphics and compute API common loader" | ||
2 | DESCRIPTION = "Vulkan is a new generation graphics and compute API \ | ||
3 | that provides efficient access to modern GPUs. These packages \ | ||
4 | provide only the common vendor-agnostic library loader, headers and \ | ||
5 | the vulkaninfo utility." | ||
6 | HOMEPAGE = "https://www.khronos.org/vulkan/" | ||
7 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Loader" | ||
8 | SECTION = "libs" | ||
9 | |||
10 | LICENSE = "Apache-2.0" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7dbefed23242760aa3475ee42801c5ac" | ||
12 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Loader.git;protocol=https;branch=master \ | ||
13 | " | ||
14 | SRCREV = "1896143df69d439b0933c1bb485f5a4587bdf2dc" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | REQUIRED_DISTRO_FEATURES = "vulkan" | ||
19 | |||
20 | inherit cmake features_check pkgconfig | ||
21 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
22 | |||
23 | DEPENDS += "vulkan-headers" | ||
24 | |||
25 | EXTRA_OECMAKE = "\ | ||
26 | -DBUILD_TESTS=OFF \ | ||
27 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ | ||
28 | -DASSEMBLER_WORKS=FALSE \ | ||
29 | -DVulkanHeaders_INCLUDE_DIR=${STAGING_INCDIR} \ | ||
30 | -DVulkanRegistry_DIR=${RECIPE_SYSROOT}/${datadir} \ | ||
31 | " | ||
32 | |||
33 | # must choose x11 or wayland or both | ||
34 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" | ||
35 | |||
36 | PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr" | ||
37 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" | ||
38 | |||
39 | RRECOMMENDS:${PN} = "mesa-vulkan-drivers" | ||
40 | |||
41 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||