summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2023-05-02 08:56:58 -0300
committerGitHub <noreply@github.com>2023-05-02 08:56:58 -0300
commitc112655d9b4b4ca79a14237c658a9fec7db325c0 (patch)
treeb06386723c137ae6162bbca1c75495ec4c5cde3e
parent91a9885b98de7dcb7de9551d7a5d5f1b9da651c8 (diff)
parentcbc85581a682d4a864bd2711b760f933a6516fa0 (diff)
downloadmeta-freescale-c112655d9b4b4ca79a14237c658a9fec7db325c0.tar.gz
Merge pull request #1489 from YoeDistro/yoe/mut
Fixes needed for xwayland 23.x
-rw-r--r--conf/machine/include/imx-base.inc8
-rw-r--r--recipes-graphics/wayland/wayland-protocols_1.31.imx.bb (renamed from recipes-graphics/wayland/wayland-protocols_1.25.imx.bb)6
-rw-r--r--recipes-graphics/xwayland/xwayland/0002-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch39
-rw-r--r--recipes-graphics/xwayland/xwayland_%.bbappend1
4 files changed, 7 insertions, 47 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc
index 10c3601a..b8190abf 100644
--- a/conf/machine/include/imx-base.inc
+++ b/conf/machine/include/imx-base.inc
@@ -517,10 +517,10 @@ PREFERRED_PROVIDER_virtual/opencl-icd:imxgpu ?= "imx-gpu-viv"
517PREFERRED_VERSION_weston:imx-nxp-bsp ??= "10.0.1.imx" 517PREFERRED_VERSION_weston:imx-nxp-bsp ??= "10.0.1.imx"
518PREFERRED_VERSION_weston:imx-mainline-bsp = "" 518PREFERRED_VERSION_weston:imx-mainline-bsp = ""
519 519
520PREFERRED_VERSION_wayland-protocols:mx6-nxp-bsp ??= "1.25.imx" 520PREFERRED_VERSION_wayland-protocols:mx6-nxp-bsp ??= "1.31.imx"
521PREFERRED_VERSION_wayland-protocols:mx7-nxp-bsp ??= "1.25.imx" 521PREFERRED_VERSION_wayland-protocols:mx7-nxp-bsp ??= "1.31.imx"
522PREFERRED_VERSION_wayland-protocols:mx8-nxp-bsp ??= "1.25.imx" 522PREFERRED_VERSION_wayland-protocols:mx8-nxp-bsp ??= "1.31.imx"
523PREFERRED_VERSION_wayland-protocols:mx9-nxp-bsp ??= "1.25.imx" 523PREFERRED_VERSION_wayland-protocols:mx9-nxp-bsp ??= "1.31.imx"
524 524
525# Use i.MX libdrm Version 525# Use i.MX libdrm Version
526PREFERRED_VERSION_libdrm:mx6-nxp-bsp ??= "2.4.109.imx" 526PREFERRED_VERSION_libdrm:mx6-nxp-bsp ??= "2.4.109.imx"
diff --git a/recipes-graphics/wayland/wayland-protocols_1.25.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb
index b31267c1..294ff920 100644
--- a/recipes-graphics/wayland/wayland-protocols_1.25.imx.bb
+++ b/recipes-graphics/wayland/wayland-protocols_1.31.imx.bb
@@ -6,11 +6,11 @@ protocol either in Wayland core, or some other protocol in \
6wayland-protocols." 6wayland-protocols."
7HOMEPAGE = "http://wayland.freedesktop.org" 7HOMEPAGE = "http://wayland.freedesktop.org"
8LICENSE = "MIT" 8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://COPYING;md5=c7b12b6702da38ca028ace54aae3d484 \ 9LIC_FILES_CHKSUM = "file://LICENSE;md5=c7b12b6702da38ca028ace54aae3d484 \
10 file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53" 10 file://stable/presentation-time/presentation-time.xml;endline=26;md5=4646cd7d9edc9fa55db941f2d3a7dc53"
11 11
12SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.25" 12SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-1.31"
13SRCREV = "a104fb66d1b899dc04077422c2204638675ee4a6" 13SRCREV = "99a2a439fc6b5d25d41bfec9c9b459408a45bf92"
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15 15
16UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html" 16UPSTREAM_CHECK_URI = "https://wayland.freedesktop.org/releases.html"
diff --git a/recipes-graphics/xwayland/xwayland/0002-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch b/recipes-graphics/xwayland/xwayland/0002-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch
deleted file mode 100644
index 1c6cf2ec..00000000
--- a/recipes-graphics/xwayland/xwayland/0002-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 4508e54dae9d2884b2d6ccca13450b25d509cc9a Mon Sep 17 00:00:00 2001
2From: Xianzhong <xianzhong.li@nxp.com>
3Date: Thu, 5 Aug 2021 16:57:43 +0800
4Subject: [PATCH 3/3] 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 extension, not applicable for upstream.
11
12Upstream-Status: Inappropriate [embedded specific]
13Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
14---
15 glamor/glamor.c | 7 +++++++
16 1 file changed, 7 insertions(+)
17
18Index: xwayland-21.1.4/glamor/glamor.c
19===================================================================
20--- xwayland-21.1.4.orig/glamor/glamor.c
21+++ xwayland-21.1.4/glamor/glamor.c
22@@ -586,10 +586,17 @@ glamor_setup_formats(ScreenPtr screen)
23
24 if (glamor_priv->is_gles) {
25 assert(X_BYTE_ORDER == X_LITTLE_ENDIAN);
26+#if GL_EXT_texture_format_BGRA8888
27+ glamor_add_format(screen, 24, PICT_x8r8g8b8,
28+ GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, TRUE);
29+ glamor_add_format(screen, 32, PICT_a8r8g8b8,
30+ GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, TRUE);
31+#else
32 glamor_add_format(screen, 24, PICT_x8b8g8r8,
33 GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, TRUE);
34 glamor_add_format(screen, 32, PICT_a8b8g8r8,
35 GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, TRUE);
36+#endif
37 } else {
38 glamor_add_format(screen, 24, PICT_x8r8g8b8,
39 GL_RGBA, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, TRUE);
diff --git a/recipes-graphics/xwayland/xwayland_%.bbappend b/recipes-graphics/xwayland/xwayland_%.bbappend
index f2141f4f..8515a538 100644
--- a/recipes-graphics/xwayland/xwayland_%.bbappend
+++ b/recipes-graphics/xwayland/xwayland_%.bbappend
@@ -2,7 +2,6 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2 2
3SRC_URI:append:imxgpu = " \ 3SRC_URI:append:imxgpu = " \
4 file://0001-Prefer-to-create-GLES2-context-for-glamor-EGL.patch \ 4 file://0001-Prefer-to-create-GLES2-context-for-glamor-EGL.patch \
5 file://0002-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch \
6" 5"
7 6
8OPENGL_PKGCONFIGS:remove:imxgpu = "${OPENGL_PKGCONFIGS_REMOVE_IMXGPU}" 7OPENGL_PKGCONFIGS:remove:imxgpu = "${OPENGL_PKGCONFIGS_REMOVE_IMXGPU}"