diff options
Diffstat (limited to 'recipes-graphics')
| -rw-r--r-- | recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc | 9 | ||||
| -rw-r--r-- | recipes-graphics/mali/mali-imx.inc | 1 | ||||
| -rw-r--r-- | recipes-graphics/mesa/mesa.bbappend | 43 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xorg/0001-glamor-Fix-fbo-pixmap-format-with-GL_BGRA_EXT.patch | 38 | ||||
| -rw-r--r-- | recipes-graphics/xorg-xserver/xserver-xorg_%.bbappend | 2 | ||||
| -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.bb | 62 |
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 | ||
| 62 | RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" | 62 | RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" |
| 63 | 63 | ||
| 64 | RPROVIDES_OPENCL = "opencl-icd-loader-dev" | ||
| 65 | RPROVIDES_OPENCL:mx7-nxp-bsp = "" | ||
| 66 | RPROVIDES_OPENCL:mx8mm-nxp-bsp = "" | ||
| 67 | |||
| 68 | RPROVIDES:${PN}:append:imx-nxp-bsp = " ${RPROVIDES_OPENCL}" | ||
| 69 | |||
| 70 | PE = "1" | 64 | PE = "1" |
| 71 | 65 | ||
| 72 | inherit fsl-eula-unpack | 66 | inherit 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" |
| 394 | FILES:libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" | 388 | FILES:libopencl-imx-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" |
| 395 | RDEPENDS:libopencl-imx = "libclc-imx" | 389 | RDEPENDS:libopencl-imx = "libclc-imx" |
| 390 | RPROVIDES:libopencl-imx = "virtual-opencl-icd" | ||
| 391 | RPROVIDES:libopencl-imx:mx7-nxp-bsp = "" | ||
| 392 | RPROVIDES:libopencl-imx:mx8mm-nxp-bsp = "" | ||
| 396 | 393 | ||
| 397 | FILES:libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS} ${libdir}/libOpenVG*${SOLIBS}" | 394 | FILES:libopenvg-imx = "${libdir}/libOpenVG*${REALSOLIBS} ${libdir}/libOpenVG*${SOLIBS}" |
| 398 | FILES:libopenvg-imx-dev = "${includedir}/VG ${libdir}/pkgconfig/vg.pc" | 395 | FILES: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}" |
| 44 | FILES:${PN}-opencl-icd = " \ | 44 | FILES:${PN}-opencl-icd = " \ |
| 45 | ${sysconfdir}/OpenCL" | 45 | ${sysconfdir}/OpenCL" |
| 46 | RPROVIDES:${PN}-opencl-icd = "virtual-opencl-icd" | ||
| 46 | FILES:${PN}-libvulkan = " \ | 47 | FILES:${PN}-libvulkan = " \ |
| 47 | ${sysconfdir}/vulkan" | 48 | ${sysconfdir}/vulkan" |
| 48 | RDEPENDS:${PN}-libvulkan = "vulkan-wsi-layer" | 49 | RDEPENDS:${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 @@ | |||
| 1 | PROVIDES:remove:imxgpu = "virtual/egl" | ||
| 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | ||
| 3 | |||
| 4 | PACKAGECONFIG:remove:imxgpu = "egl gbm" | ||
| 5 | PACKAGECONFIG:remove:imxgpu3d = "gles" | ||
| 6 | |||
| 7 | # FIXME: mesa should support 'x11-no-tls' option | ||
| 8 | python () { | ||
| 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 |
| 18 | PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" | 2 | PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" |
| 19 | |||
| 20 | # For NXP BSP, GPU drivers don't support dri | ||
| 21 | PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri" | ||
| 22 | |||
| 23 | # mainline/etnaviv: | ||
| 24 | RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" | 3 | RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" |
| 25 | |||
| 26 | BACKEND = \ | ||
| 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 | ||
| 32 | do_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 | |||
| 44 | do_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 @@ | |||
| 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 | --- 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 | ||
| 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 | |||
| 7 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" | 5 | IMX_OPENGL_PKGCONFIGS_REMOVE = "" |
| 8 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" | 6 | IMX_OPENGL_PKGCONFIGS_REMOVE:imxgpu = "glamor" |
| 9 | OPENGL_PKGCONFIGS:remove:mx6-nxp-bsp = "${IMX_OPENGL_PKGCONFIGS_REMOVE}" | 7 | OPENGL_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 | |||
| 5 | SUMMARY = "XWayland is an X Server that runs under Wayland." | ||
| 6 | DESCRIPTION = "XWayland is an X Server running as a Wayland client, \ | ||
| 7 | and thus is capable of displaying native X11 client applications in a \ | ||
| 8 | Wayland compositor environment. The goal of XWayland is to facilitate \ | ||
| 9 | the transition from X Window System to Wayland environments, providing \ | ||
| 10 | a way to run unported applications in the meantime." | ||
| 11 | HOMEPAGE = "https://fedoraproject.org/wiki/Changes/XwaylandStandalone" | ||
| 12 | |||
| 13 | DEFAULT_PREFERENCE = "-1" | ||
| 14 | |||
| 15 | LICENSE = "MIT" | ||
| 16 | LIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880" | ||
| 17 | |||
| 18 | SRC_URI = "https://www.x.org/archive/individual/xserver/${BP_ORIGINAL}.tar.xz" | ||
| 19 | BP_ORIGINAL = "${BPN}-24.1.6" | ||
| 20 | SRC_URI[sha256sum] = "737e612ca36bbdf415a911644eb7592cf9389846847b47fa46dc705bd754d2d7" | ||
| 21 | S = "${UNPACKDIR}/${BP_ORIGINAL}" | ||
| 22 | |||
| 23 | UPSTREAM_CHECK_REGEX = "xwayland-(?P<pver>\d+(\.(?!90\d)\d+)+)\.tar" | ||
| 24 | |||
| 25 | inherit meson features_check pkgconfig | ||
| 26 | REQUIRED_DISTRO_FEATURES = "x11 opengl" | ||
| 27 | |||
| 28 | DEPENDS += "xorgproto xtrans pixman libxkbfile libxfont2 wayland wayland-native wayland-protocols libdrm libepoxy libxcvt libtirpc" | ||
| 29 | |||
| 30 | OPENGL_PKGCONFIGS = "glx glamor dri3" | ||
| 31 | PACKAGECONFIG ??= "${XORG_CRYPTO} ${XWAYLAND_EI} \ | ||
| 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '${OPENGL_PKGCONFIGS}', '', d)} \ | ||
| 33 | " | ||
| 34 | PACKAGECONFIG[dri3] = "-Ddri3=true,-Ddri3=false,libxshmfence" | ||
| 35 | PACKAGECONFIG[libdecor] = "-Dlibdecor=true,-Dlibdecor=false,libdecor" | ||
| 36 | PACKAGECONFIG[glx] = "-Dglx=true,-Dglx=false,virtual/libgl virtual/libx11" | ||
| 37 | PACKAGECONFIG[glamor] = "-Dglamor=true,-Dglamor=false,libepoxy virtual/libgbm,libegl" | ||
| 38 | PACKAGECONFIG[unwind] = "-Dlibunwind=true,-Dlibunwind=false,libunwind" | ||
| 39 | PACKAGECONFIG[xinerama] = "-Dxinerama=true,-Dxinerama=false" | ||
| 40 | |||
| 41 | # Xorg requires a SHA1 implementation, pick one | ||
| 42 | XORG_CRYPTO ??= "openssl" | ||
| 43 | PACKAGECONFIG[openssl] = "-Dsha1=libcrypto,,openssl" | ||
| 44 | PACKAGECONFIG[nettle] = "-Dsha1=libnettle,,nettle" | ||
| 45 | PACKAGECONFIG[gcrypt] = "-Dsha1=libgcrypt,,libgcrypt" | ||
| 46 | XWAYLAND_EI ??= "xwayland_ei_false" | ||
| 47 | PACKAGECONFIG[xwayland_ei_false] = "-Dxwayland_ei=false" | ||
| 48 | PACKAGECONFIG[xwayland_ei_portal] = "-Dxwayland_ei=portal,,libei" | ||
| 49 | PACKAGECONFIG[xwayland_ei_socket] = "-Dxwayland_ei=socket,,libei" | ||
| 50 | |||
| 51 | do_install:append() { | ||
| 52 | # remove files not needed and clashing with xserver-xorg | ||
| 53 | rm -rf ${D}/${libdir}/xorg/ | ||
| 54 | } | ||
| 55 | |||
| 56 | FILES:${PN} += "${libdir}/xorg/protocol.txt" | ||
| 57 | |||
| 58 | RDEPENDS:${PN} += "xkbcomp" | ||
| 59 | |||
| 60 | CVE_STATUS_GROUPS = "CVE_STATUS_REDHAT" | ||
| 61 | CVE_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" | ||
| 62 | CVE_STATUS_REDHAT[status] = "fixed-version: these are tracked as versionless redhat CVEs in NVD DB, fixed in 24.1.6" | ||
