Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-server/files/
Date: Thu, 10 May 2018 21:20:38
Message-Id: 1525987193.fab433ae10a67af7b2932c256eea0fd1bdfbdae1.mattst88@gentoo
1 commit: fab433ae10a67af7b2932c256eea0fd1bdfbdae1
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 10 21:19:50 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu May 10 21:19:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fab433ae
7
8 x11-base/xorg-server: Drop old patches
9
10 ...-Move-GBM-code-inside-ifdef-GLAMOR_HAS_GB.patch | 48 ------
11 ....99.904-xwayland-Fix-build-without-glamor.patch | 175 ---------------------
12 2 files changed, 223 deletions(-)
13
14 diff --git a/x11-base/xorg-server/files/xorg-server-1.19.99.904-modesetting-Move-GBM-code-inside-ifdef-GLAMOR_HAS_GB.patch b/x11-base/xorg-server/files/xorg-server-1.19.99.904-modesetting-Move-GBM-code-inside-ifdef-GLAMOR_HAS_GB.patch
15 deleted file mode 100644
16 index f0c4ed58d33..00000000000
17 --- a/x11-base/xorg-server/files/xorg-server-1.19.99.904-modesetting-Move-GBM-code-inside-ifdef-GLAMOR_HAS_GB.patch
18 +++ /dev/null
19 @@ -1,48 +0,0 @@
20 -From a98a95b798a0062783ae6fd2135ad488af5efcfd Mon Sep 17 00:00:00 2001
21 -From: Matt Turner <mattst88@×××××.com>
22 -Date: Sun, 15 Apr 2018 23:37:45 -0700
23 -Subject: [PATCH xserver 2/2] modesetting: Move GBM code inside #ifdef
24 - GLAMOR_HAS_GBM
25 -
26 -Fixes a compilation error without Glamor.
27 -
28 -Bugzilla: https://bugs.gentoo.org/653288
29 -Signed-off-by: Matt Turner <mattst88@×××××.com>
30 -Reviewed-by: Olivier Fourdan <ofourdan@××××××.com>
31 ----
32 - hw/xfree86/drivers/modesetting/drmmode_display.c | 14 +++++++-------
33 - 1 file changed, 7 insertions(+), 7 deletions(-)
34 -
35 -diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c b/hw/xfree86/drivers/modesetting/drmmode_display.c
36 -index 322ef050b..79e91f0f8 100644
37 ---- a/hw/xfree86/drivers/modesetting/drmmode_display.c
38 -+++ b/hw/xfree86/drivers/modesetting/drmmode_display.c
39 -@@ -998,18 +998,18 @@ static Bool
40 - drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
41 - unsigned width, unsigned height, unsigned bpp)
42 - {
43 -- uint32_t format;
44 --
45 -- if (drmmode->scrn->depth == 30)
46 -- format = GBM_FORMAT_ARGB2101010;
47 -- else
48 -- format = GBM_FORMAT_ARGB8888;
49 --
50 - bo->width = width;
51 - bo->height = height;
52 -
53 - #ifdef GLAMOR_HAS_GBM
54 - if (drmmode->glamor) {
55 -+ uint32_t format;
56 -+
57 -+ if (drmmode->scrn->depth == 30)
58 -+ format = GBM_FORMAT_ARGB2101010;
59 -+ else
60 -+ format = GBM_FORMAT_ARGB8888;
61 -+
62 - #ifdef GBM_BO_WITH_MODIFIERS
63 - uint32_t num_modifiers;
64 - uint64_t *modifiers = NULL;
65 ---
66 -2.16.1
67 -
68
69 diff --git a/x11-base/xorg-server/files/xorg-server-1.19.99.904-xwayland-Fix-build-without-glamor.patch b/x11-base/xorg-server/files/xorg-server-1.19.99.904-xwayland-Fix-build-without-glamor.patch
70 deleted file mode 100644
71 index 312a5e05cdc..00000000000
72 --- a/x11-base/xorg-server/files/xorg-server-1.19.99.904-xwayland-Fix-build-without-glamor.patch
73 +++ /dev/null
74 @@ -1,175 +0,0 @@
75 -From c3ae963a7b19e05b8296aae8b6354587756d48fa Mon Sep 17 00:00:00 2001
76 -From: Olivier Fourdan <ofourdan@××××××.com>
77 -Date: Mon, 16 Apr 2018 09:39:09 +0200
78 -Subject: [PATCH xserver 1/2] xwayland: Fix build without glamor
79 -
80 -Present support in Xwayland relies on glamor, make sure Xwayland can
81 -be built without glamor by moving references to Present code inside
82 -the conditional GLAMOR_HAS_GBM.
83 -
84 -Reported-by: Matt Turner <mattst88@×××××.com>
85 -Signed-off-by: Olivier Fourdan <ofourdan@××××××.com>
86 -Reviewed-by: Matt Turner <mattst88@×××××.com>
87 -Reviewed-by: Roman Gilg <subdiff@×××××.com>
88 ----
89 - hw/xwayland/Makefile.am | 4 ++--
90 - hw/xwayland/meson.build | 3 +--
91 - hw/xwayland/xwayland.c | 10 +++++++++-
92 - hw/xwayland/xwayland.h | 7 ++++++-
93 - 4 files changed, 18 insertions(+), 6 deletions(-)
94 -
95 -diff --git a/hw/xwayland/Makefile.am b/hw/xwayland/Makefile.am
96 -index 0291afee7..80d3a1f19 100644
97 ---- a/hw/xwayland/Makefile.am
98 -+++ b/hw/xwayland/Makefile.am
99 -@@ -11,7 +11,6 @@ Xwayland_CFLAGS = \
100 -
101 - Xwayland_SOURCES = \
102 - xwayland.c \
103 -- xwayland-present.c \
104 - xwayland-input.c \
105 - xwayland-cursor.c \
106 - xwayland-shm.c \
107 -@@ -35,7 +34,8 @@ Xwayland_built_sources =
108 -
109 - if GLAMOR_EGL
110 - Xwayland_SOURCES += \
111 -- xwayland-glamor.c
112 -+ xwayland-glamor.c \
113 -+ xwayland-present.c
114 - if XV
115 - Xwayland_SOURCES += \
116 - xwayland-glamor-xv.c
117 -diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build
118 -index 69a5c819a..8d178825e 100644
119 ---- a/hw/xwayland/meson.build
120 -+++ b/hw/xwayland/meson.build
121 -@@ -1,6 +1,5 @@
122 - srcs = [
123 - 'xwayland.c',
124 -- 'xwayland-present.c',
125 - 'xwayland-input.c',
126 - 'xwayland-cursor.c',
127 - 'xwayland-shm.c',
128 -@@ -53,7 +52,7 @@ srcs += code.process(dmabuf_xml)
129 -
130 - xwayland_glamor = []
131 - if gbm_dep.found()
132 -- srcs += 'xwayland-glamor.c'
133 -+ srcs += [ 'xwayland-glamor.c', 'xwayland-present.c' ]
134 - if build_xv
135 - srcs += 'xwayland-glamor-xv.c'
136 - endif
137 -diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
138 -index dd074c341..44bbc3b18 100644
139 ---- a/hw/xwayland/xwayland.c
140 -+++ b/hw/xwayland/xwayland.c
141 -@@ -525,6 +525,7 @@ xwl_realize_window(WindowPtr window)
142 - wl_region_destroy(region);
143 - }
144 -
145 -+#ifdef GLAMOR_HAS_GBM
146 - if (xwl_screen->present) {
147 - xwl_window->present_crtc_fake = RRCrtcCreate(xwl_screen->screen, xwl_window);
148 - xwl_window->present_msc = 1;
149 -@@ -533,6 +534,7 @@ xwl_realize_window(WindowPtr window)
150 - xorg_list_init(&xwl_window->present_event_list);
151 - xorg_list_init(&xwl_window->present_release_queue);
152 - }
153 -+#endif
154 -
155 - wl_display_flush(xwl_screen->display);
156 -
157 -@@ -599,9 +601,11 @@ xwl_unrealize_window(WindowPtr window)
158 -
159 - compUnredirectWindow(serverClient, window, CompositeRedirectManual);
160 -
161 -+#ifdef GLAMOR_HAS_GBM
162 - if (xwl_screen->present)
163 - /* Always cleanup Present (Present might have been active on child window) */
164 - xwl_present_cleanup(window);
165 -+#endif
166 -
167 - screen->UnrealizeWindow = xwl_screen->UnrealizeWindow;
168 - ret = (*screen->UnrealizeWindow) (window);
169 -@@ -621,8 +625,10 @@ xwl_unrealize_window(WindowPtr window)
170 - if (xwl_window->frame_callback)
171 - wl_callback_destroy(xwl_window->frame_callback);
172 -
173 -+#ifdef GLAMOR_HAS_GBM
174 - if (xwl_window->present_crtc_fake)
175 - RRCrtcDestroy(xwl_window->present_crtc_fake);
176 -+#endif
177 -
178 - free(xwl_window);
179 - dixSetPrivate(&window->devPrivates, &xwl_window_private_key, NULL);
180 -@@ -709,9 +715,11 @@ xwl_screen_post_damage(struct xwl_screen *xwl_screen)
181 -
182 - xorg_list_for_each_entry_safe(xwl_window, next_xwl_window,
183 - &xwl_screen->damage_window_list, link_damage) {
184 -+#ifdef GLAMOR_HAS_GBM
185 - /* Present on the main surface. So don't commit here as well. */
186 - if (xwl_window->present_window)
187 - continue;
188 -+#endif
189 - /* If we're waiting on a frame callback from the server,
190 - * don't attach a new buffer. */
191 - if (xwl_window->frame_callback)
192 -@@ -1053,10 +1061,10 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
193 - ErrorF("Failed to initialize glamor, falling back to sw\n");
194 - xwl_screen->glamor = 0;
195 - }
196 --#endif
197 -
198 - if (xwl_screen->glamor && xwl_screen->rootless)
199 - xwl_screen->present = xwl_present_init(pScreen);
200 -+#endif
201 -
202 - if (!xwl_screen->glamor) {
203 - xwl_screen->CreateScreenResources = pScreen->CreateScreenResources;
204 -diff --git a/hw/xwayland/xwayland.h b/hw/xwayland/xwayland.h
205 -index a65559374..cf2551b99 100644
206 ---- a/hw/xwayland/xwayland.h
207 -+++ b/hw/xwayland/xwayland.h
208 -@@ -127,7 +127,7 @@ struct xwl_window {
209 - struct xorg_list link_damage;
210 - struct wl_callback *frame_callback;
211 - Bool allow_commits;
212 --
213 -+#ifdef GLAMOR_HAS_GBM
214 - /* present */
215 - RRCrtcPtr present_crtc_fake;
216 - struct xorg_list present_link;
217 -@@ -143,8 +143,10 @@ struct xwl_window {
218 -
219 - struct xorg_list present_event_list;
220 - struct xorg_list present_release_queue;
221 -+#endif
222 - };
223 -
224 -+#ifdef GLAMOR_HAS_GBM
225 - struct xwl_present_event {
226 - uint64_t event_id;
227 - uint64_t target_msc;
228 -@@ -159,6 +161,7 @@ struct xwl_present_event {
229 -
230 - struct xorg_list list;
231 - };
232 -+#endif
233 -
234 - #define MODIFIER_META 0x01
235 -
236 -@@ -378,8 +381,10 @@ struct wl_buffer *xwl_glamor_pixmap_get_wl_buffer(PixmapPtr pixmap,
237 - unsigned short height,
238 - Bool *created);
239 -
240 -+#ifdef GLAMOR_HAS_GBM
241 - Bool xwl_present_init(ScreenPtr screen);
242 - void xwl_present_cleanup(WindowPtr window);
243 -+#endif
244 -
245 - void xwl_screen_release_tablet_manager(struct xwl_screen *xwl_screen);
246 -
247 ---
248 -2.16.1
249 -