summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2023-08-01 16:55:20 -0300
committerGitHub <noreply@github.com>2023-08-01 16:55:20 -0300
commitaa55f5572164678bd159508fec4be6e7b6cad7a4 (patch)
tree474f8dfa5691e2109b69087b77b9e5802b318e81
parent29758cce6b676ecee9b654954bd4aa94f4b94d9e (diff)
parent34d3d81528739f5338ce61ac1a96cfda0e9852ee (diff)
downloadmeta-freescale-aa55f5572164678bd159508fec4be6e7b6cad7a4.tar.gz
Merge pull request #1635 from Freescale/topic/upgrade-graphics
Upgrade graphics packages
-rw-r--r--recipes-graphics/drm/libdrm_2.4.114.imx.bb2
-rw-r--r--recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.8.bb (renamed from recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.6.bb)6
-rw-r--r--recipes-graphics/imx-g2d/imx-g2d-samples_git.bb2
-rw-r--r--recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.2.bb (renamed from recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p1.0.bb)13
-rw-r--r--recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb4
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc6
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch32.bb10
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.0-aarch64.bb9
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch32.bb10
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p1.2-aarch64.bb10
-rw-r--r--recipes-graphics/wayland/wayland-protocols_1.31.imx.bb3
-rw-r--r--recipes-graphics/wayland/weston/xwayland.weston-start4
-rw-r--r--recipes-graphics/wayland/weston_10.0.3.imx.bb5
-rw-r--r--recipes-graphics/wayland/weston_11.0.1.imx.bb6
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch42
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend2
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"
14SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}" 14SRC_URI = "${IMX_LIBDRM_SRC};branch=${SRCBRANCH}"
15IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https;nobranch=1" 15IMX_LIBDRM_SRC ?= "git://github.com/nxp-imx/libdrm-imx.git;protocol=https;nobranch=1"
16SRCBRANCH ?= "libdrm-imx-2.4.114" 16SRCBRANCH ?= "libdrm-imx-2.4.114"
17SRCREV = "68531f3f411d65f71e4616f51e3ab841a7bac0aa" 17SRCREV = "3660ea0fee6f2f131eca73cd4c30d20021a84284"
18 18
19S = "${WORKDIR}/git" 19S = "${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
5DESCRIPTION = "G2D library using i.MX DPU" 5DESCRIPTION = "G2D library using i.MX DPU"
6LICENSE = "Proprietary" 6LICENSE = "Proprietary"
7LIC_FILES_CHKSUM = "file://COPYING;md5=ea25d099982d035af85d193c88a1b479" 7LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657"
8 8
9DEPENDS = "libgal-imx libdrm" 9DEPENDS = "libgal-imx libdrm"
10PROVIDES += "virtual/libg2d" 10PROVIDES += "virtual/libg2d"
11 11
12SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" 12SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true"
13SRC_URI[md5sum] = "ab5972089fe8746dc5fa5388e432a154" 13SRC_URI[md5sum] = "0f7ceac3f8ce97d4f0f6ad5bb8a5bbd2"
14SRC_URI[sha256sum] = "771d71b5766f148bfb349cbc069a1808ad43f881d17cb11ec2ca27a959a9ad34" 14SRC_URI[sha256sum] = "dfcda2c286076bb6080261901241eac2a9e9db8ebbd00f301d8f49665af4c835"
15 15
16inherit fsl-eula-unpack 16inherit 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}"
10SRC_URI = "${GPU_G2D_SAMPLES_SRC};branch=${SRCBRANCH}" 10SRC_URI = "${GPU_G2D_SAMPLES_SRC};branch=${SRCBRANCH}"
11GPU_G2D_SAMPLES_SRC ?= "git://github.com/nxp-imx/g2d-samples.git;protocol=https" 11GPU_G2D_SAMPLES_SRC ?= "git://github.com/nxp-imx/g2d-samples.git;protocol=https"
12SRCBRANCH ?= "imx_2.1" 12SRCBRANCH ?= "imx_2.1"
13SRCREV = "a5f620fcf0e986a19e4acdfa48c95eaf79a5c570" 13SRCREV = "4391dcda499870418bb38fe395c3cba0664c5bab"
14 14
15S = "${WORKDIR}/git" 15S = "${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
6DESCRIPTION = "G2D library using i.MX GPU" 6DESCRIPTION = "G2D library using i.MX GPU"
7LICENSE = "Proprietary" 7LICENSE = "Proprietary"
8LIC_FILES_CHKSUM = "file://COPYING;md5=ea25d099982d035af85d193c88a1b479" 8LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657"
9DEPENDS = "libgal-imx" 9DEPENDS = "libgal-imx"
10PROVIDES = "virtual/libg2d" 10PROVIDES = "virtual/libg2d"
11 11
12SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true"
13FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}" 12FSLBIN_NAME = "${PN}-${PV}-${TARGET_ARCH}"
14SRC_URI[aarch64.md5sum] = "7aafa5910ef3e3be1c449b4bddd97b56" 13
15SRC_URI[aarch64.sha256sum] = "9bf8ebbfc85245d75ab7d133c3e135a4c5f23a0430c75883af9700e9cb82c151" 14SRC_URI = "${FSL_MIRROR}/${FSLBIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true"
16SRC_URI[arm.md5sum] = "e0da61541b0b95083a3c95cc0bba4f63" 15SRC_URI[aarch64.md5sum] = "f345087b5046fd63c418771f0929350d"
17SRC_URI[arm.sha256sum] = "65427c12b43c7bb3838ec2bc91a5853c310652b920a65b2b52bacad8e761a8e4" 16SRC_URI[aarch64.sha256sum] = "cdf096c9b15c773ad600b24ec8888c1c4a33711c195c655e9411d4b66a992c25"
17SRC_URI[arm.md5sum] = "f02c7df5f52b97a7b453179dedd44189"
18SRC_URI[arm.sha256sum] = "1ed29a4818161198b658ffc428dff7c154c38f5ba48d7358ed9b0be261d72b99"
18 19
19S = "${WORKDIR}/${FSLBIN_NAME}" 20S = "${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
5DESCRIPTION = "G2D library using i.MX PXP" 5DESCRIPTION = "G2D library using i.MX PXP"
6LICENSE = "Proprietary" 6LICENSE = "Proprietary"
7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ea25d099982d035af85d193c88a1b479" 7LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=63a38e9f392d8813d6f1f4d0d6fbe657"
8 8
9PROVIDES += "virtual/libg2d" 9PROVIDES += "virtual/libg2d"
10 10
@@ -13,7 +13,7 @@ PV = "2.1.0+git${SRCPV}"
13SRC_URI = "${IMX_PXP_G2D_SRC};branch=${SRCBRANCH}" 13SRC_URI = "${IMX_PXP_G2D_SRC};branch=${SRCBRANCH}"
14IMX_PXP_G2D_SRC ?= "git://github.com/nxp-imx/imx-g2d-pxp.git;protocol=https" 14IMX_PXP_G2D_SRC ?= "git://github.com/nxp-imx/imx-g2d-pxp.git;protocol=https"
15SRCBRANCH ?= "imx_2.1" 15SRCBRANCH ?= "imx_2.1"
16SRCREV = "8887f6bbf533affef7e22a65179a08a25f1547f1" 16SRCREV = "667c4ccbba208f47ac6d78f11a2c30737c66600f"
17 17
18S = "${WORKDIR}/git" 18S = "${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
75inherit fsl-eula-unpack 75inherit fsl-eula-unpack
76 76
77SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true \
78 file://imx_icd.json"
79FILESEXTRAPATHS:append := "${THISDIR}/imx-gpu-viv:" 77FILESEXTRAPATHS:append := "${THISDIR}/imx-gpu-viv:"
78SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}.bin;fsl-eula=true \
79 file://imx_icd.json"
80
81S = "${WORKDIR}/${BPN}-${PV}-${IMX_SRCREV_ABBREV}"
80 82
81PACKAGECONFIG ?= "" 83PACKAGECONFIG ?= ""
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
5require imx-gpu-viv-6.inc
6
7SRC_URI[md5sum] = "9a1796264d9a07205e3ec7bc184599c8"
8SRC_URI[sha256sum] = "6e2f3fb43d16c30fd0b23027f5205818e9d4c74d4903f1c63f265ccf8269f01d"
9
10COMPATIBLE_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 @@
1require imx-gpu-viv-6.inc
2
3SRC_URI[md5sum] = "f7b41c4f8bfa25959796d240ca0bb285"
4SRC_URI[sha256sum] = "4a5f2235500dc4bdfaaeaffa0e4c13cdd28436cc0d859e5be222bce990fda461"
5
6INSANE_SKIP:append:libc-musl = " file-rdeps"
7RDEPENDS:${PN}:append:libc-musl = " gcompat"
8
9COMPATIBLE_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 @@
1require imx-gpu-viv-6.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657"
4
5IMX_SRCREV_ABBREV = "1e0c396"
6
7SRC_URI[md5sum] = "ac711ff819a31602021b7700b41c1ecc"
8SRC_URI[sha256sum] = "491ac012d691e27856769296e2334ad1b6f45e31ffe7313fcdb028c75b3b69ae"
9
10COMPATIBLE_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 @@
1require imx-gpu-viv-6.inc
2
3LIC_FILES_CHKSUM = "file://COPYING;md5=63a38e9f392d8813d6f1f4d0d6fbe657"
4
5IMX_SRCREV_ABBREV = "1e0c396"
6
7SRC_URI[md5sum] = "34b1a4de2fc9fba8b15fc1f204096603"
8SRC_URI[sha256sum] = "d5904cbbe33a3c1160e9cd15c44d78df25d0dbd7b251add796673af53d3046f6"
9
10COMPATIBLE_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
12SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.31" 12SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.31"
13SRCREV = "99a2a439fc6b5d25d41bfec9c9b459408a45bf92" 13SRCREV = "99a2a439fc6b5d25d41bfec9c9b459408a45bf92"
14
14S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
15 16
16UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" 17UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html"
@@ -24,5 +25,7 @@ EXTRA_OEMESON += "-Dtests=false"
24PACKAGES = "${PN}" 25PACKAGES = "${PN}"
25FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc" 26FILES:${PN} += "${datadir}/pkgconfig/wayland-protocols.pc"
26 27
28BBCLASSEXTEND = "native nativesdk"
29
27PACKAGE_ARCH = "${MACHINE_SOCARCH}" 30PACKAGE_ARCH = "${MACHINE_SOCARCH}"
28COMPATIBLE_MACHINE = "(mx6-nxp-bsp|mx7-nxp-bsp|mx8-nxp-bsp|mx9-nxp-bsp)" 31COMPATIBLE_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
3if type Xwayland >/dev/null 2>/dev/null; then 3if 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
6fi 6fi
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"
9DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" 9DESCRIPTION = "Weston is the reference implementation of a Wayland compositor"
10HOMEPAGE = "http://wayland.freedesktop.org" 10HOMEPAGE = "http://wayland.freedesktop.org"
11LICENSE = "MIT" 11LICENSE = "MIT"
12LIC_FILES_CHKSUM = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70 \ 12LIC_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
156SUMMARY = "Weston, a Wayland compositor, i.MX fork" 156SUMMARY = "Weston, a Wayland compositor, i.MX fork"
157 157
158LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70"
159LIC_FILES_CHKSUM:append = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70"
160
158DEFAULT_PREFERENCE = "-1" 161DEFAULT_PREFERENCE = "-1"
159 162
160SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" 163SRC_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"
9DESCRIPTION = "Weston is the reference implementation of a Wayland compositor" 9DESCRIPTION = "Weston is the reference implementation of a Wayland compositor"
10HOMEPAGE = "http://wayland.freedesktop.org" 10HOMEPAGE = "http://wayland.freedesktop.org"
11LICENSE = "MIT" 11LICENSE = "MIT"
12LIC_FILES_CHKSUM = "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70 \ 12LIC_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
152SUMMARY = "Weston, a Wayland compositor, i.MX fork" 152SUMMARY = "Weston, a Wayland compositor, i.MX fork"
153LIC_FILES_CHKSUM:remove = "file://COPYING;md5=d79ee9e66bb0f95d3386a7acae780b70"
154LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70"
153 155
154DEFAULT_PREFERENCE = "-1" 156DEFAULT_PREFERENCE = "-1"
155 157
@@ -157,7 +159,7 @@ SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}
157SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " 159SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} "
158SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" 160SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch"
159SRCBRANCH = "weston-imx-11.0.1" 161SRCBRANCH = "weston-imx-11.0.1"
160SRCREV = "36ab06f0ad8e8981a482df6a08f39e1ae2a6a2dd" 162SRCREV = "12875cd94a42fc96d4236de46762ef358e3ec913"
161S = "${WORKDIR}/git" 163S = "${WORKDIR}/git"
162 164
163PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" 165PACKAGECONFIG_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 @@
1From c76f5d2c0a0dda534888025d7236465202884665 Mon Sep 17 00:00:00 2001
2From: Xianzhong <xianzhong.li@nxp.com>
3Date: Thu, 5 Aug 2021 16:57:43 +0800
4Subject: [PATCH] glamor: Fix fbo pixmap format with GL_BGRA_EXT
5
6Red and Blue channels are swizzled in GLES path,
7Fix color inverse problem with ximagesink command:
8gst-launch-1.0 videotestsrc pattern=6 num-buffers=1 ! video/x-raw,format=BGRx ! videoconvert ! ximagesink display=:0 -v
9
10This fix requires GL_EXT_texture_format_BGRA8888 extention, not applicable for upstream.
11
12Upstream-Status: Inappropriate
13
14Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
15---
16 glamor/glamor.c | 7 +++++++
17 1 file changed, 7 insertions(+)
18
19diff --git a/glamor/glamor.c b/glamor/glamor.c
20index 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--
422.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
3SRC_URI:append:use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch" 3SRC_URI:append:use-mainline-bsp = " file://0001-Allow-to-enable-atomic-in-modesetting-DDX.patch"
4 4
5SRC_URI:append:imxgpu = " file://0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch"
6
5IMX_OPENGL_PKGCONFIGS_REMOVE = "" 7IMX_OPENGL_PKGCONFIGS_REMOVE = ""
6IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" 8IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor"
7OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" 9OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}"