diff options
-rw-r--r-- | meta-agl-core/recipes-graphics/wayland/weston/0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch | 29 | ||||
-rw-r--r-- | meta-agl-core/recipes-graphics/wayland/weston/0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch | 58 | ||||
-rw-r--r-- | meta-agl-core/recipes-graphics/wayland/weston_14.%.bbappend (renamed from meta-agl-core/recipes-graphics/wayland/weston_13.0.%.bbappend) | 2 | ||||
-rw-r--r-- | meta-agl-core/recipes-graphics/wayland/weston_14_aglcore.inc (renamed from meta-agl-core/recipes-graphics/wayland/weston_13.0_aglcore.inc) | 2 |
4 files changed, 1 insertions, 90 deletions
diff --git a/meta-agl-core/recipes-graphics/wayland/weston/0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch b/meta-agl-core/recipes-graphics/wayland/weston/0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch deleted file mode 100644 index 9abf2e6a2..000000000 --- a/meta-agl-core/recipes-graphics/wayland/weston/0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch +++ /dev/null @@ -1,29 +0,0 @@ -From fb60f9c16ce8865fbdcd181419f44b72af1aa3c2 Mon Sep 17 00:00:00 2001 -From: Ray Smith <rsmith@brightsign.biz> -Date: Tue, 19 Dec 2023 11:43:55 +0000 -Subject: [PATCH 1/2] backend-drm: don't leak gem_handle_refcnt in drm_destroy - -Signed-off-by: Ray Smith <rsmith@brightsign.biz> -Upstream-Status: Backport [https://gitlab.freedesktop.org/wayland/weston/-/commit/80f096d9] - ---- - libweston/backend-drm/drm.c | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c -index 8092789..fcececb 100644 ---- a/libweston/backend-drm/drm.c -+++ b/libweston/backend-drm/drm.c -@@ -3364,6 +3364,9 @@ drm_destroy(struct weston_backend *backend) - weston_launcher_close(ec->launcher, device->drm.fd); - weston_launcher_destroy(ec->launcher); - -+ if (device->gem_handle_refcnt) -+ hash_table_destroy(device->gem_handle_refcnt); -+ - free(device->drm.filename); - free(device); - free(b); --- -2.43.0 - diff --git a/meta-agl-core/recipes-graphics/wayland/weston/0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch b/meta-agl-core/recipes-graphics/wayland/weston/0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch deleted file mode 100644 index 77271f3a3..000000000 --- a/meta-agl-core/recipes-graphics/wayland/weston/0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 10fcfd66069c774e28f67b18afd329e4bcf9f5b3 Mon Sep 17 00:00:00 2001 -From: Ray Smith <rsmith@brightsign.biz> -Date: Tue, 19 Dec 2023 11:45:45 +0000 -Subject: [PATCH 2/2] backend-drm: always create gem_handle_refcnt hash table - -Devices created via drm_device_create have this hash table, but those -created via drm_backend_create don't. - -Signed-off-by: Ray Smith <rsmith@brightsign.biz> -Upstream-Status: Backport [https://gitlab.freedesktop.org/wayland/weston/-/commit/e7960048] - ---- - libweston/backend-drm/drm.c | 12 +++++++++--- - 1 file changed, 9 insertions(+), 3 deletions(-) - -diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c -index fcececb..9d6a9cf 100644 ---- a/libweston/backend-drm/drm.c -+++ b/libweston/backend-drm/drm.c -@@ -3364,8 +3364,7 @@ drm_destroy(struct weston_backend *backend) - weston_launcher_close(ec->launcher, device->drm.fd); - weston_launcher_destroy(ec->launcher); - -- if (device->gem_handle_refcnt) -- hash_table_destroy(device->gem_handle_refcnt); -+ hash_table_destroy(device->gem_handle_refcnt); - - free(device->drm.filename); - free(device); -@@ -3867,10 +3866,13 @@ drm_backend_create(struct weston_compositor *compositor, - - device = zalloc(sizeof *device); - if (device == NULL) -- return NULL; -+ goto err_backend; - device->state_invalid = true; - device->drm.fd = -1; - device->backend = b; -+ device->gem_handle_refcnt = hash_table_create(); -+ if (!device->gem_handle_refcnt) -+ goto err_device; - - b->drm = device; - wl_list_init(&b->kms_list); -@@ -4108,6 +4110,10 @@ err_compositor: - if (b->gbm) - gbm_device_destroy(b->gbm); - #endif -+ hash_table_destroy(device->gem_handle_refcnt); -+err_device: -+ free(device); -+err_backend: - free(b); - return NULL; - } --- -2.43.0 - diff --git a/meta-agl-core/recipes-graphics/wayland/weston_13.0.%.bbappend b/meta-agl-core/recipes-graphics/wayland/weston_14.%.bbappend index 87cad12a0..5ebff000f 100644 --- a/meta-agl-core/recipes-graphics/wayland/weston_13.0.%.bbappend +++ b/meta-agl-core/recipes-graphics/wayland/weston_14.%.bbappend @@ -1 +1 @@ -require ${@bb.utils.contains('AGL_FEATURES', 'aglcore', 'weston_13.0_aglcore.inc', '', d)} +require ${@bb.utils.contains('AGL_FEATURES', 'aglcore', 'weston_14_aglcore.inc', '', d)} diff --git a/meta-agl-core/recipes-graphics/wayland/weston_13.0_aglcore.inc b/meta-agl-core/recipes-graphics/wayland/weston_14_aglcore.inc index 0b5dae715..14387898e 100644 --- a/meta-agl-core/recipes-graphics/wayland/weston_13.0_aglcore.inc +++ b/meta-agl-core/recipes-graphics/wayland/weston_14_aglcore.inc @@ -4,8 +4,6 @@ PACKAGECONFIG:append = "${@bb.utils.contains('DISTRO_FEATURES', 'weston-remoting SRC_URI:append = " \ file://0001-clients-Handle-missing-pointer_surface-is-there-s-no.patch \ - file://0001-backend-drm-don-t-leak-gem_handle_refcnt-in-drm_dest.patch \ - file://0002-backend-drm-always-create-gem_handle_refcnt-hash-tab.patch \ " |