summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc9
-rw-r--r--recipes-graphics/mali/mali-imx.inc1
-rw-r--r--recipes-graphics/mesa/mesa.bbappend43
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch38
-rw-r--r--recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend2
-rw-r--r--recipes-graphics/xwayland/xwayland_%.bbappend (renamed from recipes-graphics/xwayland/xwayland_24.1.6.imx.bbappend)0
-rw-r--r--recipes-graphics/xwayland/xwayland_24.1.6.imx.bb62
7 files changed, 4 insertions, 151 deletions
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 ab29270b9..3b05b2abd 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -61,12 +61,6 @@ PROVIDES_OPENVX:mx8mm-nxp-bsp = ""
61 61
62RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" 62RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv"
63 63
64RPROVIDES_OPENCL = "opencl-icd-loader-dev"
65RPROVIDES_OPENCL:mx7-nxp-bsp = ""
66RPROVIDES_OPENCL:mx8mm-nxp-bsp = ""
67
68RPROVIDES:${PN}:append:imx-nxp-bsp = " ${RPROVIDES_OPENCL}"
69
70PE = "1" 64PE = "1"
71 65
72inherit fsl-eula-unpack 66inherit fsl-eula-unpack
@@ -393,6 +387,9 @@ FILES:libopencl-imx = "${libdir}/libOpenCL${REALSOLIBS} \
393 ${sysconfdir}/OpenCL/vendors/Vivante.icd" 387 ${sysconfdir}/OpenCL/vendors/Vivante.icd"
394FILES:libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" 388FILES:libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}"
395RDEPENDS:libopencl-imx = "libclc-imx" 389RDEPENDS:libopencl-imx = "libclc-imx"
390RPROVIDES:libopencl-imx = "virtual-opencl-icd"
391RPROVIDES:libopencl-imx:mx7-nxp-bsp = ""
392RPROVIDES:libopencl-imx:mx8mm-nxp-bsp = ""
396 393
397FILES:libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS} ${libdir}/libOpenVG*${SOLIBS}" 394FILES:libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS} ${libdir}/libOpenVG*${SOLIBS}"
398FILES:libopenvg-imx-dev = "${includedir}/VG ${libdir}/pkgconfig/vg.pc" 395FILES:libopenvg-imx-dev = "${includedir}/VG ${libdir}/pkgconfig/vg.pc"
diff --git a/recipes-graphics/mali/mali-imx.inc b/recipes-graphics/mali/mali-imx.inc
index 87f73440f..97a1175e7 100644
--- a/recipes-graphics/mali/mali-imx.inc
+++ b/recipes-graphics/mali/mali-imx.inc
@@ -43,6 +43,7 @@ FILES:${PN}-libgles2 = " \
43 ${libdir}/libGLESv2${SOLIBS}" 43 ${libdir}/libGLESv2${SOLIBS}"
44FILES:${PN}-opencl-icd = " \ 44FILES:${PN}-opencl-icd = " \
45 ${sysconfdir}/OpenCL" 45 ${sysconfdir}/OpenCL"
46RPROVIDES:${PN}-opencl-icd = "virtual-opencl-icd"
46FILES:${PN}-libvulkan = " \ 47FILES:${PN}-libvulkan = " \
47 ${sysconfdir}/vulkan" 48 ${sysconfdir}/vulkan"
48RDEPENDS:${PN}-libvulkan = "vulkan-wsi-layer" 49RDEPENDS:${PN}-libvulkan = "vulkan-wsi-layer"
diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 1c75c9884..926f57589 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,46 +1,3 @@
1PROVIDES:remove:imxgpu = "virtual/egl"
2PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2"
3
4PACKAGECONFIG:remove:imxgpu = "egl gbm"
5PACKAGECONFIG:remove:imxgpu3d = "gles"
6
7# FIXME: mesa should support 'x11-no-tls' option
8python () {
9 overrides = d.getVar("OVERRIDES").split(":")
10 if "imxgpu2d" not in overrides:
11 return
12
13 x11flag = d.getVarFlag("PACKAGECONFIG", "x11", False)
14 d.setVarFlag("PACKAGECONFIG", "x11", x11flag.replace("--enable-glx-tls", "--enable-glx"))
15}
16
17# Enable Etnaviv and Freedreno support 1# Enable Etnaviv and Freedreno support
18PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" 2PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno"
19
20# For NXP BSP, GPU drivers don't support dri
21PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri"
22
23# mainline/etnaviv:
24RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" 3RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env"
25
26BACKEND = \
27 "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
28 bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \
29 'fb', d), d)}"
30
31# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
32do_install:append:imxgpu3d () {
33 rm -f ${D}${libdir}/libGL.* \
34 ${D}${includedir}/GL/gl.h \
35 ${D}${includedir}/GL/glcorearb.h \
36 ${D}${includedir}/GL/glext.h \
37 ${D}${includedir}/GL/glx.h \
38 ${D}${includedir}/GL/glxext.h
39 if [ "${BACKEND}" = "x11" ]; then
40 rm -f ${D}${libdir}/pkgconfig/gl.pc
41 fi
42}
43
44do_install:append:imxgpu () {
45 rm -rf ${D}${includedir}/KHR
46}
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
deleted file mode 100644
index 960bf3b50..000000000
--- a/recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch
+++ /dev/null
@@ -1,38 +0,0 @@
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
19--- a/glamor/glamor.c
20+++ b/glamor/glamor.c
21@@ -586,10 +586,17 @@ glamor_setup_formats(ScreenPtr screen)
22
23 if (glamor_priv->is_gles) {
24 assert(X_BYTE_ORDER == X_LITTLE_ENDIAN);
25+#if GL_EXT_texture_format_BGRA8888
26+ glamor_add_format(screen, 24, PICT_x8r8g8b8,
27+ GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, TRUE);
28+ glamor_add_format(screen, 32, PICT_a8r8g8b8,
29+ GL_BGRA_EXT, GL_BGRA_EXT, GL_UNSIGNED_BYTE, TRUE);
30+#else
31 glamor_add_format(screen, 24, PICT_x8b8g8r8,
32 GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, TRUE);
33 glamor_add_format(screen, 32, PICT_a8b8g8r8,
34 GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, TRUE);
35+#endif
36 } else {
37 glamor_add_format(screen, 24, PICT_x8r8g8b8,
38 GL_RGBA, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, TRUE);
diff --git a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
index cf1c3a50f..161df0498 100644
--- a/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
+++ b/recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend
@@ -2,8 +2,6 @@ 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
7IMX_OPENGL_PKGCONFIGS_REMOVE = "" 5IMX_OPENGL_PKGCONFIGS_REMOVE = ""
8IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" 6IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor"
9OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" 7OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}"
diff --git a/recipes-graphics/xwayland/xwayland_24.1.6.imx.bbappend b/recipes-graphics/xwayland/xwayland_%.bbappend
index d8f5bdde5..d8f5bdde5 100644
--- a/recipes-graphics/xwayland/xwayland_24.1.6.imx.bbappend
+++ b/recipes-graphics/xwayland/xwayland_%.bbappend
diff --git a/recipes-graphics/xwayland/xwayland_24.1.6.imx.bb b/recipes-graphics/xwayland/xwayland_24.1.6.imx.bb
deleted file mode 100644
index 1d7ee80f6..000000000
--- a/recipes-graphics/xwayland/xwayland_24.1.6.imx.bb
+++ /dev/null
@@ -1,62 +0,0 @@
1# This recipe copy helps keep meta-freescale master branch compatible
2# with Yocto walnascar.
3# (From OE-Core rev: 737e612ca36bbdf415a911644eb7592cf9389846847b47fa46dc705bd754d2d7)
4
5SUMMARY = "XWayland is an X Server that runs under Wayland."
6DESCRIPTION = "XWayland is an X Server running as a Wayland client, \
7and thus is capable of displaying native X11 client applications in a \
8Wayland compositor environment. The goal of XWayland is to facilitate \
9the transition from X Window System to Wayland environments, providing \
10a way to run unported applications in the meantime."
11HOMEPAGE = "https://fedoraproject.org/wiki/Changes/XwaylandStandalone"
12
13DEFAULT_PREFERENCE = "-1"
14
15LICENSE = "MIT"
16LIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880"
17
18SRC_URI = "https://www.x.org/archive/individual/xserver/${BP_ORIGINAL}.tar.xz"
19BP_ORIGINAL = "${BPN}-24.1.6"
20SRC_URI[sha256sum] = "737e612ca36bbdf415a911644eb7592cf9389846847b47fa46dc705bd754d2d7"
21S = "${UNPACKDIR}/${BP_ORIGINAL}"
22
23UPSTREAM_CHECK_REGEX = "xwayland-(?P<pver>\d+(\.(?!90\d)\d+)+)\.tar"
24
25inherit meson features_check pkgconfig
26REQUIRED_DISTRO_FEATURES = "x11 opengl"
27
28DEPENDS += "xorgproto xtrans pixman libxkbfile libxfont2 wayland wayland-native wayland-protocols libdrm libepoxy libxcvt libtirpc"
29
30OPENGL_PKGCONFIGS = "glx glamor dri3"
31PACKAGECONFIG ??= "${XORG_CRYPTO} ${XWAYLAND_EI} \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \
33"
34PACKAGECONFIG[dri3] = "-Ddri3=true,-Ddri3=false,libxshmfence"
35PACKAGECONFIG[libdecor] = "-Dlibdecor=true,-Dlibdecor=false,libdecor"
36PACKAGECONFIG[glx] = "-Dglx=true,-Dglx=false,virtual/libgl virtual/libx11"
37PACKAGECONFIG[glamor] = "-Dglamor=true,-Dglamor=false,libepoxy virtual/libgbm,libegl"
38PACKAGECONFIG[unwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind"
39PACKAGECONFIG[xinerama] = "-Dxinerama=true,-Dxinerama=false"
40
41# Xorg requires a SHA1 implementation, pick one
42XORG_CRYPTO ??= "openssl"
43PACKAGECONFIG[openssl] = "-Dsha1=libcrypto,,openssl"
44PACKAGECONFIG[nettle] = "-Dsha1=libnettle,,nettle"
45PACKAGECONFIG[gcrypt] = "-Dsha1=libgcrypt,,libgcrypt"
46XWAYLAND_EI ??= "xwayland_ei_false"
47PACKAGECONFIG[xwayland_ei_false] = "-Dxwayland_ei=false"
48PACKAGECONFIG[xwayland_ei_portal] = "-Dxwayland_ei=portal,,libei"
49PACKAGECONFIG[xwayland_ei_socket] = "-Dxwayland_ei=socket,,libei"
50
51do_install:append() {
52 # remove files not needed and clashing with xserver-xorg
53 rm -rf ${D}/${libdir}/xorg/
54}
55
56FILES:${PN} += "${libdir}/xorg/protocol.txt"
57
58RDEPENDS:${PN} += "xkbcomp"
59
60CVE_STATUS_GROUPS = "CVE_STATUS_REDHAT"
61CVE_STATUS_REDHAT = "CVE-2025-26594 CVE-2025-26595 CVE-2025-26596 CVE-2025-26597 CVE-2025-26598 CVE-2025-26599 CVE-2025-26600 CVE-2025-26601"
62CVE_STATUS_REDHAT[status] = "fixed-version: these are tracked as versionless redhat CVEs in NVD DB, fixed in 24.1.6"