Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/egl-wayland/, gui-libs/egl-wayland/files/
Date: Thu, 01 Sep 2022 06:47:28
Message-Id: 1662014817.ac6473a8db862b387072ebc9bb12447e12daffcb.ionen@gentoo
1 commit: ac6473a8db862b387072ebc9bb12447e12daffcb
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 06:07:29 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 06:46:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac6473a8
7
8 gui-libs/egl-wayland: drop 1.1.10-r1
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 gui-libs/egl-wayland/Manifest | 1 -
13 gui-libs/egl-wayland/egl-wayland-1.1.10-r1.ebuild | 44 ----------
14 .../egl-wayland-1.1.10-revert-defer-resizes.patch | 96 ----------------------
15 3 files changed, 141 deletions(-)
16
17 diff --git a/gui-libs/egl-wayland/Manifest b/gui-libs/egl-wayland/Manifest
18 index ce969c6ed6b9..93cb058a71af 100644
19 --- a/gui-libs/egl-wayland/Manifest
20 +++ b/gui-libs/egl-wayland/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST egl-wayland-1.1.10.tar.gz 60058 BLAKE2B c24cc0d6e45e43868140d4e16ad5092a951bebb71fa0d65e11ef8d4273d85589a435e6d29b73b665630b5a7e28fdbd8e1e02e5eb43eed7d06862caabae7146e9 SHA512 163ee1ae1e629c5d32ffdf335b35ba309d35c009f93a8391e78dcb710a86f64e017a37c1e77325c6f4782c8a5fe048ae44ad1456bd3a20ea651b4192c9102e3c
23 DIST egl-wayland-1.1.10_p20220805.tar.gz 60283 BLAKE2B 14c272e4cc084892cc9eb822b85168e420c7cfd5472c9f24fd9aa6cc6a5aef2c75411c8c06e148c48e45c6ee4aa3179784b9e432905f41753840bf1ef576e634 SHA512 ce7aa6cc738dc392dfa9a6cf2c24253968404e011b4e921c6e3bf723fd4bc0eae63ef2050bef025a0726601e5ce2a08987293fd1674fb6c6b6c207969fd15bcb
24 DIST egl-wayland-1.1.7.tar.gz 48681 BLAKE2B eebbd0e36045c50b39ef70292156f5cd137a51af2169b56a35d318d90ade3d4a5b94206d86246d52fda0c6c093ff25e389b1a3ccbe60595dc9661d199e30f33b SHA512 edc81d9f2c617587044d5f9d35b3e355db8544e8fa1d861c1b92a5a11bc1af7d994ca8abd49ce6f462a1971f20296b4c757bdf1df0d2bfc981cdafaa839f12af
25 DIST egl-wayland-1.1.9_p20211123.tar.gz 58900 BLAKE2B a5a08df06e302b573f1036264495e7b29ec4d3def9be0e9b8037206a42aab5c18d78b79cc3f3ffeede9708916e644f8090fadf34318429cf0040c3623da28ce1 SHA512 8de18c8c0c38ca672688a5197be20534cc90b0fecae9ea2f3d3bc851d5b50d3f148a4ce97b835a9576251c8273ea21f82f2c9694cf2b7bba28fa3b53850c43b2
26
27 diff --git a/gui-libs/egl-wayland/egl-wayland-1.1.10-r1.ebuild b/gui-libs/egl-wayland/egl-wayland-1.1.10-r1.ebuild
28 deleted file mode 100644
29 index d3d107c293bf..000000000000
30 --- a/gui-libs/egl-wayland/egl-wayland-1.1.10-r1.ebuild
31 +++ /dev/null
32 @@ -1,44 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -inherit meson
39 -
40 -DESCRIPTION="EGLStream-based Wayland external platform"
41 -HOMEPAGE="https://github.com/NVIDIA/egl-wayland"
42 -SRC_URI="https://github.com/NVIDIA/egl-wayland/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
43 -
44 -LICENSE="MIT"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~arm64"
47 -
48 -RDEPEND="
49 - dev-libs/wayland
50 - !<x11-drivers/nvidia-drivers-470.57.02[wayland(-)]"
51 -DEPEND="
52 - ${RDEPEND}
53 - dev-libs/wayland-protocols
54 - gui-libs/eglexternalplatform
55 - >=media-libs/libglvnd-1.3.4
56 - x11-libs/libdrm"
57 -BDEPEND="dev-util/wayland-scanner"
58 -
59 -PATCHES=(
60 - "${FILESDIR}"/${PN}-1.1.6-remove-werror.patch
61 - "${FILESDIR}"/${P}-revert-defer-resizes.patch
62 -)
63 -
64 -src_install() {
65 - meson_src_install
66 -
67 - insinto /usr/share/egl/egl_external_platform.d
68 - doins "${FILESDIR}"/10_nvidia_wayland.json
69 -}
70 -
71 -pkg_postinst() {
72 - if has_version "<x11-drivers/nvidia-drivers-391"; then
73 - ewarn "<=nvidia-drivers-390.xx may not work properly with this version of"
74 - ewarn "egl-wayland, it is recommended to use nouveau drivers for wayland."
75 - fi
76 -}
77
78 diff --git a/gui-libs/egl-wayland/files/egl-wayland-1.1.10-revert-defer-resizes.patch b/gui-libs/egl-wayland/files/egl-wayland-1.1.10-revert-defer-resizes.patch
79 deleted file mode 100644
80 index bb54ad8d1a0c..000000000000
81 --- a/gui-libs/egl-wayland/files/egl-wayland-1.1.10-revert-defer-resizes.patch
82 +++ /dev/null
83 @@ -1,96 +0,0 @@
84 -1.1.10 is needed for >=515.57 for working vulkan on wayland but
85 -carries a major regression that can make applications half-displayed
86 -and unusable after a resize.
87 -
88 -Official drivers seem to do something similar, they ship a modified
89 -1.1.9 with vulkan fixes rather than 1.1.10.
90 -
91 -https://github.com/NVIDIA/egl-wayland/issues/57
92 -Revert of https://github.com/NVIDIA/egl-wayland/commit/ddaa272
93 ---- a/src/wayland-eglsurface.c
94 -+++ b/src/wayland-eglsurface.c
95 -@@ -1612,17 +1612,30 @@
96 - }
97 -
98 --void
99 --wlEglResizeSurfaceIfRequired(WlEglDisplay *display, WlEglPlatformData *pData, WlEglSurface *surface)
100 -+static void
101 -+resize_callback(struct wl_egl_window *window, void *data)
102 - {
103 -+ WlEglDisplay *display = NULL;
104 -+ WlEglPlatformData *pData = NULL;
105 -+ WlEglSurface *surface = (WlEglSurface *)data;
106 - EGLint err = EGL_SUCCESS;
107 -
108 -- if (!surface) {
109 -+ if (!window || !surface) {
110 -+ return;
111 -+ }
112 -+
113 -+ display = surface->wlEglDpy;
114 -+ if (!wlEglIsWaylandDisplay(display->nativeDpy) ||
115 -+ !wlEglIsWaylandWindowValid(surface->wlEglWin)) {
116 - return;
117 - }
118 -+ pData = display->data;
119 -
120 - pthread_mutex_lock(&surface->mutexLock);
121 -
122 - /* Resize stream only if window geometry has changed */
123 -- if (surface->isResized) {
124 -+ if ((surface->width != window->width) ||
125 -+ (surface->height != window->height) ||
126 -+ (surface->dx != window->dx) ||
127 -+ (surface->dy != window->dy)) {
128 - // If a damage thread is in use, wait for it to finish processing all
129 - // pending frames
130 -@@ -1630,5 +1643,4 @@
131 -
132 - discard_surface_context(surface);
133 -- surface->isResized = EGL_FALSE;
134 - surface->ctx.wlStreamResource = NULL;
135 - surface->ctx.isAttached = EGL_FALSE;
136 -@@ -1655,34 +1667,4 @@
137 - pthread_mutex_unlock(&surface->mutexLock);
138 - }
139 --
140 --static void
141 --resize_callback(struct wl_egl_window *window, void *data)
142 --{
143 -- WlEglDisplay *display = NULL;
144 -- WlEglSurface *surface = (WlEglSurface *)data;
145 --
146 -- if (!window || !surface) {
147 -- return;
148 -- }
149 --
150 -- display = surface->wlEglDpy;
151 -- if (!wlEglIsWaylandDisplay(display->nativeDpy) ||
152 -- !wlEglIsWaylandWindowValid(surface->wlEglWin)) {
153 -- return;
154 -- }
155 --
156 -- pthread_mutex_lock(&surface->mutexLock);
157 --
158 -- /* Resize stream only if window geometry has changed */
159 -- if ((surface->width != window->width) ||
160 -- (surface->height != window->height) ||
161 -- (surface->dx != window->dx) ||
162 -- (surface->dy != window->dy)) {
163 -- surface->isResized = EGL_TRUE;
164 -- wl_surface_commit(surface->wlSurface);
165 -- }
166 --
167 -- pthread_mutex_unlock(&surface->mutexLock);
168 --}
169 -
170 - static EGLBoolean validateSurfaceAttrib(EGLAttrib attrib, EGLAttrib value)
171 ---- a/src/wayland-eglswap.c
172 -+++ b/src/wayland-eglswap.c
173 -@@ -65,6 +65,4 @@
174 - surface = eglSurface;
175 -
176 -- wlEglResizeSurfaceIfRequired(display, data, surface);
177 --
178 - if (surface->pendingSwapIntervalUpdate == EGL_TRUE) {
179 - /* Send request from client to override swapinterval value based on