diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2022-10-04 13:06:32 -0500 |
---|---|---|
committer | Tom Hochstein <tom.hochstein@nxp.com> | 2022-10-11 16:38:16 -0500 |
commit | 705d5ca01245e1b0aa42d7380ad79ff1c3db8fcb (patch) | |
tree | e152773a2de4478bee18118f56c86d7de22007b9 | |
parent | 1b9f6007753bcd6e55fcff1f8b22c96c827b9e83 (diff) | |
download | meta-freescale-705d5ca01245e1b0aa42d7380ad79ff1c3db8fcb.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>
-rw-r--r-- | conf/machine/include/imx-base.inc | 9 | ||||
-rw-r--r-- | recipes-downgrade/vulkan/vulkan-headers_1.2.182.0.bb | 22 | ||||
-rw-r--r-- | recipes-downgrade/vulkan/vulkan-loader_1.2.182.0.bb | 41 | ||||
-rw-r--r-- | recipes-downgrade/vulkan/vulkan-tools_1.2.182.0.bb | 32 | ||||
-rw-r--r-- | recipes-graphics/vulkan/vulkan-loader_1.2.182.0.bbappend (renamed from recipes-graphics/vulkan/vulkan-loader_%.bbappend) | 0 |
5 files changed, 104 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index a0d6be13..e9b751e0 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -306,6 +306,11 @@ MACHINE_SOCARCH_FILTER:append:imxvpu = " \ | |||
306 | libimxvpuapi \ | 306 | libimxvpuapi \ |
307 | virtual/imxvpu \ | 307 | virtual/imxvpu \ |
308 | " | 308 | " |
309 | MACHINE_SOCARCH_FILTER:append:imxvulkan = " \ | ||
310 | vulkan-headers \ | ||
311 | vulkan-loader \ | ||
312 | vulkan-tools \ | ||
313 | " | ||
309 | MACHINE_SOCARCH_FILTER:append:imxgpu = " \ | 314 | MACHINE_SOCARCH_FILTER:append:imxgpu = " \ |
310 | virtual/egl \ | 315 | virtual/egl \ |
311 | virtual/mesa \ | 316 | virtual/mesa \ |
@@ -480,6 +485,10 @@ PREFERRED_VERSION_libdrm:mx6-nxp-bsp ??= "2.4.109.imx" | |||
480 | PREFERRED_VERSION_libdrm:mx7-nxp-bsp ??= "2.4.109.imx" | 485 | PREFERRED_VERSION_libdrm:mx7-nxp-bsp ??= "2.4.109.imx" |
481 | PREFERRED_VERSION_libdrm:mx8-nxp-bsp ??= "2.4.109.imx" | 486 | PREFERRED_VERSION_libdrm:mx8-nxp-bsp ??= "2.4.109.imx" |
482 | 487 | ||
488 | PREFERRED_VERSION_vulkan-headers:imxvulkan ??= "1.2.182.0" | ||
489 | PREFERRED_VERSION_vulkan-loader:imxvulkan ??= "1.2.182.0" | ||
490 | PREFERRED_VERSION_vulkan-tools:imxvulkan ??= "1.2.182.0" | ||
491 | |||
483 | # Use i.MX optee Version | 492 | # Use i.MX optee Version |
484 | PREFERRED_VERSION_optee-os:mx8-nxp-bsp ??= "3.17.0.imx" | 493 | PREFERRED_VERSION_optee-os:mx8-nxp-bsp ??= "3.17.0.imx" |
485 | PREFERRED_VERSION_optee-client:mx8-nxp-bsp ??= "3.17.0.imx" | 494 | PREFERRED_VERSION_optee-client:mx8-nxp-bsp ??= "3.17.0.imx" |
diff --git a/recipes-downgrade/vulkan/vulkan-headers_1.2.182.0.bb b/recipes-downgrade/vulkan/vulkan-headers_1.2.182.0.bb new file mode 100644 index 00000000..7c7d3e39 --- /dev/null +++ b/recipes-downgrade/vulkan/vulkan-headers_1.2.182.0.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Vulkan Header files and API registry" | ||
2 | DESCRIPTION = "Vulkan is a 3D graphics and compute API providing cross-platform access \ | ||
3 | to modern GPUs with low overhead and targeting realtime graphics applications such as \ | ||
4 | games and interactive media. This package contains the development headers \ | ||
5 | for packages wanting to make use of Vulkan." | ||
6 | HOMEPAGE = "https://www.khronos.org/vulkan/" | ||
7 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Headers" | ||
8 | SECTION = "libs" | ||
9 | |||
10 | LICENSE = "Apache-2.0" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
12 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Headers.git;branch=master;protocol=https" | ||
13 | |||
14 | SRCREV = "37164a5726f7e6113810f9557903a117498421cf" | ||
15 | |||
16 | S = "${WORKDIR}/git" | ||
17 | |||
18 | inherit cmake | ||
19 | |||
20 | FILES:${PN} += "${datadir}/vulkan" | ||
21 | |||
22 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
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+)+)" | ||
diff --git a/recipes-downgrade/vulkan/vulkan-tools_1.2.182.0.bb b/recipes-downgrade/vulkan/vulkan-tools_1.2.182.0.bb new file mode 100644 index 00000000..242b8973 --- /dev/null +++ b/recipes-downgrade/vulkan/vulkan-tools_1.2.182.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Vulkan Utilities and Tools" | ||
2 | DESCRIPTION = "Assist development by enabling developers to verify their applications correct use of the Vulkan API." | ||
3 | HOMEPAGE = "https://www.khronos.org/vulkan/" | ||
4 | BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-Tools" | ||
5 | SECTION = "libs" | ||
6 | |||
7 | LICENSE = "Apache-2.0" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
9 | SRC_URI = "git://github.com/KhronosGroup/Vulkan-Tools.git;protocol=https;branch=sdk-1.2.182" | ||
10 | SRCREV = "9d3305731c3be8de05c9f223a79959d448506a37" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | inherit cmake features_check | ||
15 | ANY_OF_DISTRO_FEATURES = "x11 wayland" | ||
16 | REQUIRED_DISTRO_FEATURES = "vulkan" | ||
17 | |||
18 | DEPENDS += "vulkan-headers vulkan-loader" | ||
19 | |||
20 | EXTRA_OECMAKE = "\ | ||
21 | -DBUILD_TESTS=OFF \ | ||
22 | -DBUILD_CUBE=OFF \ | ||
23 | -DPYTHON_EXECUTABLE=${HOSTTOOLS_DIR}/python3 \ | ||
24 | " | ||
25 | |||
26 | # must choose x11 or wayland or both | ||
27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" | ||
28 | |||
29 | 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" | ||
30 | PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland" | ||
31 | |||
32 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
diff --git a/recipes-graphics/vulkan/vulkan-loader_%.bbappend b/recipes-graphics/vulkan/vulkan-loader_1.2.182.0.bbappend index 722896ff..722896ff 100644 --- a/recipes-graphics/vulkan/vulkan-loader_%.bbappend +++ b/recipes-graphics/vulkan/vulkan-loader_1.2.182.0.bbappend | |||