diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2024-08-08 08:26:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 08:26:09 -0300 |
commit | 925516b8e6b87a8602b4784b2d4679de7489bcce (patch) | |
tree | 174e522e9bd4822ce03ec74c6f392c2ac052097d | |
parent | dd91b8bb8b45b593deb795a94e5c6014b3a9d6d5 (diff) | |
parent | 6338d5bda5b55ae8e2df2a6f30b45b02ebf5f153 (diff) | |
download | meta-freescale-925516b8e6b87a8602b4784b2d4679de7489bcce.tar.gz |
Merge pull request #1875 from nxp-upstream/scarthgap
Upgrade graphics to LF 6.6.23-2.0.0
15 files changed, 163 insertions, 41 deletions
diff --git a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.12.bb b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.14.bb index b10cd997a..23168ae16 100644 --- a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.12.bb +++ b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.1.14.bb | |||
@@ -4,7 +4,7 @@ | |||
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=44a8052c384584ba09077e85a3d1654f" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c0fda810c63b052409b15a5445671a" |
8 | 8 | ||
9 | DEPENDS = "libdrm ${LIBGAL_IMX}" | 9 | DEPENDS = "libdrm ${LIBGAL_IMX}" |
10 | LIBGAL_IMX = "libgal-imx" | 10 | LIBGAL_IMX = "libgal-imx" |
@@ -15,15 +15,15 @@ PROVIDES += "virtual/libg2d" | |||
15 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;fsl-eula=true;name=${IMX_SRC_URI_NAME}" | 15 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;fsl-eula=true;name=${IMX_SRC_URI_NAME}" |
16 | IMX_BIN_NAME = "${BPN}-${IMX_SRC_URI_NAME}-${PV}-${IMX_SRCREV_ABBREV}" | 16 | IMX_BIN_NAME = "${BPN}-${IMX_SRC_URI_NAME}-${PV}-${IMX_SRCREV_ABBREV}" |
17 | 17 | ||
18 | IMX_SRCREV_ABBREV = "ee47ef7" | 18 | IMX_SRCREV_ABBREV = "6a00326" |
19 | IMX_SRC_URI_NAME = "v1" | 19 | IMX_SRC_URI_NAME = "v1" |
20 | SRC_URI[v1.md5sum] = "4150f09e27178101fdccb792b7cbc526" | 20 | SRC_URI[v1.md5sum] = "470ad0bdef7dec171395991d47b39e2c" |
21 | SRC_URI[v1.sha256sum] = "bd7849376564f7e2eb55210f156afae00b49451de6de80cfbc5fbda15be6a2b0" | 21 | SRC_URI[v1.sha256sum] = "4d8e4b536bd24eedfbce375a06c19ab74603291b8b5a5be36b03fbf6e016e940" |
22 | 22 | ||
23 | IMX_SRCREV_ABBREV:mx95-nxp-bsp = "ee47ef7" | 23 | IMX_SRCREV_ABBREV:mx95-nxp-bsp = "6a00326" |
24 | IMX_SRC_URI_NAME:mx95-nxp-bsp = "v2" | 24 | IMX_SRC_URI_NAME:mx95-nxp-bsp = "v2" |
25 | SRC_URI[v2.md5sum] = "031396e175c432eb6c84aad8e0a6fc7d" | 25 | SRC_URI[v2.md5sum] = "cf807c38a110763c19a12d6d595b4b09" |
26 | SRC_URI[v2.sha256sum] = "0646d8cc8e53f22fc15a61f0b78cd5f73460520f91949bc1d29c10ecbf77307b" | 26 | SRC_URI[v2.sha256sum] = "1b86d4fecd5026e871da0de8ed6382c962460468d8151ae2f95b72d00bca17ee" |
27 | 27 | ||
28 | S = "${WORKDIR}/${IMX_BIN_NAME}" | 28 | S = "${WORKDIR}/${IMX_BIN_NAME}" |
29 | 29 | ||
@@ -36,10 +36,14 @@ do_install () { | |||
36 | cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} | 36 | cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} |
37 | } | 37 | } |
38 | 38 | ||
39 | INSANE_SKIP:append:libc-musl = " file-rdeps" | ||
40 | RDEPENDS:${PN}:append:libc-musl = " gcompat" | ||
41 | |||
39 | # The packaged binaries have been stripped of debug info, so disable | 42 | # The packaged binaries have been stripped of debug info, so disable |
40 | # operations accordingly. | 43 | # operations accordingly. |
41 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 44 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
42 | INHIBIT_PACKAGE_STRIP = "1" | 45 | INHIBIT_PACKAGE_STRIP = "1" |
43 | INHIBIT_SYSROOT_STRIP = "1" | 46 | INHIBIT_SYSROOT_STRIP = "1" |
44 | 47 | ||
48 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
45 | COMPATIBLE_MACHINE = "(imxdpu)" | 49 | COMPATIBLE_MACHINE = "(imxdpu)" |
diff --git a/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb b/recipes-graphics/imx-g2d/imx-g2d-samples_git.bb index 55f88da39..0f0c18967 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 = "bec2f3839737b0e83b68b1c976373d9a78e5762f" | 13 | SRCREV = "431f311a41ca052902ea0d6445e74defe0a4df2d" |
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.p2.4.bb b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p2.6.bb index 3ebb8f884..d12d9c1a8 100644 --- a/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p2.4.bb +++ b/recipes-graphics/imx-g2d/imx-gpu-g2d_6.4.11.p2.6.bb | |||
@@ -5,17 +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=44a8052c384584ba09077e85a3d1654f" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c0fda810c63b052409b15a5445671a" |
9 | DEPENDS = "libgal-imx" | 9 | DEPENDS = "libgal-imx" |
10 | PROVIDES = "virtual/libg2d" | 10 | PROVIDES = "virtual/libg2d" |
11 | 11 | ||
12 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" | 12 | SRC_URI = "${FSL_MIRROR}/${IMX_BIN_NAME}.bin;name=${TARGET_ARCH};fsl-eula=true" |
13 | IMX_BIN_NAME = "${BP}-${TARGET_ARCH}-${IMX_SRCREV_ABBREV}" | 13 | IMX_BIN_NAME = "${BP}-${TARGET_ARCH}-${IMX_SRCREV_ABBREV}" |
14 | IMX_SRCREV_ABBREV = "b07999b" | 14 | IMX_SRCREV_ABBREV = "bc7b6a2" |
15 | SRC_URI[aarch64.md5sum] = "fa30ce75803697d5131d707b300258ee" | 15 | SRC_URI[aarch64.md5sum] = "4b12d0434d612b57ff4d7df690c3154f" |
16 | SRC_URI[aarch64.sha256sum] = "2dff0279ead132ec5fa61dbe9b2b1969135e8ce9fe7487957371327357d70ac7" | 16 | SRC_URI[aarch64.sha256sum] = "b2e4c580bf887042f479fde7c8b07c6215794d8123263d10ff0c167af7ba5918" |
17 | SRC_URI[arm.md5sum] = "c81be7c93b60c7d3f3eb5b7bfeda42a4" | 17 | SRC_URI[arm.md5sum] = "4bead15838f47793f59cb374c10c2dd2" |
18 | SRC_URI[arm.sha256sum] = "e17ac373193622ec0c9aa490ef1b93551d22a2e88ee9f1098ed984e62f02a06c" | 18 | SRC_URI[arm.sha256sum] = "413610ce4730eb9adbde30c8ad4a72df3edd69d84e1154a0c29efa7f33a30663" |
19 | 19 | ||
20 | S = "${WORKDIR}/${IMX_BIN_NAME}" | 20 | S = "${WORKDIR}/${IMX_BIN_NAME}" |
21 | 21 | ||
diff --git a/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb b/recipes-graphics/imx-g2d/imx-pxp-g2d_git.bb index 50c37a2c5..4481188b1 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=44a8052c384584ba09077e85a3d1654f" | 7 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=10c0fda810c63b052409b15a5445671a" |
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 = "9f9f41fa0e86757f856e1ec7824f56022fe94586" | 16 | SRCREV = "edd234c4e1c58cd2453963d19155d4d5d3800d07" |
17 | 17 | ||
18 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
19 | 19 | ||
@@ -25,4 +25,5 @@ do_install() { | |||
25 | oe_runmake install | 25 | oe_runmake install |
26 | } | 26 | } |
27 | 27 | ||
28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
28 | COMPATIBLE_MACHINE = "(mx93-nxp-bsp)" | 29 | COMPATIBLE_MACHINE = "(mx93-nxp-bsp)" |
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.4-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.4-aarch32.bb deleted file mode 100644 index 2b1724664..000000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.4-aarch32.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=44a8052c384584ba09077e85a3d1654f" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "b07999b" | ||
6 | |||
7 | SRC_URI[md5sum] = "eae60321ac971293d3213c88b9198ca0" | ||
8 | SRC_URI[sha256sum] = "ef9be89d3dd3b6448c720e061a8b81bdd26f7a5ff70de1786a5feef2e4836474" | ||
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.p2.4-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.4-aarch64.bb deleted file mode 100644 index b3c397362..000000000 --- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.4-aarch64.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=44a8052c384584ba09077e85a3d1654f" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "b07999b" | ||
6 | |||
7 | SRC_URI[md5sum] = "142d9b9ef6f440b8e307569873bdb6b5" | ||
8 | SRC_URI[sha256sum] = "ba86656c357c5d9793058695f320e4cf650d4693e84321870bad392f2a622807" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.6-aarch32.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.6-aarch32.bb new file mode 100644 index 000000000..db99b1c71 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.6-aarch32.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c0fda810c63b052409b15a5445671a" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "bc7b6a2" | ||
6 | |||
7 | SRC_URI[md5sum] = "d921b6daf89eba252b0b5b59abe0d690" | ||
8 | SRC_URI[sha256sum] = "cf6e42c9c9a903cd933b767d411131390d237a4b92ecad579db57d54538707f3" | ||
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.p2.6-aarch64.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.6-aarch64.bb new file mode 100644 index 000000000..fb73322ae --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.6-aarch64.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require imx-gpu-viv-6.inc | ||
2 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=10c0fda810c63b052409b15a5445671a" | ||
4 | |||
5 | IMX_SRCREV_ABBREV = "bc7b6a2" | ||
6 | |||
7 | SRC_URI[md5sum] = "e6ac75617944d9a9dbba90f863f07e0f" | ||
8 | SRC_URI[sha256sum] = "5fe828113b9b2801b3fd60cd15eadfd0ac747e5897ef7db7fa22f80e7dd8a8e1" | ||
9 | |||
10 | COMPATIBLE_MACHINE = "(mx8-nxp-bsp)" | ||
diff --git a/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch new file mode 100644 index 000000000..fa46823f1 --- /dev/null +++ b/recipes-graphics/mesa/mesa-demos/0001-egl-clear-backgrounds-black.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From cad7eb0f0487aea64c4460bd6ad95b5c9537d35a Mon Sep 17 00:00:00 2001 | ||
2 | From: Jiyu Yang <jiyu.yang@nxp.com> | ||
3 | Date: Thu, 11 Apr 2024 16:30:50 +0800 | ||
4 | Subject: [PATCH] egl: clear backgrounds black | ||
5 | |||
6 | if 50% translucency used, the application render result can vary | ||
7 | depending on the format chosen, such as R10G10B10A2 or RGB24. | ||
8 | |||
9 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/demos/-/merge_requests/174] | ||
10 | Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com> | ||
11 | --- | ||
12 | src/egl/opengles2/es2gears.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/egl/opengles2/es2gears.c b/src/egl/opengles2/es2gears.c | ||
16 | index db67f3a9..4e81afe7 100644 | ||
17 | --- a/src/egl/opengles2/es2gears.c | ||
18 | +++ b/src/egl/opengles2/es2gears.c | ||
19 | @@ -515,7 +515,7 @@ gears_draw(void) | ||
20 | GLfloat transform[16]; | ||
21 | identity(transform); | ||
22 | |||
23 | - glClearColor(0.0, 0.0, 0.0, 0.0); | ||
24 | + glClearColor(0.0, 0.0, 0.0, 1.0); | ||
25 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | ||
26 | |||
27 | /* Translate and rotate the view */ | ||
28 | -- | ||
29 | 2.34.1 | ||
30 | |||
diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend index ff5d71ae1..1c5dd3daf 100644 --- a/recipes-graphics/mesa/mesa-demos_%.bbappend +++ b/recipes-graphics/mesa/mesa-demos_%.bbappend | |||
@@ -2,7 +2,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | |||
2 | 2 | ||
3 | SRC_URI:append:imxgpu = " \ | 3 | SRC_URI:append:imxgpu = " \ |
4 | file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \ | 4 | file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \ |
5 | file://fix-clear-build-break.patch" | 5 | file://fix-clear-build-break.patch \ |
6 | file://0001-egl-clear-backgrounds-black.patch" | ||
6 | 7 | ||
7 | REQUIRED_DISTRO_FEATURES:remove:imxgpu = "x11" | 8 | REQUIRED_DISTRO_FEATURES:remove:imxgpu = "x11" |
8 | 9 | ||
diff --git a/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch b/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch new file mode 100644 index 000000000..3dc8db099 --- /dev/null +++ b/recipes-graphics/mesa/mesa/0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 612c3dc98d5d050b9cfee16ec77ca3c8358caa0d Mon Sep 17 00:00:00 2001 | ||
2 | From: Wujian Sun <wujian.sun_1@nxp.com> | ||
3 | Date: Mon, 29 Apr 2024 17:29:16 +0800 | ||
4 | Subject: [PATCH] MGS-7599 cso: fix virgl driver assert issue | ||
5 | |||
6 | A workaround that remove PIPE_MAX_SAMPLERS and | ||
7 | PIPE_MAX_CONSTANT_BUFFERS assert. | ||
8 | |||
9 | Upstream-Status: Inappropriate [i.MX-specific] | ||
10 | |||
11 | Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com> | ||
12 | --- | ||
13 | src/gallium/auxiliary/cso_cache/cso_context.c | 2 -- | ||
14 | src/gallium/drivers/virgl/virgl_screen.c | 2 +- | ||
15 | 2 files changed, 1 insertion(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c | ||
18 | index 3e86def31c5..ffc6d22da9c 100644 | ||
19 | --- a/src/gallium/auxiliary/cso_cache/cso_context.c | ||
20 | +++ b/src/gallium/auxiliary/cso_cache/cso_context.c | ||
21 | @@ -403,10 +403,8 @@ cso_unbind_context(struct cso_context *ctx) | ||
22 | PIPE_SHADER_CAP_MAX_CONST_BUFFERS); | ||
23 | int maximg = scr->get_shader_param(scr, sh, | ||
24 | PIPE_SHADER_CAP_MAX_SHADER_IMAGES); | ||
25 | - assert(maxsam <= PIPE_MAX_SAMPLERS); | ||
26 | assert(maxview <= PIPE_MAX_SHADER_SAMPLER_VIEWS); | ||
27 | assert(maxssbo <= PIPE_MAX_SHADER_BUFFERS); | ||
28 | - assert(maxcb <= PIPE_MAX_CONSTANT_BUFFERS); | ||
29 | assert(maximg <= PIPE_MAX_SHADER_IMAGES); | ||
30 | if (maxsam > 0) { | ||
31 | ctx->base.pipe->bind_sampler_states(ctx->base.pipe, sh, 0, maxsam, zeros); | ||
32 | diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c | ||
33 | index 389a1935cc3..7c7f8ba576b 100644 | ||
34 | --- a/src/gallium/drivers/virgl/virgl_screen.c | ||
35 | +++ b/src/gallium/drivers/virgl/virgl_screen.c | ||
36 | @@ -435,7 +435,7 @@ virgl_get_shader_param(struct pipe_screen *screen, | ||
37 | return 1; | ||
38 | case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: | ||
39 | return MIN2(vscreen->caps.caps.v2.max_shader_sampler_views, | ||
40 | - PIPE_MAX_SHADER_SAMPLER_VIEWS); | ||
41 | + PIPE_MAX_SAMPLERS); | ||
42 | case PIPE_SHADER_CAP_INTEGERS: | ||
43 | return vscreen->caps.caps.v1.glsl_level >= 130; | ||
44 | case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH: | ||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||
diff --git a/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch b/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch new file mode 100644 index 000000000..0cdcbfca6 --- /dev/null +++ b/recipes-graphics/mesa/mesa/0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 188d7b01037e5a0249e63c2600cf15a288a9ff3f Mon Sep 17 00:00:00 2001 | ||
2 | From: Wujian Sun <wujian.sun_1@nxp.com> | ||
3 | Date: Fri, 19 Apr 2024 18:38:17 +0800 | ||
4 | Subject: [PATCH] MGS-7673 egl/dri2: fix video showing wrong frame | ||
5 | |||
6 | Softpipe driver doesn't support EGL_EXT_image_dma_buf_import_modifiers | ||
7 | extension. | ||
8 | Should not report the extension. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com> | ||
13 | --- | ||
14 | src/egl/drivers/dri2/egl_dri2.c | 3 ++- | ||
15 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c | ||
18 | index 992f0e3d46d..6ee209d4b47 100644 | ||
19 | --- a/src/egl/drivers/dri2/egl_dri2.c | ||
20 | +++ b/src/egl/drivers/dri2/egl_dri2.c | ||
21 | @@ -942,7 +942,8 @@ dri2_setup_screen(_EGLDisplay *disp) | ||
22 | |||
23 | #ifdef HAVE_LIBDRM | ||
24 | if (dri2_dpy->image->base.version >= 8 && | ||
25 | - dri2_dpy->image->createImageFromDmaBufs) { | ||
26 | + dri2_dpy->image->createImageFromDmaBufs && | ||
27 | + strcmp("softpipe", pscreen->get_name(pscreen))) { | ||
28 | disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE; | ||
29 | disp->Extensions.EXT_image_dma_buf_import_modifiers = EGL_TRUE; | ||
30 | } | ||
31 | -- | ||
32 | 2.17.1 | ||
33 | |||
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index acddfbc66..f2375a55c 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend | |||
@@ -1,6 +1,9 @@ | |||
1 | PROVIDES:remove:imxgpu = "virtual/egl" | 1 | PROVIDES:remove:imxgpu = "virtual/egl" |
2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" |
3 | 3 | ||
4 | SRC_URI:append:mx93-nxp-bsp = " file://0001-MGS-7673-egl-dri2-fix-video-showing-wrong-frame.patch" | ||
5 | SRC_URI:append:imx-nxp-bsp = " file://0001-MGS-7599-cso-fix-virgl-driver-assert-issue.patch" | ||
6 | |||
4 | PACKAGECONFIG:remove:imxgpu = "egl gbm" | 7 | PACKAGECONFIG:remove:imxgpu = "egl gbm" |
5 | PACKAGECONFIG:remove:imxgpu3d = "gles" | 8 | PACKAGECONFIG:remove:imxgpu3d = "gles" |
6 | 9 | ||
diff --git a/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb b/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb index 6b2a70917..131f227de 100644 --- a/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb +++ b/recipes-graphics/wayland/wayland-protocols_1.32.imx.bb | |||
@@ -9,7 +9,9 @@ LICENSE = "MIT" | |||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c7b12b6702da38ca028ace54aae3d484 \ | 9 | LIC_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 | ||
12 | SRC_URI = "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https;branch=wayland-protocols-imx-${@oe.utils.trim_version("${PV}", 2)}" | 12 | SRC_URI = "${WAYLAND_PROTOCOLS_SRC};branch=${SRCBRANCH}" |
13 | WAYLAND_PROTOCOLS_SRC ?= "git://github.com/nxp-imx/wayland-protocols-imx.git;protocol=https" | ||
14 | SRCBRANCH = "wayland-protocols-imx-${@oe.utils.trim_version("${PV}", 2)}" | ||
13 | SRCREV = "7ece577d467f8afb2f5a2f7fff3761a1e0ee9dad" | 15 | SRCREV = "7ece577d467f8afb2f5a2f7fff3761a1e0ee9dad" |
14 | 16 | ||
15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
diff --git a/recipes-graphics/wayland/weston_12.0.3.imx.bb b/recipes-graphics/wayland/weston_12.0.4.imx.bb index 14b79f18c..db0bfc4e5 100644 --- a/recipes-graphics/wayland/weston_12.0.3.imx.bb +++ b/recipes-graphics/wayland/weston_12.0.4.imx.bb | |||
@@ -167,10 +167,11 @@ LIC_FILES_CHKSUM += "file://LICENSE;md5=d79ee9e66bb0f95d3386a7acae780b70" | |||
167 | DEFAULT_PREFERENCE = "-1" | 167 | DEFAULT_PREFERENCE = "-1" |
168 | 168 | ||
169 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" | 169 | SRC_URI:remove = "https://gitlab.freedesktop.org/wayland/weston/-/releases/${PV}/downloads/${BPN}-${PV}.tar.xz" |
170 | SRC_URI:prepend = "git://github.com/nxp-imx/weston-imx.git;protocol=https;branch=${SRCBRANCH} " | 170 | SRC_URI:prepend = "${WESTON_SRC};branch=${SRCBRANCH} " |
171 | WESTON_SRC ?= "git://github.com/nxp-imx/weston-imx.git;protocol=https" | ||
171 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" | 172 | SRC_URI += "file://0001-Revert-protocol-no-found-wayland-scanner-with-Yocto-.patch" |
172 | SRCBRANCH = "weston-imx-12.0.3" | 173 | SRCBRANCH = "weston-imx-12.0.4" |
173 | SRCREV = "b0d890915ee191ceb10e79ea9a830281f5c6258f" | 174 | SRCREV = "461c49d20677cfd36d01a95dafbd9eedf2a4b09c" |
174 | S = "${WORKDIR}/git" | 175 | S = "${WORKDIR}/git" |
175 | 176 | ||
176 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" | 177 | PACKAGECONFIG_IMX_REMOVALS ?= "wayland x11" |