diff options
| author | Parth Gajjar <parth.gajjar@amd.com> | 2023-01-17 04:42:09 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
| commit | 1305f1d642813293f92457cdde0d5db89b6b435e (patch) | |
| tree | c9c77111a4eb79986672e80396b8015e02024585 | |
| parent | abeb7dcfc6f87f898bf8f31902ad9adf01913a2a (diff) | |
| download | meta-xilinx-1305f1d642813293f92457cdde0d5db89b6b435e.tar.gz | |
weston: Disabling GL_EXT_unpack_subimage
Disabling GL_EXT_unpack_subimage as it is not supported by GLES2.0
Signed-off-by: Parth Gajjar <parth.gajjar@amd.com>
Reworked recipe SRC_URI to only apply to libmali case
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/wayland/files/0001-libweston-GL_EXT_unpack_subimage-not-supported-for-G.patch | 33 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend | 6 |
2 files changed, 38 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-graphics/wayland/files/0001-libweston-GL_EXT_unpack_subimage-not-supported-for-G.patch b/meta-xilinx-core/recipes-graphics/wayland/files/0001-libweston-GL_EXT_unpack_subimage-not-supported-for-G.patch new file mode 100644 index 00000000..e2e7dd95 --- /dev/null +++ b/meta-xilinx-core/recipes-graphics/wayland/files/0001-libweston-GL_EXT_unpack_subimage-not-supported-for-G.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 354bbf9657385519dceeff6a890a71f9d53e6a8f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Parth Gajjar <parth.gajjar@amd.com> | ||
| 3 | Date: Tue, 17 Jan 2023 02:04:32 -0800 | ||
| 4 | Subject: [PATCH] libweston: GL_EXT_unpack_subimage not supported for GLES2.0 | ||
| 5 | |||
| 6 | Removing GL_EXT_unpack_subimage as not supported by GLES2.0 | ||
| 7 | |||
| 8 | Signed-off-by: Parth Gajjar <parth.gajjar@amd.com> | ||
| 9 | --- | ||
| 10 | libweston/renderer-gl/gl-renderer.c | 2 ++ | ||
| 11 | 1 file changed, 2 insertions(+) | ||
| 12 | |||
| 13 | diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c | ||
| 14 | index 613ddf4..046a26f 100644 | ||
| 15 | --- a/libweston/renderer-gl/gl-renderer.c | ||
| 16 | +++ b/libweston/renderer-gl/gl-renderer.c | ||
| 17 | @@ -3941,11 +3941,13 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) | ||
| 18 | else | ||
| 19 | ec->read_format = PIXMAN_a8b8g8r8; | ||
| 20 | |||
| 21 | +#if 0 | ||
| 22 | if (gr->gl_version < gr_gl_version(3, 0) && | ||
| 23 | !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { | ||
| 24 | weston_log("GL_EXT_unpack_subimage not available.\n"); | ||
| 25 | return -1; | ||
| 26 | } | ||
| 27 | +#endif | ||
| 28 | |||
| 29 | if (gr->gl_version >= gr_gl_version(3, 0) || | ||
| 30 | weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) | ||
| 31 | -- | ||
| 32 | 2.34.1 | ||
| 33 | |||
diff --git a/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend index 33bed127..bb6413a8 100644 --- a/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend +++ b/meta-xilinx-core/recipes-graphics/wayland/weston_%.bbappend | |||
| @@ -10,7 +10,11 @@ PACKAGE_ARCH = "${DEFAULT_PACKAGE_ARCH}" | |||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | # mali400 specific items | 12 | # mali400 specific items |
| 13 | MALI_SRC_URI = "${@bb.utils.contains('DISTRO_FEATURES', 'libmali', 'file://0002-libmali-does-not-support-gles3.patch', '', d)}" | 13 | LIBMALI_SRC_URI = " \ |
| 14 | file://0001-libweston-GL_EXT_unpack_subimage-not-supported-for-G.patch \ | ||
| 15 | file://0002-libmali-does-not-support-gles3.patch \ | ||
| 16 | " | ||
| 17 | MALI_SRC_URI = "${@bb.utils.contains('DISTRO_FEATURES', 'libmali', '${LIBMALI_SRC_URI}', '', d)}" | ||
| 14 | SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'mali400', ' ${MALI_SRC_URI}', '', d)}" | 18 | SRC_URI:append = "${@bb.utils.contains('MACHINE_FEATURES', 'mali400', ' ${MALI_SRC_URI}', '', d)}" |
| 15 | 19 | ||
| 16 | # Skip dmabuf-feedback, as it requires gbm >= 21.1.1, mali-xlnx only provides 17.3 | 20 | # Skip dmabuf-feedback, as it requires gbm >= 21.1.1, mali-xlnx only provides 17.3 |
