diff options
32 files changed, 705 insertions, 180 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 5966da36c..f9151e4f9 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -576,19 +576,20 @@ PREFERRED_PROVIDER_virtual/libg2d ?= "imx-gpu-g2d" | |||
| 576 | PREFERRED_PROVIDER_virtual/libg2d:imxdpu ?= "imx-dpu-g2d" | 576 | PREFERRED_PROVIDER_virtual/libg2d:imxdpu ?= "imx-dpu-g2d" |
| 577 | PREFERRED_PROVIDER_virtual/libg2d:mx93-nxp-bsp ?= "imx-pxp-g2d" | 577 | PREFERRED_PROVIDER_virtual/libg2d:mx93-nxp-bsp ?= "imx-pxp-g2d" |
| 578 | 578 | ||
| 579 | PREFERRED_VERSION_weston:imx-nxp-bsp ??= "14.0.1.imx" | 579 | PREFERRED_VERSION_weston:imx-nxp-bsp ??= "14.0.2.imx" |
| 580 | # i.MX 6 & 7 stay on weston 10.0 for fbdev | 580 | # i.MX 6 & 7 stay on weston 10.0 for fbdev |
| 581 | PREFERRED_VERSION_weston:mx6-nxp-bsp ??= "10.0.5.imx" | 581 | PREFERRED_VERSION_weston:mx6-nxp-bsp ??= "10.0.5.imx" |
| 582 | PREFERRED_VERSION_weston:mx7-nxp-bsp ??= "10.0.5.imx" | 582 | PREFERRED_VERSION_weston:mx7-nxp-bsp ??= "10.0.5.imx" |
| 583 | PREFERRED_VERSION_weston:imx-mainline-bsp = "" | 583 | PREFERRED_VERSION_weston:imx-mainline-bsp = "" |
| 584 | 584 | ||
| 585 | PREFERRED_VERSION_wayland-protocols:imx-nxp-bsp ??= "1.37.imx" | 585 | PREFERRED_VERSION_wayland-protocols:imx-nxp-bsp ??= "1.41.imx" |
| 586 | 586 | ||
| 587 | PREFERRED_VERSION_xwayland:imx-nxp-bsp ??= "24.1.6.imx" | 587 | PREFERRED_VERSION_xwayland:imx-nxp-bsp ??= "24.1.6.imx" |
| 588 | 588 | ||
| 589 | # Use i.MX libdrm Version | 589 | # Use i.MX libdrm Version |
| 590 | PREFERRED_VERSION_libdrm:imx-nxp-bsp ??= "2.4.123.imx" | 590 | PREFERRED_VERSION_libdrm:imx-nxp-bsp ??= "2.4.123.imx" |
| 591 | 591 | ||
| 592 | PREFERRED_VERSION_glslang:imxvulkan ??= "1.3.275.0.imx" | ||
| 592 | PREFERRED_VERSION_spirv-headers:imxvulkan ??= "1.3.275.0.imx" | 593 | PREFERRED_VERSION_spirv-headers:imxvulkan ??= "1.3.275.0.imx" |
| 593 | PREFERRED_VERSION_spirv-tools:imxvulkan ??= "1.3.275.0.imx" | 594 | PREFERRED_VERSION_spirv-tools:imxvulkan ??= "1.3.275.0.imx" |
| 594 | PREFERRED_VERSION_vulkan-headers:imxvulkan ??= "1.3.275.0.imx" | 595 | PREFERRED_VERSION_vulkan-headers:imxvulkan ??= "1.3.275.0.imx" |
diff --git a/recipes-downgrade/glslang/glslang/0001-generate-glslang-pkg-config.patch b/recipes-downgrade/glslang/glslang/0001-generate-glslang-pkg-config.patch new file mode 100644 index 000000000..337a999bf --- /dev/null +++ b/recipes-downgrade/glslang/glslang/0001-generate-glslang-pkg-config.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From 4cede5edcff96134baf35953d58595c4aa5f1fc5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 3 | Date: Sun, 7 Feb 2021 01:30:39 +0000 | ||
| 4 | Subject: [PATCH] generate glslang pkg-config | ||
| 5 | |||
| 6 | Based on https://src.fedoraproject.org/rpms/glslang/blob/main/f/0001-pkg-config-compatibility.patch | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [independently developed patch submitted at https://github.com/KhronosGroup/glslang/pull/3371] | ||
| 9 | |||
| 10 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
| 11 | --- | ||
| 12 | glslang/CMakeLists.txt | 2 ++ | ||
| 13 | glslang/glslang.pc.cmake.in | 11 +++++++++++ | ||
| 14 | 2 files changed, 13 insertions(+) | ||
| 15 | create mode 100644 glslang/glslang.pc.cmake.in | ||
| 16 | |||
| 17 | diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt | ||
| 18 | index 37eecaad..6974935c 100644 | ||
| 19 | --- a/glslang/CMakeLists.txt | ||
| 20 | +++ b/glslang/CMakeLists.txt | ||
| 21 | @@ -251,6 +251,8 @@ if(PROJECT_IS_TOP_LEVEL) | ||
| 22 | ") | ||
| 23 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/glslangTargets.cmake" DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake) | ||
| 24 | endif() | ||
| 25 | + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/glslang.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc @ONLY) | ||
| 26 | + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/glslang.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | ||
| 27 | |||
| 28 | set(PUBLIC_HEADERS | ||
| 29 | Public/ResourceLimits.h | ||
| 30 | diff --git a/glslang/glslang.pc.cmake.in b/glslang/glslang.pc.cmake.in | ||
| 31 | new file mode 100644 | ||
| 32 | index 00000000..43104e68 | ||
| 33 | --- /dev/null | ||
| 34 | +++ b/glslang/glslang.pc.cmake.in | ||
| 35 | @@ -0,0 +1,11 @@ | ||
| 36 | +prefix=@CMAKE_INSTALL_PREFIX@ | ||
| 37 | +exec_prefix=@CMAKE_INSTALL_PREFIX@ | ||
| 38 | +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ | ||
| 39 | +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ | ||
| 40 | + | ||
| 41 | +Name: @PROJECT_NAME@ | ||
| 42 | +Description: OpenGL and OpenGL ES shader front end and validator | ||
| 43 | +Requires: | ||
| 44 | +Version: @GLSLANG_VERSION@ | ||
| 45 | +Libs: -L${libdir} -lglslang -lHLSL -lSPVRemapper | ||
| 46 | +Cflags: -I${includedir} | ||
diff --git a/recipes-downgrade/glslang/glslang/0002-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch b/recipes-downgrade/glslang/glslang/0002-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch new file mode 100644 index 000000000..9f9270e6e --- /dev/null +++ b/recipes-downgrade/glslang/glslang/0002-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From e40c14a3e007fac0e4f2e4164fdf14d1712355bd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sergei Trofimovich <slyich@gmail.com> | ||
| 3 | Date: Fri, 2 Aug 2024 22:44:21 +0100 | ||
| 4 | Subject: [PATCH] SPIRV/SpvBuilder.h: add missing <cstdint> include | ||
| 5 | |||
| 6 | Without the change `glslang` build fails on upcoming `gcc-15` as: | ||
| 7 | |||
| 8 | In file included from /build/source/SPIRV/GlslangToSpv.cpp:45: | ||
| 9 | SPIRV/SpvBuilder.h:248:30: error: 'uint32_t' has not been declared | ||
| 10 | 248 | Id makeDebugLexicalBlock(uint32_t line); | ||
| 11 | | ^~~~~~~~ | ||
| 12 | --- | ||
| 13 | SPIRV/SpvBuilder.h | 1 + | ||
| 14 | 1 file changed, 1 insertion(+) | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://github.com/KhronosGroup/glslang/commit/e40c14a3e007fac0e4f2e4164fdf14d1712355bd] | ||
| 17 | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | ||
| 18 | |||
| 19 | diff --git a/SPIRV/SpvBuilder.h b/SPIRV/SpvBuilder.h | ||
| 20 | index f86dd81b3..d688436a6 100644 | ||
| 21 | --- a/SPIRV/SpvBuilder.h | ||
| 22 | +++ b/SPIRV/SpvBuilder.h | ||
| 23 | @@ -56,6 +56,7 @@ namespace spv { | ||
| 24 | } | ||
| 25 | |||
| 26 | #include <algorithm> | ||
| 27 | +#include <cstdint> | ||
| 28 | #include <map> | ||
| 29 | #include <memory> | ||
| 30 | #include <set> | ||
| 31 | -- | ||
| 32 | 2.34.1 | ||
| 33 | |||
diff --git a/recipes-downgrade/glslang/glslang_1.3.275.0.imx.bb b/recipes-downgrade/glslang/glslang_1.3.275.0.imx.bb new file mode 100644 index 000000000..7b3c2f606 --- /dev/null +++ b/recipes-downgrade/glslang/glslang_1.3.275.0.imx.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | SUMMARY = "OpenGL / OpenGL ES Reference Compiler" | ||
| 2 | DESCRIPTION = "Glslang is the official reference compiler front end for the \ | ||
| 3 | OpenGL ES and OpenGL shading languages. It implements a strict interpretation \ | ||
| 4 | of the specifications for these languages. It is open and free for anyone to use, \ | ||
| 5 | either from a command line or programmatically." | ||
| 6 | SECTION = "graphics" | ||
| 7 | HOMEPAGE = "https://www.khronos.org/opengles/sdk/tools/Reference-Compiler" | ||
| 8 | LICENSE = "BSD-3-Clause & BSD-2-Clause & MIT & Apache-2.0 & GPL-3-with-bison-exception" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2a2b5acd7bc4844964cfda45fe807dc3" | ||
| 10 | |||
| 11 | SRCREV = "a91631b260cba3f22858d6c6827511e636c2458a" | ||
| 12 | SRC_URI = "git://github.com/KhronosGroup/glslang.git;protocol=https;branch=main \ | ||
| 13 | file://0001-generate-glslang-pkg-config.patch \ | ||
| 14 | file://0002-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch" | ||
| 15 | PE = "1" | ||
| 16 | # These recipes need to be updated in lockstep with each other: | ||
| 17 | # glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools | ||
| 18 | # vulkan-validation-layers, vulkan-utility-libraries. | ||
| 19 | # The tags versions should always be sdk-x.y.z, as this is what | ||
| 20 | # upstream considers a release. | ||
| 21 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | ||
| 22 | |||
| 23 | inherit cmake python3native | ||
| 24 | |||
| 25 | DEPENDS = "spirv-tools" | ||
| 26 | |||
| 27 | EXTRA_OECMAKE = " \ | ||
| 28 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 29 | -DBUILD_SHARED_LIBS=ON \ | ||
| 30 | -DENABLE_PCH=OFF \ | ||
| 31 | -DENABLE_CTEST=OFF \ | ||
| 32 | -DBUILD_EXTERNAL=OFF \ | ||
| 33 | -DALLOW_EXTERNAL_SPIRV_TOOLS=ON \ | ||
| 34 | " | ||
| 35 | |||
| 36 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.3.0.bb b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.4.0.0.bb index bf0a127c9..4e3444b9d 100644 --- a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.3.0.bb +++ b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.4.0.0.bb | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | # Copyright (C) 2016 Freescale Semiconductor | 1 | # Copyright (C) 2016 Freescale Semiconductor |
| 2 | # Copyright 2017-2024 NXP | 2 | # Copyright 2017-2025 NXP |
| 3 | # Released under the MIT license (see COPYING.MIT for the terms) | 3 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 4 | 4 | ||
| 5 | DESCRIPTION = "G2D library using i.MX DPU" | 5 | DESCRIPTION = "G2D library using i.MX DPU" |
| 6 | LICENSE = "Proprietary" | 6 | LICENSE = "Proprietary" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a93b654673e1bc8398ed1f30e0813359" |
| 8 | 8 | ||
| 9 | DEPENDS = "libdrm ${LIBGAL_IMX}" | 9 | DEPENDS = "libdrm ${LIBGAL_IMX}" |
| 10 | LIBGAL_IMX = "" | 10 | LIBGAL_IMX = "" |
| @@ -15,13 +15,13 @@ PROVIDES += "virtual/libg2d" | |||
| 15 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;fsl-eula=true;name=${IMX_SRC_URI_NAME}" | 15 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;fsl-eula=true;name=${IMX_SRC_URI_NAME}" |
| 16 | IMX_BIN_NAME = "${BPN}-${IMX_SRC_URI_NAME}-${PV}-${IMX_SRCREV_ABBREV}" | 16 | IMX_BIN_NAME = "${BPN}-${IMX_SRC_URI_NAME}-${PV}-${IMX_SRCREV_ABBREV}" |
| 17 | 17 | ||
| 18 | IMX_SRCREV_ABBREV = "8d2a88d" | 18 | IMX_SRCREV_ABBREV = "9e8bbf1" |
| 19 | IMX_SRC_URI_NAME = "v1" | 19 | IMX_SRC_URI_NAME = "v1" |
| 20 | SRC_URI[v1.sha256sum] = "20325a7c6090b79e012339aed25fa4c3b760efcc32be339e389a36a15e44bdfc" | 20 | SRC_URI[v1.sha256sum] = "67be9b56a5d2196613460d3cc3a734d7a088e2177377e27f83287766d5d8cf70" |
| 21 | 21 | ||
| 22 | IMX_SRCREV_ABBREV:imxmali = "8d2a88d" | 22 | IMX_SRCREV_ABBREV:imxmali = "9e8bbf1" |
| 23 | IMX_SRC_URI_NAME:imxmali = "v2" | 23 | IMX_SRC_URI_NAME:imxmali = "v2" |
| 24 | SRC_URI[v2.sha256sum] = "eb7108256cb55d996c07f6941d0d4a76beaf73458494b2c902d907bc8228eeeb" | 24 | SRC_URI[v2.sha256sum] = "f56dae607f89e0f414625657d8345c5d1b68b79d3ac61e50016fbe4d49a91402" |
| 25 | 25 | ||
| 26 | S = "${UNPACKDIR}/${IMX_BIN_NAME}" | 26 | S = "${UNPACKDIR}/${IMX_BIN_NAME}" |
| 27 | 27 | ||
diff --git a/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb b/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb index 1f62398fe..98e976100 100644 --- a/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb +++ b/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb | |||
| @@ -5,11 +5,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0858ec9c7a80c4a2cf16e4f825a2cc91" | |||
| 5 | 5 | ||
| 6 | DEPENDS = "cairo" | 6 | DEPENDS = "cairo" |
| 7 | 7 | ||
| 8 | PV = "2.3+git${SRCPV}" | 8 | PV = "2.4+git" |
| 9 | 9 | ||
| 10 | SRC_URI = "${GPU_G2D_SAMPLES_SRC};branch=${SRCBRANCH}" | 10 | SRC_URI = "${GPU_G2D_SAMPLES_SRC};branch=${SRCBRANCH}" |
| 11 | GPU_G2D_SAMPLES_SRC ?= "git://github.com/nxp-imx/g2d-samples.git;protocol=https" | 11 | GPU_G2D_SAMPLES_SRC ?= "git://github.com/nxp-imx/g2d-samples.git;protocol=https" |
| 12 | SRCBRANCH = "imx_2.3" | 12 | SRCBRANCH = "imx_2.4" |
| 13 | SRCREV = "7d12c50c07d73650b4c97906ce917aff429238f8" | 13 | SRCREV = "7d12c50c07d73650b4c97906ce917aff429238f8" |
| 14 | 14 | ||
| 15 | inherit pkgconfig | 15 | inherit pkgconfig |
| @@ -21,6 +21,7 @@ PACKAGECONFIG_IMPLEMENTATION:mx95-nxp-bsp = "dpu95" | |||
| 21 | PACKAGECONFIG_IMPLEMENTATION:imxgpu2d = "gpu-drm" | 21 | PACKAGECONFIG_IMPLEMENTATION:imxgpu2d = "gpu-drm" |
| 22 | PACKAGECONFIG_IMPLEMENTATION:imxgpu2d:imxfbdev = "gpu-fbdev" | 22 | PACKAGECONFIG_IMPLEMENTATION:imxgpu2d:imxfbdev = "gpu-fbdev" |
| 23 | PACKAGECONFIG_IMPLEMENTATION:mx93-nxp-bsp = "pxp" | 23 | PACKAGECONFIG_IMPLEMENTATION:mx93-nxp-bsp = "pxp" |
| 24 | PACKAGECONFIG_IMPLEMENTATION:mx943-nxp-bsp = "pxp" | ||
| 24 | 25 | ||
| 25 | PACKAGECONFIG[dpu] = " \ | 26 | PACKAGECONFIG[dpu] = " \ |
| 26 | BUILD_IMPLEMENTATION=dpu, \ | 27 | BUILD_IMPLEMENTATION=dpu, \ |
| @@ -71,4 +72,4 @@ FILES:${PN} += "/opt" | |||
| 71 | 72 | ||
| 72 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 73 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
| 73 | 74 | ||
| 74 | COMPATIBLE_MACHINE = "(imxgpu2d|mx93-nxp-bsp|mx95-nxp-bsp)" | 75 | COMPATIBLE_MACHINE = "(imxgpu2d|mx93-nxp-bsp|mx943-nxp-bsp|mx95-nxp-bsp)" |
diff --git a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p3.0.bb b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p3.2.bb index 3c8784d0f..d1f23d910 100644 --- a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p3.0.bb +++ b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p3.2.bb | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | # Copyright (C) 2016 Freescale Semiconductor | 1 | # Copyright (C) 2016 Freescale Semiconductor |
| 2 | # Copyright 2017-2024 NXP | 2 | # Copyright 2017-2022 NXP |
| 3 | # Copyright 2018 (C) O.S. Systems Software LTDA. | 3 | # Copyright 2018 (C) O.S. Systems Software LTDA. |
| 4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 5 | 5 | ||
| 6 | DESCRIPTION = "G2D library using i.MX GPU" | 6 | DESCRIPTION = "G2D library using i.MX GPU" |
| 7 | LICENSE = "Proprietary" | 7 | LICENSE = "Proprietary" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=a93b654673e1bc8398ed1f30e0813359" |
| 9 | DEPENDS = "libgal-imx" | 9 | DEPENDS = "libgal-imx" |
| 10 | PROVIDES = "virtual/libg2d" | 10 | PROVIDES = "virtual/libg2d" |
| 11 | 11 | ||
| 12 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" | 12 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" |
| 13 | IMX_BIN_NAME = "${BP}-${TARGET_ARCH}-${IMX_SRCREV_ABBREV}" | 13 | IMX_BIN_NAME = "${BP}-${TARGET_ARCH}-${IMX_SRCREV_ABBREV}" |
| 14 | IMX_SRCREV_ABBREV = "c600d03" | 14 | IMX_SRCREV_ABBREV = "3c5e429" |
| 15 | SRC_URI[aarch64.sha256sum] = "e6c336c0b876efab7598a2d7817111772284487f646d5d83c400692f2cdfebe3" | 15 | SRC_URI[aarch64.sha256sum] = "190bc9203e60e5de508e1dcf057b36d2c9bc3667c6972fd12f7df797e508a22d" |
| 16 | SRC_URI[arm.sha256sum] = "6e1a42f2c570582b8038d1b5c86dbdcd645e75cc10a1db23e716f662d1c1329f" | 16 | SRC_URI[arm.sha256sum] = "aaf9a38fe446af579b16a836bf297f8cb1b2842ca3a784bedc21e32d37271ab4" |
| 17 | 17 | ||
| 18 | S = "${UNPACKDIR}/${IMX_BIN_NAME}" | 18 | S = "${UNPACKDIR}/${IMX_BIN_NAME}" |
| 19 | 19 | ||
diff --git a/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb b/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb index 9fd170ad5..8165c0c62 100644 --- a/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb +++ b/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb | |||
| @@ -1,27 +1,29 @@ | |||
| 1 | # Copyright (C) 2016 Freescale Semiconductor | 1 | # Copyright (C) 2016 Freescale Semiconductor |
| 2 | # Copyright 2017-2024 NXP | 2 | # Copyright 2017-2025 NXP |
| 3 | # Released under the MIT license (see COPYING.MIT for the terms) | 3 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 4 | 4 | ||
| 5 | DESCRIPTION = "G2D library using i.MX PXP" | 5 | DESCRIPTION = "G2D library using i.MX PXP" |
| 6 | LICENSE = "Proprietary" | 6 | LICENSE = "Proprietary" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c0fb372b5d7f12181de23ef480f225f3" | 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a93b654673e1bc8398ed1f30e0813359" |
| 8 | 8 | ||
| 9 | PROVIDES += "virtual/libg2d" | 9 | PROVIDES += "virtual/libg2d" |
| 10 | 10 | ||
| 11 | PV = "2.3+git${SRCPV}" | 11 | PV = "2.4+git" |
| 12 | 12 | ||
| 13 | SRC_URI = "${IMX_PXP_G2D_SRC};branch=${SRCBRANCH}" | 13 | SRC_URI = "${IMX_PXP_G2D_SRC};branch=${SRCBRANCH}" |
| 14 | IMX_PXP_G2D_SRC ?= "git://github.com/nxp-imx/imx-g2d-pxp.git;protocol=https" | 14 | IMX_PXP_G2D_SRC ?= "git://github.com/nxp-imx/imx-g2d-pxp.git;protocol=https" |
| 15 | SRCBRANCH = "imx_2.3" | 15 | SRCBRANCH = "imx_2.4" |
| 16 | SRCREV = "f3aabbcb7977a0a17c962c62b02bc829855f8edf" | 16 | SRCREV = "c3368ea82e4507d7b35aee258c28d04f9f8fb8e9" |
| 17 | 17 | ||
| 18 | inherit use-imx-headers | 18 | inherit use-imx-headers |
| 19 | 19 | ||
| 20 | EXTRA_OEMAKE = "PLATFORM=IMX93 INCLUDE='-I${STAGING_INCDIR_IMX}' DEST_DIR=${D}" | 20 | EXTRA_OEMAKE = "PLATFORM=${IMX_PLATFORM} INCLUDE='-I${STAGING_INCDIR_IMX}' DEST_DIR=${D}" |
| 21 | IMX_PLATFORM:mx93-nxp-bsp = "IMX93" | ||
| 22 | IMX_PLATFORM:mx943-nxp-bsp = "IMX943" | ||
| 21 | 23 | ||
| 22 | do_install() { | 24 | do_install() { |
| 23 | oe_runmake install | 25 | oe_runmake install |
| 24 | } | 26 | } |
| 25 | 27 | ||
| 26 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
| 27 | COMPATIBLE_MACHINE = "(mx93-nxp-bsp)" | 29 | COMPATIBLE_MACHINE = "(mx93-nxp-bsp|mx943-nxp-bsp)" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc index 88081cc61..ebb759850 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
| @@ -330,7 +330,6 @@ FILES:libegl-imx-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/ | |||
| 330 | INSANE_SKIP:libegl-imx += "dev-so" | 330 | INSANE_SKIP:libegl-imx += "dev-so" |
| 331 | 331 | ||
| 332 | FILES:libgal-imx = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" | 332 | FILES:libgal-imx = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" |
| 333 | FILES:libgal-imx-dev:remove = "${includedir}/HAL" | ||
| 334 | RDEPENDS:libgal-imx += "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'valgrind', '', d)}" | 333 | RDEPENDS:libgal-imx += "${@bb.utils.contains('PACKAGECONFIG', 'valgrind', 'valgrind', '', d)}" |
| 335 | RPROVIDES:libgal-imx += "libgal-imx" | 334 | RPROVIDES:libgal-imx += "libgal-imx" |
| 336 | RRECOMMENDS:libgal-imx += "kernel-module-imx-gpu-viv" | 335 | RRECOMMENDS:libgal-imx += "kernel-module-imx-gpu-viv" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch32.bb deleted file mode 100644 index 9fbb7e924..000000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch32.bb +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | require imx-gpu-viv-6.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" | ||
| 4 | |||
| 5 | IMX_SRCREV_ABBREV = "c600d03" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "fe8fc231f18047b9547a038e111c08e855760190d0e9848ead22b383d793499d" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "(mx6q-nxp-bsp|mx6dl-nxp-bsp|mx6sx-nxp-bsp|mx6sl-nxp-bsp|mx7ulp-nxp-bsp)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch64.bb deleted file mode 100644 index aeed17fe8..000000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.0-aarch64.bb +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | require imx-gpu-viv-6.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" | ||
| 4 | |||
| 5 | IMX_SRCREV_ABBREV = "c600d03" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "82e1bb6304d2aac70c72b691239d1bb5f6738cadfa812d07196db2f580c63d29" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch32.bb new file mode 100644 index 000000000..f0e7d285d --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch32.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require imx-gpu-viv-6.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a93b654673e1bc8398ed1f30e0813359" | ||
| 4 | |||
| 5 | IMX_SRCREV_ABBREV = "3c5e429" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "ea7ffb01fd7cd88f2a308e5b12b40cc3c9553b8ff2941c4867943b4fee265d27" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "(mx6q-nxp-bsp|mx6dl-nxp-bsp|mx6sx-nxp-bsp|mx6sl-nxp-bsp|mx7ulp-nxp-bsp)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch64.bb new file mode 100644 index 000000000..38870add7 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p3.2-aarch64.bb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | require imx-gpu-viv-6.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=a93b654673e1bc8398ed1f30e0813359" | ||
| 4 | |||
| 5 | IMX_SRCREV_ABBREV = "3c5e429" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "bf6fe102e8aa7a16373392efcf6ac45d705bbb95f5c39501da8aaa30957c554f" | ||
| 8 | |||
| 9 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/mali/mali-imx.inc b/recipes-graphics/mali/mali-imx.inc index e4fafeb0b..8956d7dd6 100644 --- a/recipes-graphics/mali/mali-imx.inc +++ b/recipes-graphics/mali/mali-imx.inc | |||
| @@ -45,6 +45,7 @@ FILES:${PN}-opencl-icd = " \ | |||
| 45 | ${sysconfdir}/OpenCL" | 45 | ${sysconfdir}/OpenCL" |
| 46 | FILES:${PN}-libvulkan = " \ | 46 | FILES:${PN}-libvulkan = " \ |
| 47 | ${sysconfdir}/vulkan" | 47 | ${sysconfdir}/vulkan" |
| 48 | RDEPENDS:${PN}-libvulkan = "vulkan-wsi-layer" | ||
| 48 | 49 | ||
| 49 | FILES:${PN}-dev = " \ | 50 | FILES:${PN}-dev = " \ |
| 50 | ${bindir}/malisc" | 51 | ${bindir}/malisc" |
diff --git a/recipes-graphics/mali/mali-imx_r53.0.bb b/recipes-graphics/mali/mali-imx_r54.0.bb index 74d9d0faf..85ac6f8ca 100644 --- a/recipes-graphics/mali/mali-imx_r53.0.bb +++ b/recipes-graphics/mali/mali-imx_r54.0.bb | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | require mali-imx.inc | 1 | require mali-imx.inc |
| 2 | 2 | ||
| 3 | LICENSE = "Proprietary" | 3 | LICENSE = "Proprietary" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=c0fb372b5d7f12181de23ef480f225f3" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=a93b654673e1bc8398ed1f30e0813359" |
| 5 | 5 | ||
| 6 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true" | 6 | SRC_URI = "${FSL_MIRROR}/${BP}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true" |
| 7 | SRC_URI[sha256sum] = "67a008bc64af4f3d9ad91465af3c0c3ac90ff8dcbcdaed96036eccc62880c7a3" | 7 | SRC_URI[sha256sum] = "df89c80456c73ee8c235201b98c0b678d993083540912eab968dc0cbf683ad26" |
| 8 | IMX_SRCREV_ABBREV = "f2226b0" | 8 | IMX_SRCREV_ABBREV = "2943b3d" |
| 9 | 9 | ||
| 10 | S = "${UNPACKDIR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}" | 10 | S = "${UNPACKDIR}/${BP}-${IMX_SRCREV_ABBREV}" |
| 11 | 11 | ||
| 12 | inherit fsl-eula-unpack | 12 | inherit fsl-eula-unpack |
| 13 | 13 | ||
diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend index 120561d19..1c75c9884 100644 --- a/recipes-graphics/mesa/mesa.bbappend +++ b/recipes-graphics/mesa/mesa.bbappend | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | PROVIDES:remove:imxgpu = "virtual/egl" | 1 | PROVIDES:remove:imxgpu = "virtual/egl" |
| 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" |
| 3 | 3 | ||
| 4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
| 5 | SRC_URI:append:mx93-nxp-bsp = " file://0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch" | ||
| 6 | SRC_URI:append:imx-nxp-bsp = " file://0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch" | ||
| 7 | |||
| 8 | PACKAGECONFIG:remove:imxgpu = "egl gbm" | 4 | PACKAGECONFIG:remove:imxgpu = "egl gbm" |
| 9 | PACKAGECONFIG:remove:imxgpu3d = "gles" | 5 | PACKAGECONFIG:remove:imxgpu3d = "gles" |
| 10 | 6 | ||
diff --git a/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch b/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch deleted file mode 100644 index 3dc8db099..000000000 --- a/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From 612c3dc98d5d050b9cfee16ec77ca3c8358caa0d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wujian Sun <wujian.sun_1@nxp.com> | ||
| 3 | Date: Mon, 29 Apr 2024 17:29:16 +0800 | ||
| 4 | Subject: [PATCH] MGS-7599 cso: fix virgl driver assert issue | ||
| 5 | |||
| 6 | A workaround that remove PIPE_MAX_SAMPLERS and | ||
| 7 | PIPE_MAX_CONSTANT_BUFFERS assert. | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [i.MX-specific] | ||
| 10 | |||
| 11 | Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com> | ||
| 12 | --- | ||
| 13 | src/gallium/auxiliary/cso_cache/cso_context.c | 2 -- | ||
| 14 | src/gallium/drivers/virgl/virgl_screen.c | 2 +- | ||
| 15 | 2 files changed, 1 insertion(+), 3 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c | ||
| 18 | index 3e86def31c5..ffc6d22da9c 100644 | ||
| 19 | --- a/src/gallium/auxiliary/cso_cache/cso_context.c | ||
| 20 | +++ b/src/gallium/auxiliary/cso_cache/cso_context.c | ||
| 21 | @@ -403,10 +403,8 @@ cso_unbind_context(struct cso_context *ctx) | ||
| 22 | PIPE_SHADER_CAP_MAX_CONST_BUFFERS); | ||
| 23 | int maximg = scr->get_shader_param(scr, sh, | ||
| 24 | PIPE_SHADER_CAP_MAX_SHADER_IMAGES); | ||
| 25 | - assert(maxsam <= PIPE_MAX_SAMPLERS); | ||
| 26 | assert(maxview <= PIPE_MAX_SHADER_SAMPLER_VIEWS); | ||
| 27 | assert(maxssbo <= PIPE_MAX_SHADER_BUFFERS); | ||
| 28 | - assert(maxcb <= PIPE_MAX_CONSTANT_BUFFERS); | ||
| 29 | assert(maximg <= PIPE_MAX_SHADER_IMAGES); | ||
| 30 | if (maxsam > 0) { | ||
| 31 | ctx->base.pipe->bind_sampler_states(ctx->base.pipe, sh, 0, maxsam, zeros); | ||
| 32 | diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c | ||
| 33 | index 389a1935cc3..7c7f8ba576b 100644 | ||
| 34 | --- a/src/gallium/drivers/virgl/virgl_screen.c | ||
| 35 | +++ b/src/gallium/drivers/virgl/virgl_screen.c | ||
| 36 | @@ -435,7 +435,7 @@ virgl_get_shader_param(struct pipe_screen *screen, | ||
| 37 | return 1; | ||
| 38 | case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: | ||
| 39 | return MIN2(vscreen->caps.caps.v2.max_shader_sampler_views, | ||
| 40 | - PIPE_MAX_SHADER_SAMPLER_VIEWS); | ||
| 41 | + PIPE_MAX_SAMPLERS); | ||
| 42 | case PIPE_SHADER_CAP_INTEGERS: | ||
| 43 | return vscreen->caps.caps.v1.glsl_level >= 130; | ||
| 44 | case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH: | ||
| 45 | -- | ||
| 46 | 2.17.1 | ||
| 47 | |||
diff --git a/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch b/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch deleted file mode 100644 index 0cdcbfca6..000000000 --- a/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From 188d7b01037e5a0249e63c2600cf15a288a9ff3f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wujian Sun <wujian.sun_1@nxp.com> | ||
| 3 | Date: Fri, 19 Apr 2024 18:38:17 +0800 | ||
| 4 | Subject: [PATCH] MGS-7673 egl/dri2: fix video showing wrong frame | ||
| 5 | |||
| 6 | Softpipe driver doesn't support EGL_EXT_image_dma_buf_import_modifiers | ||
| 7 | extension. | ||
| 8 | Should not report the extension. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com> | ||
| 13 | --- | ||
| 14 | src/egl/drivers/dri2/egl_dri2.c | 3 ++- | ||
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c | ||
| 18 | index 992f0e3d46d..6ee209d4b47 100644 | ||
| 19 | --- a/src/egl/drivers/dri2/egl_dri2.c | ||
| 20 | +++ b/src/egl/drivers/dri2/egl_dri2.c | ||
| 21 | @@ -942,7 +942,8 @@ dri2_setup_screen(_EGLDisplay *disp) | ||
| 22 | |||
| 23 | #ifdef HAVE_LIBDRM | ||
| 24 | if (dri2_dpy->image->base.version >= 8 && | ||
| 25 | - dri2_dpy->image->createImageFromDmaBufs) { | ||
| 26 | + dri2_dpy->image->createImageFromDmaBufs && | ||
| 27 | + strcmp("softpipe", pscreen->get_name(pscreen))) { | ||
| 28 | disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE; | ||
| 29 | disp->Extensions.EXT_image_dma_buf_import_modifiers = EGL_TRUE; | ||
| 30 | } | ||
| 31 | -- | ||
| 32 | 2.17.1 | ||
| 33 | |||
diff --git a/recipes-graphics/piglit/piglit/0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch b/recipes-graphics/piglit/piglit/0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch new file mode 100644 index 000000000..3e673a497 --- /dev/null +++ b/recipes-graphics/piglit/piglit/0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From c14b65106687b1097f5d50a993707d8a2f99005b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: jiajia Qian <jiajia.qian@nxp.com> | ||
| 3 | Date: Tue, 19 Dec 2023 13:23:33 +0800 | ||
| 4 | Subject: [PATCH] tests: Fix cl test Include Directories: error : Error(0,8) : | ||
| 5 | Cannot find the header file include_test.h. | ||
| 6 | |||
| 7 | Modified CMakeLists.txt to install include_test.h file in piglit/tests/cl/program/build/ folder. | ||
| 8 | |||
| 9 | Modified the relative path in include-directories.cl from "tests/cl/program/build" to "../lib/piglit/tests/cl/program/build". | ||
| 10 | |||
| 11 | Upstream-Status: Pending [https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/853] | ||
| 12 | Signed-off-by: jiajia Qian <jiajia.qian@nxp.com> | ||
| 13 | --- | ||
| 14 | CMakeLists.txt | 1 + | ||
| 15 | tests/cl/program/build/include-directories.cl | 2 +- | ||
| 16 | 2 files changed, 2 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | Index: git/tests/cl/program/build/include-directories.cl | ||
| 19 | =================================================================== | ||
| 20 | --- git.orig/tests/cl/program/build/include-directories.cl | ||
| 21 | +++ git/tests/cl/program/build/include-directories.cl | ||
| 22 | @@ -2,7 +2,7 @@ | ||
| 23 | [config] | ||
| 24 | name: Include Directories | ||
| 25 | clc_version_min: 10 | ||
| 26 | -build_options: -I . -I tests/cl/program/build | ||
| 27 | +build_options: -I . -I ../lib/piglit/tests/cl/program/build | ||
| 28 | !*/ | ||
| 29 | |||
| 30 | #include "include_test.h" | ||
diff --git a/recipes-graphics/piglit/piglit/0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch b/recipes-graphics/piglit/piglit/0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch new file mode 100644 index 000000000..a4935b169 --- /dev/null +++ b/recipes-graphics/piglit/piglit/0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | From 2673c2adc81a408a4238f786cb2d795a65308ce6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Eric Guo <eric.guo@nxp.com> | ||
| 3 | Date: Fri, 11 Apr 2025 17:15:40 +0800 | ||
| 4 | Subject: [PATCH] cl: Add mutually exclusive memory flags for | ||
| 5 | CL_MEM_KERNEL_READ_AND_WRITE | ||
| 6 | |||
| 7 | Fix cl-api-create-buffer on mali DDK. | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/1004] | ||
| 10 | Signed-off-by: Eric Guo <eric.guo@nxp.com> | ||
| 11 | --- | ||
| 12 | tests/util/piglit-util-cl-enum.c | 7 ++++++- | ||
| 13 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/tests/util/piglit-util-cl-enum.c b/tests/util/piglit-util-cl-enum.c | ||
| 16 | index 5d43bc102..f2c185c9c 100644 | ||
| 17 | --- a/tests/util/piglit-util-cl-enum.c | ||
| 18 | +++ b/tests/util/piglit-util-cl-enum.c | ||
| 19 | @@ -979,7 +979,7 @@ PIGLIT_CL_DEFINE_ENUM_2(cl_command_queue_properties, 2, 2, 2, 4, 4 /* really? */ | ||
| 20 | PIGLIT_CL_DEFINE_ENUM_PTR_2(cl_command_queue_properties); | ||
| 21 | |||
| 22 | |||
| 23 | -PIGLIT_CL_DEFINE_ENUM(cl_mem_flags, cl_mem_flags_mutexes, 5, 5, 8, 8, 8) = { | ||
| 24 | +PIGLIT_CL_DEFINE_ENUM(cl_mem_flags, cl_mem_flags_mutexes, 5, 5, 8, 11, 11) = { | ||
| 25 | CL_MEM_READ_WRITE | CL_MEM_READ_ONLY, | ||
| 26 | CL_MEM_READ_WRITE | CL_MEM_WRITE_ONLY, | ||
| 27 | CL_MEM_READ_ONLY | CL_MEM_WRITE_ONLY, | ||
| 28 | @@ -990,6 +990,11 @@ PIGLIT_CL_DEFINE_ENUM(cl_mem_flags, cl_mem_flags_mutexes, 5, 5, 8, 8, 8) = { | ||
| 29 | CL_MEM_HOST_WRITE_ONLY | CL_MEM_HOST_NO_ACCESS, | ||
| 30 | CL_MEM_HOST_READ_ONLY | CL_MEM_HOST_NO_ACCESS, | ||
| 31 | #endif //CL_VERSION_1_2 | ||
| 32 | +#if defined(CL_VERSION_2_0) | ||
| 33 | + CL_MEM_KERNEL_READ_AND_WRITE | CL_MEM_READ_ONLY, | ||
| 34 | + CL_MEM_KERNEL_READ_AND_WRITE | CL_MEM_WRITE_ONLY, | ||
| 35 | + CL_MEM_KERNEL_READ_AND_WRITE | CL_MEM_READ_WRITE, | ||
| 36 | +#endif //CL_VERSION_2_0 | ||
| 37 | }; | ||
| 38 | PIGLIT_CL_DEFINE_ENUM_PTR(cl_mem_flags, cl_mem_flags_mutexes); | ||
| 39 | |||
| 40 | -- | ||
| 41 | 2.34.1 | ||
| 42 | |||
diff --git a/recipes-graphics/piglit/piglit_%.bbappend b/recipes-graphics/piglit/piglit_%.bbappend index fe2a0bc2f..3caf8aa15 100644 --- a/recipes-graphics/piglit/piglit_%.bbappend +++ b/recipes-graphics/piglit/piglit_%.bbappend | |||
| @@ -1,6 +1,23 @@ | |||
| 1 | PACKAGECONFIG:remove:imxgpu = "glx" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | 2 | ||
| 3 | PACKAGECONFIG:append:mx8-nxp-bsp = " opencl" | 3 | SRC_URI += "file://0001-tests-Fix-cl-test-Include-Directories-error-Error-0-.patch \ |
| 4 | PACKAGECONFIG:append:mx9-nxp-bsp = " opencl" | 4 | file://0002-cl-Add-mutually-exclusive-memory-flags-for-CL_MEM_KE.patch" |
| 5 | |||
| 6 | PACKAGECONFIG:append = " ${PACKAGECONFIG_APPEND}" | ||
| 7 | PACKAGECONFIG:remove = " ${PACKAGECONFIG_REMOVE}" | ||
| 8 | |||
| 9 | PACKAGECONFIG_APPEND ?= " \ | ||
| 10 | gbm \ | ||
| 11 | opencl \ | ||
| 12 | ${@bb.utils.filter('DISTRO_FEATURES', 'vulkan', d)}" | ||
| 13 | PACKAGECONFIG_APPEND:imxgpu:mx6-nxp-bsp = "" | ||
| 14 | PACKAGECONFIG_APPEND:imxgpu:mx7-nxp-bsp = "" | ||
| 15 | |||
| 16 | PACKAGECONFIG_REMOVE ?= "" | ||
| 17 | PACKAGECONFIG_REMOVE:imxgpu = "glx" | ||
| 18 | PACKAGECONFIG_REMOVE:imxgpu:mx6-nxp-bsp = "glx x11" | ||
| 19 | PACKAGECONFIG_REMOVE:imxgpu:mx7-nxp-bsp = "glx x11" | ||
| 20 | |||
| 21 | PACKAGECONFIG[gbm] = "-DPIGLIT_USE_GBM=1,-DPIGLIT_USE_GBM=0,virtual/libgbm" | ||
| 5 | 22 | ||
| 6 | CFLAGS:append:imxgpu:toolchain-clang = " -Wno-error=int-conversion" | 23 | CFLAGS:append:imxgpu:toolchain-clang = " -Wno-error=int-conversion" |
diff --git a/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch b/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch index da738aabe..f54919cd9 100644 --- a/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch +++ b/recipes-graphics/vulkan/vulkan-loader/0001-LF-11869-change-mali-wsi-layer-activating-order.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 3448c245b15928aa5a5a3695d9271fb201eb2e3b Mon Sep 17 00:00:00 2001 | 1 | From 91aff12a127428ff558d57d93b91b0b909321c35 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yuan Tian <yuan.tian@nxp.com> | 2 | From: Yuan Tian <yuan.tian@nxp.com> |
| 3 | Date: Sat, 27 Apr 2024 06:06:54 +0800 | 3 | Date: Sat, 27 Apr 2024 06:06:54 +0800 |
| 4 | Subject: [PATCH] LF-11869 change mali wsi layer activating order | 4 | Subject: [PATCH] LF-11869 change mali wsi layer activating order |
| @@ -11,18 +11,18 @@ Signed-off-by: Yuan Tian <yuan.tian@nxp.com> | |||
| 11 | 1 file changed, 12 insertions(+) | 11 | 1 file changed, 12 insertions(+) |
| 12 | 12 | ||
| 13 | diff --git a/loader/loader.c b/loader/loader.c | 13 | diff --git a/loader/loader.c b/loader/loader.c |
| 14 | index e646b28b4..55912c178 100644 | 14 | index 9064cd633..5b00870a4 100644 |
| 15 | --- a/loader/loader.c | 15 | --- a/loader/loader.c |
| 16 | +++ b/loader/loader.c | 16 | +++ b/loader/loader.c |
| 17 | @@ -2906,6 +2906,7 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | 17 | @@ -3034,6 +3034,7 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s |
| 18 | #if !defined(_WIN32) | 18 | #if !defined(_WIN32) |
| 19 | char temp_path[2048]; | 19 | char temp_path[2048]; |
| 20 | #endif | 20 | #endif |
| 21 | + bool has_wsi_layer = false; | 21 | + bool has_wsi_layer = false; |
| 22 | 22 | ||
| 23 | // Now, parse the paths | 23 | // Now, parse the paths |
| 24 | next_file = search_path; | 24 | char *next_file = search_path; |
| 25 | @@ -2965,6 +2966,10 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | 25 | @@ -3100,6 +3101,10 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s |
| 26 | name = full_path; | 26 | name = full_path; |
| 27 | 27 | ||
| 28 | VkResult local_res; | 28 | VkResult local_res; |
| @@ -33,7 +33,7 @@ index e646b28b4..55912c178 100644 | |||
| 33 | local_res = add_if_manifest_file(inst, name, out_files); | 33 | local_res = add_if_manifest_file(inst, name, out_files); |
| 34 | 34 | ||
| 35 | // Incomplete means this was not a valid data file. | 35 | // Incomplete means this was not a valid data file. |
| 36 | @@ -2975,6 +2980,13 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | 36 | @@ -3110,6 +3115,13 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s |
| 37 | break; | 37 | break; |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| @@ -47,6 +47,3 @@ index e646b28b4..55912c178 100644 | |||
| 47 | loader_closedir(inst, dir_stream); | 47 | loader_closedir(inst, dir_stream); |
| 48 | if (vk_result != VK_SUCCESS) { | 48 | if (vk_result != VK_SUCCESS) { |
| 49 | goto out; | 49 | goto out; |
| 50 | -- | ||
| 51 | 2.34.1 | ||
| 52 | |||
diff --git a/recipes-graphics/vulkan/vulkan-loader/mx8-nxp-bsp/0001-LF-11869-change-mali-wsi-layer-activating-order.patch b/recipes-graphics/vulkan/vulkan-loader/mx8-nxp-bsp/0001-LF-11869-change-mali-wsi-layer-activating-order.patch new file mode 100644 index 000000000..da738aabe --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-loader/mx8-nxp-bsp/0001-LF-11869-change-mali-wsi-layer-activating-order.patch | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | From 3448c245b15928aa5a5a3695d9271fb201eb2e3b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yuan Tian <yuan.tian@nxp.com> | ||
| 3 | Date: Sat, 27 Apr 2024 06:06:54 +0800 | ||
| 4 | Subject: [PATCH] LF-11869 change mali wsi layer activating order | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [i.MX specific] | ||
| 7 | |||
| 8 | Signed-off-by: Yuan Tian <yuan.tian@nxp.com> | ||
| 9 | --- | ||
| 10 | loader/loader.c | 12 ++++++++++++ | ||
| 11 | 1 file changed, 12 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/loader/loader.c b/loader/loader.c | ||
| 14 | index e646b28b4..55912c178 100644 | ||
| 15 | --- a/loader/loader.c | ||
| 16 | +++ b/loader/loader.c | ||
| 17 | @@ -2906,6 +2906,7 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
| 18 | #if !defined(_WIN32) | ||
| 19 | char temp_path[2048]; | ||
| 20 | #endif | ||
| 21 | + bool has_wsi_layer = false; | ||
| 22 | |||
| 23 | // Now, parse the paths | ||
| 24 | next_file = search_path; | ||
| 25 | @@ -2965,6 +2966,10 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
| 26 | name = full_path; | ||
| 27 | |||
| 28 | VkResult local_res; | ||
| 29 | + if(!strcmp(name,"/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json")) { | ||
| 30 | + has_wsi_layer = true; | ||
| 31 | + continue; | ||
| 32 | + } | ||
| 33 | local_res = add_if_manifest_file(inst, name, out_files); | ||
| 34 | |||
| 35 | // Incomplete means this was not a valid data file. | ||
| 36 | @@ -2975,6 +2980,13 @@ VkResult add_data_files(const struct loader_instance *inst, char *search_path, s | ||
| 37 | break; | ||
| 38 | } | ||
| 39 | } | ||
| 40 | + | ||
| 41 | + if(has_wsi_layer) { | ||
| 42 | + name = "/etc/vulkan/implicit_layer.d/VkLayer_window_system_integration.json"; | ||
| 43 | + vk_result = add_if_manifest_file(inst, name, out_files); | ||
| 44 | + has_wsi_layer = false; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | loader_closedir(inst, dir_stream); | ||
| 48 | if (vk_result != VK_SUCCESS) { | ||
| 49 | goto out; | ||
| 50 | -- | ||
| 51 | 2.34.1 | ||
| 52 | |||
diff --git a/recipes-graphics/vulkan/vulkan-loader_1.3.275.0.imx.bbappend b/recipes-graphics/vulkan/vulkan-loader_%.bbappend index f46249215..f72f5b017 100644 --- a/recipes-graphics/vulkan/vulkan-loader_1.3.275.0.imx.bbappend +++ b/recipes-graphics/vulkan/vulkan-loader_%.bbappend | |||
| @@ -4,10 +4,12 @@ SRC_URI:append:imx-nxp-bsp = " \ | |||
| 4 | file://0001-LF-11869-change-mali-wsi-layer-activating-order.patch \ | 4 | file://0001-LF-11869-change-mali-wsi-layer-activating-order.patch \ |
| 5 | " | 5 | " |
| 6 | 6 | ||
| 7 | PACKAGE_ARCH:imx-nxp-bsp = "${MACHINE_SOCARCH}" | ||
| 8 | |||
| 7 | # libvulkan.so is loaded dynamically, so put it in the main package | 9 | # libvulkan.so is loaded dynamically, so put it in the main package |
| 8 | SOLIBS = ".so*" | 10 | SOLIBS:imx-nxp-bsp = ".so*" |
| 9 | FILES_SOLIBSDEV = "" | 11 | FILES_SOLIBSDEV:imx-nxp-bsp = "" |
| 10 | INSANE_SKIP:${PN} += "dev-so" | 12 | INSANE_SKIP:${PN}:imx-nxp-bsp += "dev-so" |
| 11 | 13 | ||
| 12 | # Override default mesa drivers with i.MX GPU drivers | 14 | # Override default mesa drivers with i.MX GPU drivers |
| 13 | RRECOMMENDS:${PN}:imxviv = "libvulkan-imx" | 15 | RRECOMMENDS:${PN}:imxviv = "libvulkan-imx" |
diff --git a/recipes-graphics/vulkan/vulkan-wsi-layer/0001-MGS-6801-ccc-vkmark-on-wayland.patch b/recipes-graphics/vulkan/vulkan-wsi-layer/0001-MGS-6801-ccc-vkmark-on-wayland.patch new file mode 100644 index 000000000..48cfcd765 --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-wsi-layer/0001-MGS-6801-ccc-vkmark-on-wayland.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From ada74fb0ca3099f33d173eb664bd7e42025a3277 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Prabhu Sundararaj <prabhu.sundararaj@nxp.com> | ||
| 3 | Date: Mon, 9 Dec 2024 09:15:11 +0800 | ||
| 4 | Subject: [PATCH 1/2] MGS-6801 [#ccc] vkmark on wayland | ||
| 5 | |||
| 6 | Extend the wayland surface properties with VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [i.MX-specific] | ||
| 9 | Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com> | ||
| 10 | Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com> | ||
| 11 | --- | ||
| 12 | wsi/wayland/surface_properties.cpp | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/wsi/wayland/surface_properties.cpp b/wsi/wayland/surface_properties.cpp | ||
| 16 | index e6435b9..bc1a737 100644 | ||
| 17 | --- a/wsi/wayland/surface_properties.cpp | ||
| 18 | +++ b/wsi/wayland/surface_properties.cpp | ||
| 19 | @@ -89,7 +89,7 @@ VkResult surface_properties::get_surface_capabilities(VkPhysicalDevice physical_ | ||
| 20 | |||
| 21 | /* Composite alpha */ | ||
| 22 | pSurfaceCapabilities->supportedCompositeAlpha = static_cast<VkCompositeAlphaFlagBitsKHR>( | ||
| 23 | - VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR | VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR); | ||
| 24 | + VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR | VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR); | ||
| 25 | return VK_SUCCESS; | ||
| 26 | } | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.37.1 | ||
| 30 | |||
diff --git a/recipes-graphics/vulkan/vulkan-wsi-layer/0002-MGS-6823-nxp-Add-support-of-VK_COMPOSITE_ALPHA_OPAQU.patch b/recipes-graphics/vulkan/vulkan-wsi-layer/0002-MGS-6823-nxp-Add-support-of-VK_COMPOSITE_ALPHA_OPAQU.patch new file mode 100644 index 000000000..9955f415e --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-wsi-layer/0002-MGS-6823-nxp-Add-support-of-VK_COMPOSITE_ALPHA_OPAQU.patch | |||
| @@ -0,0 +1,243 @@ | |||
| 1 | From 4293d8835eaa45168c070793eefd8867c6ec7605 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yuan Tian <yuan.tian@nxp.com> | ||
| 3 | Date: Thu, 27 Jul 2023 18:25:16 +0800 | ||
| 4 | Subject: [PATCH 2/2] MGS-6823 [#nxp] Add support of | ||
| 5 | VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR feature | ||
| 6 | |||
| 7 | Mali vulkan driver doesn't support VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR. It caused unwanted blending effect in many vulkan cases. | ||
| 8 | Add support of this feature to solve the problem. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [i.MX-specific] | ||
| 11 | Signed-off-by: Yuan Tian <yuan.tian@nxp.com> | ||
| 12 | Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com> | ||
| 13 | --- | ||
| 14 | wsi/wayland/swapchain.cpp | 161 ++++++++++++++++++++++++++++++++++++++ | ||
| 15 | wsi/wayland/swapchain.hpp | 9 +++ | ||
| 16 | 2 files changed, 170 insertions(+) | ||
| 17 | |||
| 18 | Index: git/wsi/wayland/swapchain.cpp | ||
| 19 | =================================================================== | ||
| 20 | --- git.orig/wsi/wayland/swapchain.cpp | ||
| 21 | +++ git/wsi/wayland/swapchain.cpp | ||
| 22 | @@ -38,6 +38,7 @@ | ||
| 23 | #include <cstdio> | ||
| 24 | #include <climits> | ||
| 25 | #include <functional> | ||
| 26 | +#include <poll.h> | ||
| 27 | |||
| 28 | #include "util/drm/drm_utils.hpp" | ||
| 29 | #include "util/log.hpp" | ||
| 30 | @@ -72,12 +73,152 @@ swapchain::~swapchain() | ||
| 31 | wsialloc_delete(m_wsi_allocator); | ||
| 32 | } | ||
| 33 | m_wsi_allocator = nullptr; | ||
| 34 | + if (wlc.opaque_region) | ||
| 35 | + { | ||
| 36 | + wl_compositor_destroy(wlc.wl_compositor); | ||
| 37 | + wl_registry_destroy(wlc.registry); | ||
| 38 | + wl_region_destroy(wlc.opaque_region); | ||
| 39 | + wlc = {0}; | ||
| 40 | + } | ||
| 41 | if (m_buffer_queue != nullptr) | ||
| 42 | { | ||
| 43 | wl_event_queue_destroy(m_buffer_queue); | ||
| 44 | } | ||
| 45 | } | ||
| 46 | |||
| 47 | +static inline int | ||
| 48 | +poll_event(struct wl_display *wl_dpy, short int events, int timeout) | ||
| 49 | +{ | ||
| 50 | + int ret; | ||
| 51 | + struct pollfd pfd[1]; | ||
| 52 | + | ||
| 53 | + pfd[0].fd = wl_display_get_fd(wl_dpy); | ||
| 54 | + pfd[0].events = events; | ||
| 55 | + | ||
| 56 | + do | ||
| 57 | + { | ||
| 58 | + ret = poll(pfd, 1, timeout); | ||
| 59 | + } | ||
| 60 | + while (ret == -1 && errno == EINTR); | ||
| 61 | + | ||
| 62 | + return ret; | ||
| 63 | +} | ||
| 64 | + | ||
| 65 | +static int | ||
| 66 | +dispatch_queue_op(struct wl_display *wl_dpy, | ||
| 67 | + struct wl_event_queue *wl_queue, int timeout) | ||
| 68 | +{ | ||
| 69 | + int ret; | ||
| 70 | + | ||
| 71 | + if (wl_display_prepare_read_queue(wl_dpy, wl_queue) == -1) | ||
| 72 | + { | ||
| 73 | + return wl_display_dispatch_queue_pending(wl_dpy, wl_queue); | ||
| 74 | + } | ||
| 75 | + | ||
| 76 | + for (;;) | ||
| 77 | + { | ||
| 78 | + ret = wl_display_flush(wl_dpy); | ||
| 79 | + | ||
| 80 | + if (ret != -1 || errno != EAGAIN) | ||
| 81 | + break; | ||
| 82 | + | ||
| 83 | + if (poll_event(wl_dpy, POLLOUT, -1) == -1) | ||
| 84 | + { | ||
| 85 | + wl_display_cancel_read(wl_dpy); | ||
| 86 | + return -1; | ||
| 87 | + } | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + /* Don't stop if flushing hits an EPIPE; continue so we can read any | ||
| 91 | + * protocol error that may have triggered it. */ | ||
| 92 | + if (ret < 0 && errno != EPIPE) | ||
| 93 | + { | ||
| 94 | + wl_display_cancel_read(wl_dpy); | ||
| 95 | + return -1; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + ret = poll_event(wl_dpy, POLLIN, timeout); | ||
| 99 | + | ||
| 100 | + /* cancel read when on error or timeout. */ | ||
| 101 | + if (ret == -1 || ret == 0) | ||
| 102 | + { | ||
| 103 | + wl_display_cancel_read(wl_dpy); | ||
| 104 | + return ret; | ||
| 105 | + } | ||
| 106 | + | ||
| 107 | + if (wl_display_read_events(wl_dpy) == -1) | ||
| 108 | + return -1; | ||
| 109 | + | ||
| 110 | + return wl_display_dispatch_queue_pending(wl_dpy, wl_queue); | ||
| 111 | +} | ||
| 112 | + | ||
| 113 | +static void | ||
| 114 | +sync_callback(void *data, struct wl_callback *callback, uint32_t serial) | ||
| 115 | +{ | ||
| 116 | + int *done = (int *)data; | ||
| 117 | + | ||
| 118 | + *done = 1; | ||
| 119 | + wl_callback_destroy(callback); | ||
| 120 | +} | ||
| 121 | + | ||
| 122 | +static const struct wl_callback_listener sync_listener = { | ||
| 123 | + sync_callback | ||
| 124 | +}; | ||
| 125 | + | ||
| 126 | +static int | ||
| 127 | +roundtrip_queue(struct wl_display *wl_dpy, struct wl_event_queue *wl_queue) | ||
| 128 | +{ | ||
| 129 | + struct wl_callback *callback; | ||
| 130 | + int done, ret = 0; | ||
| 131 | + | ||
| 132 | + done = 0; | ||
| 133 | + | ||
| 134 | + /* | ||
| 135 | + * This is to block read & dispatch events in other threads, so that the | ||
| 136 | + * callback is with correct queue and listener when 'done' event. | ||
| 137 | + */ | ||
| 138 | + while (wl_display_prepare_read_queue(wl_dpy, wl_queue) == -1) | ||
| 139 | + wl_display_dispatch_queue_pending(wl_dpy, wl_queue); | ||
| 140 | + | ||
| 141 | + callback = wl_display_sync(wl_dpy); | ||
| 142 | + | ||
| 143 | + if (callback == NULL) | ||
| 144 | + { | ||
| 145 | + wl_display_cancel_read(wl_dpy); | ||
| 146 | + return -1; | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + wl_proxy_set_queue((struct wl_proxy *) callback, wl_queue); | ||
| 150 | + wl_callback_add_listener(callback, &sync_listener, &done); | ||
| 151 | + | ||
| 152 | + wl_display_cancel_read(wl_dpy); | ||
| 153 | + | ||
| 154 | + while (!done && ret >= 0) | ||
| 155 | + ret = dispatch_queue_op(wl_dpy, wl_queue, 5); | ||
| 156 | + | ||
| 157 | + if (ret == -1 && !done) | ||
| 158 | + wl_callback_destroy(callback); | ||
| 159 | + | ||
| 160 | + return ret; | ||
| 161 | +} | ||
| 162 | + | ||
| 163 | +static void | ||
| 164 | +registry_handle_global(void *data, struct wl_registry *registry, uint32_t name, | ||
| 165 | + const char *interface, uint32_t version) | ||
| 166 | +{ | ||
| 167 | + wl_context *pwlc = (wl_context *)data; | ||
| 168 | + | ||
| 169 | + if(!pwlc->wl_compositor) | ||
| 170 | + { | ||
| 171 | + pwlc->wl_compositor = (wl_compositor *)wl_registry_bind(registry, name, &wl_compositor_interface, 1); | ||
| 172 | + wl_proxy_set_queue((struct wl_proxy *)pwlc->wl_compositor, pwlc->wl_queue); | ||
| 173 | + } | ||
| 174 | +} | ||
| 175 | + | ||
| 176 | +static const struct wl_registry_listener registry_listener = { | ||
| 177 | + registry_handle_global | ||
| 178 | +}; | ||
| 179 | + | ||
| 180 | VkResult swapchain::init_platform(VkDevice device, const VkSwapchainCreateInfoKHR *swapchain_create_info, | ||
| 181 | bool &use_presentation_thread) | ||
| 182 | { | ||
| 183 | @@ -124,6 +265,21 @@ VkResult swapchain::init_platform(VkDevi | ||
| 184 | use_presentation_thread = | ||
| 185 | WAYLAND_FIFO_PRESENTATION_THREAD_ENABLED && (m_present_mode != VK_PRESENT_MODE_MAILBOX_KHR); | ||
| 186 | |||
| 187 | + if (swapchain_create_info->compositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR) | ||
| 188 | + { | ||
| 189 | + wlc.wl_queue = m_buffer_queue; | ||
| 190 | + wlc.registry = wl_display_get_registry(m_display); | ||
| 191 | + wl_proxy_set_queue((struct wl_proxy *)(wlc.registry), m_buffer_queue); | ||
| 192 | + wl_registry_add_listener(wlc.registry, ®istry_listener, &wlc); | ||
| 193 | + | ||
| 194 | + roundtrip_queue(m_display, m_buffer_queue); | ||
| 195 | + | ||
| 196 | + wlc.opaque_region = wl_compositor_create_region(wlc.wl_compositor); | ||
| 197 | + wl_proxy_set_queue((struct wl_proxy *)(wlc.opaque_region), m_buffer_queue); | ||
| 198 | + | ||
| 199 | + wl_region_add(wlc.opaque_region, 0, 0, swapchain_create_info->imageExtent.width, swapchain_create_info->imageExtent.height); | ||
| 200 | + } | ||
| 201 | + | ||
| 202 | return VK_SUCCESS; | ||
| 203 | } | ||
| 204 | |||
| 205 | @@ -494,6 +650,11 @@ void swapchain::present_image(const pend | ||
| 206 | set_error_state(VK_ERROR_SURFACE_LOST_KHR); | ||
| 207 | } | ||
| 208 | |||
| 209 | + if (wlc.opaque_region) | ||
| 210 | + { | ||
| 211 | + wl_surface_set_opaque_region(m_surface, wlc.opaque_region); | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | wl_surface_attach(m_surface, image_data->buffer, 0, 0); | ||
| 215 | |||
| 216 | auto present_sync_fd = image_data->present_fence.export_sync_fd(); | ||
| 217 | Index: git/wsi/wayland/swapchain.hpp | ||
| 218 | =================================================================== | ||
| 219 | --- git.orig/wsi/wayland/swapchain.hpp | ||
| 220 | +++ git/wsi/wayland/swapchain.hpp | ||
| 221 | @@ -78,6 +78,14 @@ struct image_creation_parameters | ||
| 222 | } | ||
| 223 | }; | ||
| 224 | |||
| 225 | +struct wl_context | ||
| 226 | +{ | ||
| 227 | + struct wl_event_queue *wl_queue; | ||
| 228 | + struct wl_compositor *wl_compositor; | ||
| 229 | + struct wl_registry *registry; | ||
| 230 | + struct wl_region *opaque_region; | ||
| 231 | +}; | ||
| 232 | + | ||
| 233 | class swapchain : public wsi::swapchain_base | ||
| 234 | { | ||
| 235 | public: | ||
| 236 | @@ -190,6 +198,7 @@ private: | ||
| 237 | |||
| 238 | struct wl_display *m_display; | ||
| 239 | struct wl_surface *m_surface; | ||
| 240 | + struct wl_context wlc = {0}; | ||
| 241 | /** Raw pointer to the WSI Surface that this swapchain was created from. The Vulkan specification ensures that the | ||
| 242 | * surface is valid until swapchain is destroyed. */ | ||
| 243 | surface *m_wsi_surface; | ||
diff --git a/recipes-graphics/vulkan/vulkan-wsi-layer/0003-Update-minimum-version-of-CMake.patch b/recipes-graphics/vulkan/vulkan-wsi-layer/0003-Update-minimum-version-of-CMake.patch new file mode 100644 index 000000000..0bc00de02 --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-wsi-layer/0003-Update-minimum-version-of-CMake.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 0c4ed8178a25135ced9df8c8a8909e2882bfe869 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Maged Elnaggar <maged.elnaggar@arm.com> | ||
| 3 | Date: Tue, 17 Jun 2025 10:33:44 +0000 | ||
| 4 | Subject: [PATCH] Update minimum version of CMake | ||
| 5 | |||
| 6 | Set CMake minimum required version range to 3.4.3...4.0 | ||
| 7 | to silence compatibility errors in CMake 4.0 | ||
| 8 | by explicitly opting into all policies up to 4.0 | ||
| 9 | |||
| 10 | Upstream-Status: Backport [https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer/-/commit/1eafebc56a7f735cd4e8298956d596c64ac9f681] | ||
| 11 | Signed-off-by: Maged Elnaggar <maged.elnaggar@arm.com> | ||
| 12 | Change-Id: I2e0527dde4e764e9c17f519fc0ddd3c0e382fa31 | ||
| 13 | --- | ||
| 14 | CMakeLists.txt | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 18 | index 4dc800c..b91cd54 100644 | ||
| 19 | --- a/CMakeLists.txt | ||
| 20 | +++ b/CMakeLists.txt | ||
| 21 | @@ -20,7 +20,7 @@ | ||
| 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 23 | # SOFTWARE. | ||
| 24 | |||
| 25 | -cmake_minimum_required(VERSION 3.4.3) | ||
| 26 | +cmake_minimum_required(VERSION 3.4.3...4.0) | ||
| 27 | project(VkLayer_window_system_integration) | ||
| 28 | |||
| 29 | find_package(PkgConfig REQUIRED) | ||
| 30 | -- | ||
| 31 | 2.34.1 | ||
| 32 | |||
diff --git a/recipes-graphics/vulkan/vulkan-wsi-layer_git.bb b/recipes-graphics/vulkan/vulkan-wsi-layer_git.bb new file mode 100644 index 000000000..efa6accb3 --- /dev/null +++ b/recipes-graphics/vulkan/vulkan-wsi-layer_git.bb | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | DESCRIPTION = "Vulkan Window System Integration Layer" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c2e771b72d60a13d2de384cb49055d00" | ||
| 4 | DEPENDS = "libdrm vulkan-loader" | ||
| 5 | |||
| 6 | PV = "0.0+git${SRCPV}" | ||
| 7 | |||
| 8 | SRC_URI = "git://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git;protocol=https;branch=main \ | ||
| 9 | file://0001-MGS-6801-ccc-vkmark-on-wayland.patch \ | ||
| 10 | file://0002-MGS-6823-nxp-Add-support-of-VK_COMPOSITE_ALPHA_OPAQU.patch \ | ||
| 11 | file://0003-Update-minimum-version-of-CMake.patch" | ||
| 12 | SRCREV = "cb1a50cf7e640ad7306e673131ded98c0f133628" | ||
| 13 | |||
| 14 | inherit cmake pkgconfig | ||
| 15 | |||
| 16 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', 'headless', d)}" | ||
| 17 | |||
| 18 | PACKAGECONFIG[headless] = " \ | ||
| 19 | -DBUILD_WSI_HEADLESS=1, \ | ||
| 20 | -DBUILD_WSI_HEADLESS=0, \ | ||
| 21 | ,,, \ | ||
| 22 | wayland" | ||
| 23 | PACKAGECONFIG[wayland] = " \ | ||
| 24 | -DBUILD_WSI_WAYLAND=1 -DENABLE_WAYLAND_FIFO_PRESENTATION_THREAD=1 -DSELECT_EXTERNAL_ALLOCATOR=dma_buf_heaps, \ | ||
| 25 | -DBUILD_WSI_WAYLAND=0, \ | ||
| 26 | wayland wayland-native wayland-protocols,,, \ | ||
| 27 | headless" | ||
| 28 | |||
| 29 | EXTRA_OECMAKE = " \ | ||
| 30 | -DBUILD_WSI_DISPLAY=0 \ | ||
| 31 | -DBUILD_WSI_IMAGE_COMPRESSION_CONTROL_SWAPCHAIN=1 \ | ||
| 32 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 33 | -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
| 34 | -DENABLE_INSTRUMENTATION=1 \ | ||
| 35 | -DKERNEL_HEADER_DIR=${KERNEL_HEADER_DIR} \ | ||
| 36 | -DVULKAN_WSI_LAYER_EXPERIMENTAL=0 " | ||
| 37 | |||
| 38 | # The KERNEL_HEADER_DIR setting is required by the CMake apparently | ||
| 39 | # in order to find the DRM headers. However, the Yocto build provides | ||
| 40 | # the DRM headers via a separate recipe libdrm in order to avoid the | ||
| 41 | # kernel dependency. The CMake fails if the variable is not defined, | ||
| 42 | # so set it to an invalid value in case the build ever actually needs | ||
| 43 | # the kernel headers for something else. | ||
| 44 | KERNEL_HEADER_DIR = "KERNEL_HEADER_DIR_NOT_PROVIDED_BY_YOCTO" | ||
| 45 | |||
| 46 | do_install() { | ||
| 47 | install -d ${D}${sysconfdir}/vulkan/implicit_layer.d | ||
| 48 | install -m 0755 ${B}/libVkLayer_window_system_integration.so ${D}${sysconfdir}/vulkan/implicit_layer.d/ | ||
| 49 | install -m 0644 ${B}/VkLayer_window_system_integration.json ${D}${sysconfdir}/vulkan/implicit_layer.d | ||
| 50 | } | ||
| 51 | |||
| 52 | # Adjust packaging variables for unversioned library | ||
| 53 | SOLIBS = ".so" | ||
| 54 | FILES_SOLIBSDEV = "" | ||
diff --git a/recipes-graphics/wayland/wayland-protocols_1.37.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.41.imx.bb index f360706be..3350a4795 100644 --- a/recipes-graphics/wayland/wayland-protocols_1.37.imx.bb +++ b/recipes-graphics/wayland/wayland-protocols_1.41.imx.bb | |||
| @@ -11,10 +11,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c7b12b6702da38ca028ace54aae3d484 \ | |||
| 11 | 11 | ||
| 12 | SRC_URI = "${WAYLAND_PROTOCOLS_SRC};branch=${SRCBRANCH}" | 12 | SRC_URI = "${WAYLAND_PROTOCOLS_SRC};branch=${SRCBRANCH}" |
| 13 | WAYLAND_PROTOCOLS_SRC ?= "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https" | 13 | WAYLAND_PROTOCOLS_SRC ?= "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https" |
| 14 | SRCBRANCH = "wayland-protocols-imx-${@oe.utils.trim_version("${PV}", 2)}" | 14 | SRCBRANCH = "wayland-protocols-imx-1.41" |
| 15 | SRCREV = "831a5389062e56dcb1aac4a5419e55e3002aafaf" | 15 | SRCREV = "7213a4e09837c77112bce2d241491600e00dd095" |
| 16 | 16 | ||
| 17 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | 17 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tags" |
| 18 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>.+)" | ||
| 19 | |||
| 20 | DEPENDS += "wayland-native" | ||
| 18 | 21 | ||
| 19 | # NOTE: For i.MX drop allarch since the recipe is SOCARCH | 22 | # NOTE: For i.MX drop allarch since the recipe is SOCARCH |
| 20 | #inherit meson pkgconfig allarch | 23 | #inherit meson pkgconfig allarch |
| @@ -22,9 +25,6 @@ inherit meson pkgconfig | |||
| 22 | 25 | ||
| 23 | EXTRA_OEMESON += "-Dtests=false" | 26 | EXTRA_OEMESON += "-Dtests=false" |
| 24 | 27 | ||
| 25 | PACKAGES = "${PN}" | ||
| 26 | FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" | ||
| 27 | |||
| 28 | BBCLASSEXTEND = "native nativesdk" | 28 | BBCLASSEXTEND = "native nativesdk" |
| 29 | 29 | ||
| 30 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 30 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-graphics/wayland/weston_10.0.5.imx.bb b/recipes-graphics/wayland/weston_10.0.5.imx.bb index a8440cf23..4d7d99130 100644 --- a/recipes-graphics/wayland/weston_10.0.5.imx.bb +++ b/recipes-graphics/wayland/weston_10.0.5.imx.bb | |||
| @@ -68,7 +68,7 @@ PACKAGECONFIG[headless] = "-Dbackend-headless=true,-Dbackend-headless=false" | |||
| 68 | # Weston on framebuffer | 68 | # Weston on framebuffer |
| 69 | PACKAGECONFIG[fbdev] = "-Ddeprecated-backend-fbdev=true,-Ddeprecated-backend-fbdev=false,udev mtdev" | 69 | PACKAGECONFIG[fbdev] = "-Ddeprecated-backend-fbdev=true,-Ddeprecated-backend-fbdev=false,udev mtdev" |
| 70 | # Weston on RDP | 70 | # Weston on RDP |
| 71 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp" | 71 | PACKAGECONFIG[rdp] = "-Dbackend-rdp=true,-Dbackend-rdp=false,freerdp,freerdp" |
| 72 | # weston-launch | 72 | # weston-launch |
| 73 | PACKAGECONFIG[launch] = "-Ddeprecated-weston-launch=true,-Ddeprecated-weston-launch=false,drm" | 73 | PACKAGECONFIG[launch] = "-Ddeprecated-weston-launch=true,-Ddeprecated-weston-launch=false,drm" |
| 74 | # VA-API desktop recorder | 74 | # VA-API desktop recorder |
| @@ -144,7 +144,7 @@ RDEPENDS:${PN}-xwayland += "xwayland" | |||
| 144 | 144 | ||
| 145 | RDEPENDS:${PN} += "xkeyboard-config" | 145 | RDEPENDS:${PN} += "xkeyboard-config" |
| 146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" | 146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" |
| 147 | RRECOMMENDS:${PN}-dev += "wayland-protocols" | 147 | RDEPENDS:${PN}-dev += "wayland-protocols-dev" |
| 148 | 148 | ||
| 149 | USERADD_PACKAGES = "${PN}" | 149 | USERADD_PACKAGES = "${PN}" |
| 150 | GROUPADD_PARAM:${PN} = "--system weston-launch" | 150 | GROUPADD_PARAM:${PN} = "--system weston-launch" |
| @@ -205,6 +205,6 @@ EXTRA_OEMESON += "-Ddeprecated-wl-shell=true" | |||
| 205 | LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined" | 205 | LDFLAGS:append:imxgpu:libc-musl = " -Wl,--allow-shlib-undefined" |
| 206 | 206 | ||
| 207 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 207 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
| 208 | COMPATIBLE_MACHINE = "(imxfbdev|imxgpu)" | 208 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
| 209 | 209 | ||
| 210 | ########### End of i.MX overrides ######### | 210 | ########### End of i.MX overrides ######### |
diff --git a/recipes-graphics/wayland/weston_14.0.1.imx.bb b/recipes-graphics/wayland/weston_14.0.2.imx.bb index 96bde0fe0..c4f938e5a 100644 --- a/recipes-graphics/wayland/weston_14.0.1.imx.bb +++ b/recipes-graphics/wayland/weston_14.0.2.imx.bb | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | # recipe. The second section customizes the recipe for i.MX. | 3 | # recipe. The second section customizes the recipe for i.MX. |
| 4 | 4 | ||
| 5 | ########### OE-core copy ################## | 5 | ########### OE-core copy ################## |
| 6 | # Upstream hash: 23271a1f908a223b4eb56d6034cbb1ac23da14fe | 6 | # Upstream hash: 8996690a79ac42a1dee6d041eeb1c1fe29fdac84 |
| 7 | 7 | ||
| 8 | SUMMARY = "Weston, a Wayland compositor" | 8 | SUMMARY = "Weston, a Wayland compositor" |
| 9 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" | 9 | DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" |
| @@ -14,14 +14,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \ | |||
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ | 16 | SRC_URI = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz \ |
| 17 | file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch \ | ||
| 18 | file://weston.png \ | 17 | file://weston.png \ |
| 19 | file://weston.desktop \ | 18 | file://weston.desktop \ |
| 20 | file://xwayland.weston-start \ | 19 | file://xwayland.weston-start \ |
| 21 | file://systemd-notify.weston-start \ | 20 | file://systemd-notify.weston-start \ |
| 22 | " | 21 | " |
| 23 | 22 | ||
| 24 | SRC_URI[sha256sum] = "27f68d96e3b97d98daadef13a202356524924fa381418fa6716b9136ef099093" | 23 | SRC_URI[sha256sum] = "a8150505b126a59df781fe8c30c8e6f87da7013e179039eb844a5bbbcc7c79b3" |
| 25 | 24 | ||
| 26 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/weston/-/tags" | 25 | UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/wayland/weston/-/tags" |
| 27 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | 26 | UPSTREAM_CHECK_REGEX = "releases/(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" |
| @@ -33,13 +32,13 @@ inherit meson pkgconfig useradd | |||
| 33 | require ${THISDIR}/required-distro-features.inc | 32 | require ${THISDIR}/required-distro-features.inc |
| 34 | 33 | ||
| 35 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | 34 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" |
| 36 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | 35 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native libdisplay-info" |
| 37 | 36 | ||
| 38 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" | 37 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" |
| 39 | 38 | ||
| 40 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | 39 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" |
| 41 | 40 | ||
| 42 | EXTRA_OEMESON += "-Dpipewire=false" | 41 | EXTRA_OEMESON += "-Dpipewire=false -Dtests=false" |
| 43 | 42 | ||
| 44 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \ | 43 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland egl clients', '', d)} \ |
| 45 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ | 44 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \ |
| @@ -80,9 +79,7 @@ PACKAGECONFIG[webp] = "-Dimage-webp=true,-Dimage-webp=false,libwebp" | |||
| 80 | # Weston with systemd support | 79 | # Weston with systemd support |
| 81 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus" | 80 | PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd dbus" |
| 82 | # Weston with Xwayland support (requires X11 and Wayland) | 81 | # Weston with Xwayland support (requires X11 and Wayland) |
| 83 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xcb-util-cursor xwayland" | 82 | PACKAGECONFIG[xwayland] = "-Dxwayland=true,-Dxwayland=false,libxcb libxcursor xwayland" |
| 84 | # colord CMS support | ||
| 85 | PACKAGECONFIG[colord] = "-Ddeprecated-color-management-colord=true,-Ddeprecated-color-management-colord=false,colord" | ||
| 86 | # Clients support | 83 | # Clients support |
| 87 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" | 84 | PACKAGECONFIG[clients] = "-Dsimple-clients=${SIMPLECLIENTS} -Ddemo-clients=true,-Dsimple-clients= -Ddemo-clients=false" |
| 88 | # Virtual remote output with GStreamer on DRM backend | 85 | # Virtual remote output with GStreamer on DRM backend |
| @@ -147,7 +144,7 @@ RDEPENDS:${PN}-xwayland += "xwayland" | |||
| 147 | 144 | ||
| 148 | RDEPENDS:${PN} += "xkeyboard-config" | 145 | RDEPENDS:${PN} += "xkeyboard-config" |
| 149 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" | 146 | RRECOMMENDS:${PN} = "weston-init liberation-fonts" |
| 150 | RRECOMMENDS:${PN}-dev += "wayland-protocols" | 147 | RDEPENDS:${PN}-dev += "wayland-protocols-dev" |
| 151 | 148 | ||
| 152 | USERADD_PACKAGES = "${PN}" | 149 | USERADD_PACKAGES = "${PN}" |
| 153 | GROUPADD_PARAM:${PN} = "--system weston-launch" | 150 | GROUPADD_PARAM:${PN} = "--system weston-launch" |
| @@ -162,26 +159,20 @@ LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | |||
| 162 | 159 | ||
| 163 | DEFAULT_PREFERENCE = "-1" | 160 | DEFAULT_PREFERENCE = "-1" |
| 164 | 161 | ||
| 165 | DEPENDS:append = " libdisplay-info" | ||
| 166 | |||
| 167 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" | 162 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" |
| 168 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " | 163 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
| 169 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" | 164 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" |
| 170 | SRCBRANCH = "weston-imx-14.0.1" | 165 | SRCBRANCH = "weston-imx-14.0.2" |
| 171 | SRCREV = "0fd5d3ab75346e525b565039a7b8bf5d9008be78" | 166 | SRCREV = "c267ba8e6eed3a824e042a200bcc1b4c370ba88f" |
| 172 | |||
| 173 | SRC_URI:remove = "file://0001-libweston-tools-Include-libgen.h-for-basename-signat.patch" | ||
| 174 | 167 | ||
| 175 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | ||
| 176 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" | 168 | PACKAGECONFIG:remove = "${PACKAGECONFIG_IMX_REMOVALS}" |
| 169 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | ||
| 177 | 170 | ||
| 178 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" | 171 | PACKAGECONFIG:append = " ${PACKAGECONFIG_G2D}" |
| 179 | PACKAGECONFIG_G2D ??= "" | 172 | PACKAGECONFIG_G2D ??= "" |
| 180 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" | 173 | PACKAGECONFIG_G2D:imxgpu2d ??= "imxg2d" |
| 181 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" | 174 | PACKAGECONFIG_G2D:mx93-nxp-bsp ??= "imxg2d" |
| 182 | 175 | PACKAGECONFIG_G2D:mx943-nxp-bsp ??= "imxg2d" | |
| 183 | # Remove no longer supported colord | ||
| 184 | PACKAGECONFIG[colord] = "" | ||
| 185 | 176 | ||
| 186 | # Weston with i.MX G2D renderer | 177 | # Weston with i.MX G2D renderer |
| 187 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" | 178 | PACKAGECONFIG[imxg2d] = "-Drenderer-g2d=true,-Drenderer-g2d=false,virtual/libg2d" |
diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.11.p3.2.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.11.p3.2.bb index 63086d59a..8670443db 100644 --- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.11.p3.2.bb +++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.11.p3.2.bb | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # Copyright (C) 2015-2016 Freescale Semiconductor | 1 | # Copyright (C) 2015-2016 Freescale Semiconductor |
| 2 | # Copyright (C) 2017-2024 NXP | 2 | # Copyright (C) 2017-2025 NXP |
| 3 | 3 | ||
| 4 | SUMMARY = "Kernel loadable module for Vivante GPU" | 4 | SUMMARY = "Kernel loadable module for Vivante GPU" |
| 5 | DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ | 5 | DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ |
| @@ -7,9 +7,9 @@ allowing flexibility to use a newer graphics release with an older kernel." | |||
| 7 | LICENSE = "GPL-2.0-only" | 7 | LICENSE = "GPL-2.0-only" |
| 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" | 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
| 9 | 9 | ||
| 10 | SRC_URI = "${KERNEL_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=${S}/src \ | 10 | SRC_URI = "${LINUX_IMX_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=${S}/src \ |
| 11 | file://Add-makefile.patch" | 11 | file://Add-makefile.patch" |
| 12 | KERNEL_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" | 12 | LINUX_IMX_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" |
| 13 | SRCBRANCH = "lf-6.12.y" | 13 | SRCBRANCH = "lf-6.12.y" |
| 14 | LOCALVERSION = "-6.12.20-2.0.0" | 14 | LOCALVERSION = "-6.12.20-2.0.0" |
| 15 | SRCREV = "d53b3fa8a69bef5ead825e81aa62dbdd08e1409c" | 15 | SRCREV = "d53b3fa8a69bef5ead825e81aa62dbdd08e1409c" |
