weston: update to version 13
PATCH 1/2 weston: update to version 13
From: Denys Dmytriyenko <[email protected]>
Update bbappend from 12.0.2 to 13.0.0 and rework the local patch to apply cleanly.
Signed-off-by Denys Dmytriyenko <[email protected]>
---
...equire-GL_EXT_unpack_subimage-commit.patch | 77 +++++++++----------
...12.0.2.bbappend => weston_13.0.0.bbappend} | 0
2 files changed, 38 insertions(+), 39 deletions(-)
rename meta-arago-distro/recipes-graphics/wayland/{weston_12.0.2.bbappend => weston_13.0.0.bbappend} (100%)meta-arago-distro/recipes-graphics/wayland/weston/0001-Revert-require-GL_EXT_unpack_subimage-commit.patch +38 -39
@@ -1,4 +1,4 @@ -From 14513f40b8776b2c75d28368cbeb6393fe89fef1 Mon Sep 17 00:00:00 2001 +From 5a05e5b66dd3831a9c9c2b3f64bd42419d9ade2d Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko <[email protected]> Date: Thu, 6 Jul 2023 01:48:41 +0000 Subject: [PATCH] Revert require GL_EXT_unpack_subimage commit
@@ -13,40 +13,41 @@ Upstream-Status: Inappropriate [specific to TI SGX] Signed-off-by: Andrew Davis <[email protected]> Signed-off-by: Denys Dmytriyenko <[email protected]> + --- libweston/renderer-gl/gl-renderer-internal.h | 2 ++ libweston/renderer-gl/gl-renderer.c | 29 ++++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/libweston/renderer-gl/gl-renderer-internal.h b/libweston/renderer-gl/gl-renderer-internal.h -index 888df84..cabf1ed 100644 +index 5032035..85616c9 100644 --- a/libweston/renderer-gl/gl-renderer-internal.h +++ b/libweston/renderer-gl/gl-renderer-internal.h -@@ -153,6 +153,8 @@ struct gl_renderer { - PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; - bool has_platform_base; - +@@ -160,6 +160,8 @@ struct gl_renderer { + PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC create_platform_window; + bool has_platform_base; + + bool has_unpack_subimage; + - PFNEGLBINDWAYLANDDISPLAYWL bind_display; - PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; - PFNEGLQUERYWAYLANDBUFFERWL query_buffer; + PFNEGLBINDWAYLANDDISPLAYWL bind_display; + PFNEGLUNBINDWAYLANDDISPLAYWL unbind_display; + PFNEGLQUERYWAYLANDBUFFERWL query_buffer; diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c -index 4a6da14..3cddf6e 100644 +index ccb41e6..38a0e0c 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c -@@ -1970,6 +1970,7 @@ gl_renderer_flush_damage(struct weston_surface *surface, +@@ -2106,6 +2106,7 @@ gl_renderer_flush_damage(struct weston_surface *surface, { - const struct weston_testsuite_quirks *quirks = - &surface->compositor->test_data.test_quirks; + const struct weston_testsuite_quirks *quirks = + &surface->compositor->test_data.test_quirks; + struct gl_renderer *gr = get_renderer(surface->compositor); - struct gl_surface_state *gs = get_surface_state(surface); - struct gl_buffer_state *gb = gs->buffer; - struct weston_view *view; -@@ -2012,6 +2013,24 @@ gl_renderer_flush_damage(struct weston_surface *surface, - - glActiveTexture(GL_TEXTURE0); - + struct gl_surface_state *gs = get_surface_state(surface); + struct gl_buffer_state *gb = gs->buffer; + struct weston_paint_node *pnode; +@@ -2152,6 +2153,24 @@ gl_renderer_flush_damage(struct weston_surface *surface, + + glActiveTexture(GL_TEXTURE0); + + if (!gr->has_unpack_subimage) { + wl_shm_buffer_begin_access(buffer->shm_buffer); + for (j = 0; j < gs->buffer->num_textures; j++) {
@@ -65,13 +66,13 @@ index 4a6da14..3cddf6e 100644 + goto done; + } + - if (gb->needs_full_upload || quirks->gl_force_full_upload) { - glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); - glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); -@@ -4103,11 +4122,9 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - else - ec->read_format = pixel_format_get_info_by_pixman(PIXMAN_a8b8g8r8); - + if (gb->needs_full_upload || quirks->gl_force_full_upload) { + glPixelStorei(GL_UNPACK_SKIP_PIXELS_EXT, 0); + glPixelStorei(GL_UNPACK_SKIP_ROWS_EXT, 0); +@@ -4169,11 +4188,9 @@ gl_renderer_setup(struct weston_compositor *ec) + else + ec->read_format = pixel_format_get_info(DRM_FORMAT_ABGR8888); + - if (gr->gl_version < gr_gl_version(3, 0) && - !weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) { - weston_log("GL_EXT_unpack_subimage not available.\n");
@@ -80,17 +81,15 @@ index 4a6da14..3cddf6e 100644 + if (gr->gl_version >= gr_gl_version(3, 0) || + weston_check_egl_extension(extensions, "GL_EXT_unpack_subimage")) + gr->has_unpack_subimage = true; - - if (gr->gl_version >= gr_gl_version(3, 0) || - weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) -@@ -4194,6 +4211,8 @@ gl_renderer_setup(struct weston_compositor *ec, EGLSurface egl_surface) - gr_gl_version_minor(gr->gl_version)); - weston_log_continue(STAMP_SPACE "read-back format: %s\n", - ec->read_format->drm_format_name); + + if (gr->gl_version >= gr_gl_version(3, 0) || + weston_check_egl_extension(extensions, "GL_EXT_texture_type_2_10_10_10_REV")) +@@ -4268,6 +4285,8 @@ gl_renderer_setup(struct weston_compositor *ec) + gr_gl_version_minor(gr->gl_version)); + weston_log_continue(STAMP_SPACE "read-back format: %s\n", + ec->read_format->drm_format_name); + weston_log_continue(STAMP_SPACE "wl_shm sub-image to texture: %s\n", + gr->has_unpack_subimage ? "yes" : "no"); - weston_log_continue(STAMP_SPACE "glReadPixels supports y-flip: %s\n", - yesno(gr->has_pack_reverse)); - weston_log_continue(STAMP_SPACE "wl_shm 10 bpc formats: %s\n", --- -2.25.1 + weston_log_continue(STAMP_SPACE "glReadPixels supports y-flip: %s\n", + yesno(gr->has_pack_reverse)); + weston_log_continue(STAMP_SPACE "wl_shm 10 bpc formats: %s\n",
meta-arago-distro/recipes-graphics/wayland/weston_13.0.0.bbappend renamed from meta-arago-distro/recipes-graphics/wayland/weston_12.0.2.bbappend +0 -0
Signature · 1 line
2.25.1
PATCH 2/2 libnl: update for 3.9.0
From: Denys Dmytriyenko <[email protected]>
Update bbappend for 3.9.0 release. The location of the private headers has changed slightly, adjust accordingly.
Signed-off-by Denys Dmytriyenko <[email protected]>
---
.../libnl/{libnl_3.7.0.bbappend => libnl_3.9.0.bbappend} | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
rename meta-arago-distro/recipes-support/libnl/{libnl_3.7.0.bbappend => libnl_3.9.0.bbappend} (22%)meta-arago-distro/recipes-support/libnl/libnl_3.9.0.bbappend renamed from meta-arago-distro/recipes-support/libnl/libnl_3.7.0.bbappend +4 -3
@@ -2,7 +2,8 @@ PR:append = ".arago0" do_install:append() { # Install private files to allow libnl extensions - install -d ${D}${includedir}/netlink-private - cp -r ${S}/include/netlink-private/cache-api.h ${D}${includedir}/netlink-private/ - cp -r ${S}/include/netlink-private/object-api.h ${D}${includedir}/netlink-private/ + install -d ${D}${includedir}/nl-priv-dynamic-core + cp -r ${S}/include/nl-priv-dynamic-core/cache-api.h ${D}${includedir}/nl-priv-dynamic-core/ + cp -r ${S}/include/nl-priv-dynamic-core/object-api.h ${D}${includedir}/nl-priv-dynamic-core/ + cp -r ${S}/include/nl-priv-dynamic-core/nl-core.h ${D}${includedir}/nl-priv-dynamic-core/ }
Signature · 1 line
2.25.1