diff options
16 files changed, 95 insertions, 39 deletions
diff --git a/recipes-graphics/drm/libdrm_2.4.114.imx.bb b/recipes-graphics/drm/libdrm_2.4.114.imx.bb index 42893cbf..969e738c 100644 --- a/recipes-graphics/drm/libdrm_2.4.114.imx.bb +++ b/recipes-graphics/drm/libdrm_2.4.114.imx.bb | |||
@@ -14,7 +14,7 @@ DEPENDS = "libpthread-stubs" | |||
14 | SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}" | 14 | SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}" |
15 | IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https;nobranch=1" | 15 | IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https;nobranch=1" |
16 | SRCBRANCH ?= "libdrm-imx-2.4.114" | 16 | SRCBRANCH ?= "libdrm-imx-2.4.114" |
17 | SRCREV = "68531f3f411d65f71e4616f51e3ab841a7bac0aa" | 17 | SRCREV = "3660ea0fee6f2f131eca73cd4c30d20021a84284" |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
diff --git a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.6.bb b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.8.bb index 8d26e7a5..848ca7d1 100644 --- a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.6.bb +++ b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.8.bb | |||
@@ -4,14 +4,14 @@ | |||
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=ea25d099982d035af85d193c88a1b479" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" |
8 | 8 | ||
9 | DEPENDS = "libgal-imx libdrm" | 9 | DEPENDS = "libgal-imx libdrm" |
10 | PROVIDES += "virtual/libg2d" | 10 | PROVIDES += "virtual/libg2d" |
11 | 11 | ||
12 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" | 12 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" |
13 | SRC_URI[md5sum] = "ab5972089fe8746dc5fa5388e432a154" | 13 | SRC_URI[md5sum] = "0f7ceac3f8ce97d4f0f6ad5bb8a5bbd2" |
14 | SRC_URI[sha256sum] = "771d71b5766f148bfb349cbc069a1808ad43f881d17cb11ec2ca27a959a9ad34" | 14 | SRC_URI[sha256sum] = "dfcda2c286076bb6080261901241eac2a9e9db8ebbd00f301d8f49665af4c835" |
15 | 15 | ||
16 | inherit fsl-eula-unpack | 16 | inherit fsl-eula-unpack |
17 | 17 | ||
diff --git a/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb b/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb index c5f2158e..649a16d2 100644 --- a/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb +++ b/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb | |||
@@ -10,7 +10,7 @@ PV = "2.1+git${SRCPV}" | |||
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.1" | 12 | SRCBRANCH ?= "imx_2.1" |
13 | SRCREV = "a5f620fcf0e986a19e4acdfa48c95eaf79a5c570" | 13 | SRCREV = "4391dcda499870418bb38fe395c3cba0664c5bab" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
diff --git a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.0.bb b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.2.bb index 1d4e3cc5..fce3fe3d 100644 --- a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.0.bb +++ b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.2.bb | |||
@@ -5,16 +5,17 @@ | |||
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=ea25d099982d035af85d193c88a1b479" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" |
9 | DEPENDS = "libgal-imx" | 9 | DEPENDS = "libgal-imx" |
10 | PROVIDES = "virtual/libg2d" | 10 | PROVIDES = "virtual/libg2d" |
11 | 11 | ||
12 | SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" | ||
13 | FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}" | 12 | FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}" |
14 | SRC_URI[aarch64.md5sum] = "7aafa5910ef3e3be1c449b4bddd97b56" | 13 | |
15 | SRC_URI[aarch64.sha256sum] = "9bf8ebbfc85245d75ab7d133c3e135a4c5f23a0430c75883af9700e9cb82c151" | 14 | SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" |
16 | SRC_URI[arm.md5sum] = "e0da61541b0b95083a3c95cc0bba4f63" | 15 | SRC_URI[aarch64.md5sum] = "f345087b5046fd63c418771f0929350d" |
17 | SRC_URI[arm.sha256sum] = "65427c12b43c7bb3838ec2bc91a5853c310652b920a65b2b52bacad8e761a8e4" | 16 | SRC_URI[aarch64.sha256sum] = "cdf096c9b15c773ad600b24ec8888c1c4a33711c195c655e9411d4b66a992c25" |
17 | SRC_URI[arm.md5sum] = "f02c7df5f52b97a7b453179dedd44189" | ||
18 | SRC_URI[arm.sha256sum] = "1ed29a4818161198b658ffc428dff7c154c38f5ba48d7358ed9b0be261d72b99" | ||
18 | 19 | ||
19 | S = "${WORKDIR}/${FSLBIN_NAME}" | 20 | S = "${WORKDIR}/${FSLBIN_NAME}" |
20 | 21 | ||
diff --git a/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb b/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb index 0f444cfa..0735d89c 100644 --- a/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb +++ b/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb | |||
@@ -4,7 +4,7 @@ | |||
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=ea25d099982d035af85d193c88a1b479" | 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=63a38e9f392d8813d6f1f4d0d6fbe657" |
8 | 8 | ||
9 | PROVIDES += "virtual/libg2d" | 9 | PROVIDES += "virtual/libg2d" |
10 | 10 | ||
@@ -13,7 +13,7 @@ PV = "2.1.0+git${SRCPV}" | |||
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.1" | 15 | SRCBRANCH ?= "imx_2.1" |
16 | SRCREV = "8887f6bbf533affef7e22a65179a08a25f1547f1" | 16 | SRCREV = "667c4ccbba208f47ac6d78f11a2c30737c66600f" |
17 | 17 | ||
18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
19 | 19 | ||
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 affdf1c6..59d1716f 100644 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | |||
@@ -74,9 +74,11 @@ PE = "1" | |||
74 | 74 | ||
75 | inherit fsl-eula-unpack | 75 | inherit fsl-eula-unpack |
76 | 76 | ||
77 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \ | ||
78 | file://imx_icd.json" | ||
79 | FILESEXTRAPATHS:append := "${THISDIR}/imx-gpu-viv:" | 77 | FILESEXTRAPATHS:append := "${THISDIR}/imx-gpu-viv:" |
78 | SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true \ | ||
79 | file://imx_icd.json" | ||
80 | |||
81 | S = "${WORKDIR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}" | ||
80 | 82 | ||
81 | PACKAGECONFIG ?= "" | 83 | PACKAGECONFIG ?= "" |
82 | 84 | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch32.bb deleted file mode 100644 index 846fa31d..00000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch32.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | ||
2 | # Copyright 2017-2020 NXP | ||
3 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
4 | |||
5 | require imx-gpu-viv-6.inc | ||
6 | |||
7 | SRC_URI[md5sum] = "9a1796264d9a07205e3ec7bc184599c8" | ||
8 | SRC_URI[sha256sum] = "6e2f3fb43d16c30fd0b23027f5205818e9d4c74d4903f1c63f265ccf8269f01d" | ||
9 | |||
10 | 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.p1.0-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch64.bb deleted file mode 100644 index c1cde9f3..00000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch64.bb +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | SRC_URI[md5sum] = "f7b41c4f8bfa25959796d240ca0bb285" | ||
4 | SRC_URI[sha256sum] = "4a5f2235500dc4bdfaaeaffa0e4c13cdd28436cc0d859e5be222bce990fda461" | ||
5 | |||
6 | INSANE_SKIP:append:libc-musl = " file-rdeps" | ||
7 | RDEPENDS:${PN}:append:libc-musl = " gcompat" | ||
8 | |||
9 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch32.bb new file mode 100644 index 00000000..07834a3b --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch32.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "1e0c396" | ||
6 | |||
7 | SRC_URI[md5sum] = "ac711ff819a31602021b7700b41c1ecc" | ||
8 | SRC_URI[sha256sum] = "491ac012d691e27856769296e2334ad1b6f45e31ffe7313fcdb028c75b3b69ae" | ||
9 | |||
10 | 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.p1.2-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch64.bb new file mode 100644 index 00000000..6201ee38 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch64.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "1e0c396" | ||
6 | |||
7 | SRC_URI[md5sum] = "34b1a4de2fc9fba8b15fc1f204096603" | ||
8 | SRC_URI[sha256sum] = "d5904cbbe33a3c1160e9cd15c44d78df25d0dbd7b251add796673af53d3046f6" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb index 294ff920..534f46c8 100644 --- a/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb +++ b/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c7b12b6702da38ca028ace54aae3d484 \ | |||
11 | 11 | ||
12 | SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.31" | 12 | SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.31" |
13 | SRCREV = "99a2a439fc6b5d25d41bfec9c9b459408a45bf92" | 13 | SRCREV = "99a2a439fc6b5d25d41bfec9c9b459408a45bf92" |
14 | |||
14 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
15 | 16 | ||
16 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" | 17 | UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" |
@@ -24,5 +25,7 @@ EXTRA_OEMESON += "-Dtests=false" | |||
24 | PACKAGES = "${PN}" | 25 | PACKAGES = "${PN}" |
25 | FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" | 26 | FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" |
26 | 27 | ||
28 | BBCLASSEXTEND = "native nativesdk" | ||
29 | |||
27 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 30 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
28 | COMPATIBLE_MACHINE = "(mx6-nxp-bsp|mx7-nxp-bsp|mx8-nxp-bsp|mx9-nxp-bsp)" | 31 | COMPATIBLE_MACHINE = "(mx6-nxp-bsp|mx7-nxp-bsp|mx8-nxp-bsp|mx9-nxp-bsp)" |
diff --git a/recipes-graphics/wayland/weston/xwayland.weston-start b/recipes-graphics/wayland/weston/xwayland.weston-start index 342ac8d1..49204f21 100644 --- a/recipes-graphics/wayland/weston/xwayland.weston-start +++ b/recipes-graphics/wayland/weston/xwayland.weston-start | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | if type Xwayland >/dev/null 2>/dev/null; then | 3 | if type Xwayland >/dev/null 2>/dev/null; then |
4 | mkdir -m 775 -p /tmp/.X11-unix | 4 | mkdir -m 775 -p /tmp/.X11-unix |
5 | chown root:video /tmp/.X11-unix | 5 | chown root:video /tmp/.X11-unix |
6 | fi | 6 | fi |
diff --git a/recipes-graphics/wayland/weston_10.0.3.imx.bb b/recipes-graphics/wayland/weston_10.0.3.imx.bb index f3e913fc..d5e2cf56 100644 --- a/recipes-graphics/wayland/weston_10.0.3.imx.bb +++ b/recipes-graphics/wayland/weston_10.0.3.imx.bb | |||
@@ -9,7 +9,7 @@ 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" |
10 | HOMEPAGE = "http://wayland.freedesktop.org" | 10 | HOMEPAGE = "http://wayland.freedesktop.org" |
11 | LICENSE = "MIT" | 11 | LICENSE = "MIT" |
12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70 \ | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \ |
13 | file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \ | 13 | file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \ |
14 | " | 14 | " |
15 | 15 | ||
@@ -155,6 +155,9 @@ GROUPADD_PARAM:${PN} = "--system weston-launch" | |||
155 | 155 | ||
156 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" | 156 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" |
157 | 157 | ||
158 | LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" | ||
159 | LIC_FILES_CHKSUM:append = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | ||
160 | |||
158 | DEFAULT_PREFERENCE = "-1" | 161 | DEFAULT_PREFERENCE = "-1" |
159 | 162 | ||
160 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" | 163 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" |
diff --git a/recipes-graphics/wayland/weston_11.0.1.imx.bb b/recipes-graphics/wayland/weston_11.0.1.imx.bb index a14f8d99..4dcb6992 100644 --- a/recipes-graphics/wayland/weston_11.0.1.imx.bb +++ b/recipes-graphics/wayland/weston_11.0.1.imx.bb | |||
@@ -9,7 +9,7 @@ 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" |
10 | HOMEPAGE = "http://wayland.freedesktop.org" | 10 | HOMEPAGE = "http://wayland.freedesktop.org" |
11 | LICENSE = "MIT" | 11 | LICENSE = "MIT" |
12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70 \ | 12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70 \ |
13 | file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \ | 13 | file://libweston/compositor.c;endline=27;md5=eb6d5297798cabe2ddc65e2af519bcf0 \ |
14 | " | 14 | " |
15 | 15 | ||
@@ -150,6 +150,8 @@ GROUPADD_PARAM:${PN} = "--system weston-launch" | |||
150 | ########### i.MX overrides ################ | 150 | ########### i.MX overrides ################ |
151 | 151 | ||
152 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" | 152 | SUMMARY = "Weston, a Wayland compositor, i.MX fork" |
153 | LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70" | ||
154 | LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | ||
153 | 155 | ||
154 | DEFAULT_PREFERENCE = "-1" | 156 | DEFAULT_PREFERENCE = "-1" |
155 | 157 | ||
@@ -157,7 +159,7 @@ SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV} | |||
157 | SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " | 159 | SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " |
158 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" | 160 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" |
159 | SRCBRANCH = "weston-imx-11.0.1" | 161 | SRCBRANCH = "weston-imx-11.0.1" |
160 | SRCREV = "36ab06f0ad8e8981a482df6a08f39e1ae2a6a2dd" | 162 | SRCREV = "12875cd94a42fc96d4236de46762ef358e3ec913" |
161 | S = "${WORKDIR}/git" | 163 | S = "${WORKDIR}/git" |
162 | 164 | ||
163 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | 165 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" |
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch b/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch new file mode 100644 index 00000000..d7166522 --- /dev/null +++ b/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From c76f5d2c0a0dda534888025d7236465202884665 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xianzhong <xianzhong.li@nxp.com> | ||
3 | Date: Thu, 5 Aug 2021 16:57:43 +0800 | ||
4 | Subject: [PATCH] glamor: Fix fbo pixmap format with GL_BGRA_EXT | ||
5 | |||
6 | Red and Blue channels are swizzled in GLES path, | ||
7 | Fix color inverse problem with ximagesink command: | ||
8 | gst-launch-1.0 videotestsrc pattern=6 num-buffers=1 ! video/x-raw,format=BGRx ! videoconvert ! ximagesink display=:0 -v | ||
9 | |||
10 | This fix requires GL_EXT_texture_format_BGRA8888 extention, not applicable for upstream. | ||
11 | |||
12 | Upstream-Status: Inappropriate | ||
13 | |||
14 | Signed-off-by: Xianzhong <xianzhong.li@nxp.com> | ||
15 | --- | ||
16 | glamor/glamor.c | 7 +++++++ | ||
17 | 1 file changed, 7 insertions(+) | ||
18 | |||
19 | diff --git a/glamor/glamor.c b/glamor/glamor.c | ||
20 | index 3450113e0..e327b9db8 100644 | ||
21 | --- a/glamor/glamor.c | ||
22 | +++ b/glamor/glamor.c | ||
23 | @@ -574,10 +574,17 @@ glamor_setup_formats(ScreenPtr screen) | ||
24 | |||
25 | if (glamor_priv->is_gles) { | ||
26 | assert(X_BYTE_ORDER == X_LITTLE_ENDIAN); | ||
27 | +#if GL_EXT_texture_format_BGRA8888 | ||
28 | + glamor_add_format(screen, 24, PICT_x8r8g8b8, | ||
29 | + GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE); | ||
30 | + glamor_add_format(screen, 32, PICT_a8r8g8b8, | ||
31 | + GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE); | ||
32 | +#else | ||
33 | glamor_add_format(screen, 24, PICT_x8b8g8r8, | ||
34 | GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE); | ||
35 | glamor_add_format(screen, 32, PICT_a8b8g8r8, | ||
36 | GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE); | ||
37 | +#endif | ||
38 | } else { | ||
39 | glamor_add_format(screen, 24, PICT_x8r8g8b8, | ||
40 | GL_RGBA, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV); | ||
41 | -- | ||
42 | 2.17.1 | ||
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend index 161df049..cf1c3a50 100644 --- a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend +++ b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | |||
@@ -2,6 +2,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" | |||
2 | 2 | ||
3 | SRC_URI:append:use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch" | 3 | SRC_URI:append:use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch" |
4 | 4 | ||
5 | SRC_URI:append:imxgpu = " file://0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch" | ||
6 | |||
5 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" | 7 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" |
6 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" | 8 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" |
7 | OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 9 | OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" |